test-repeated-messages.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!DOCTYPE HTML>
  2. <html dir="ltr" xml:lang="en-US" lang="en-US">
  3. <head>
  4. <meta charset="utf8">
  5. <title>Test for bugs 720180, 800510, 865288 and 1218089</title>
  6. <script>
  7. function testConsole() {
  8. // same line and column number
  9. for(var i = 0; i < 2; i++) {
  10. console.log("foo repeat");
  11. }
  12. console.log("foo repeat");
  13. console.error("foo repeat");
  14. }
  15. function testConsoleObjects() {
  16. for (var i = 0; i < 3; i++) {
  17. var o = { id: "abba" + i };
  18. console.log("abba", o);
  19. }
  20. }
  21. function testConsoleFalsyValues(){
  22. [NaN, undefined, null].forEach(function(item, index){
  23. console.log(item);
  24. });
  25. [NaN, NaN].forEach(function(item, index){
  26. console.log(item);
  27. });
  28. [undefined, undefined].forEach(function(item, index){
  29. console.log(item);
  30. });
  31. [null, null].forEach(function(item, index){
  32. console.log(item);
  33. });
  34. }
  35. </script>
  36. <style>
  37. body {
  38. background-image: foobarz;
  39. }
  40. p {
  41. background-image: foobarz;
  42. }
  43. </style>
  44. <!--
  45. - Any copyright is dedicated to the Public Domain.
  46. - http://creativecommons.org/publicdomain/zero/1.0/
  47. -->
  48. </head>
  49. <body>
  50. <p>Hello world!</p>
  51. </body>
  52. </html>