[chromium] Unreviewed. Rebaseline layout tests.
[WebKit-https.git] / LayoutTests / inspector / console-assert.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script src="../http/tests/inspector/console-tests.js"></script>
5 <script>
6
7 function b()
8 {
9     console.assert(false, 1);
10     console.assert(false, "a", "b");
11 }
12
13 function a()
14 {
15     b();
16     evaluateInWebInspector("frontend_expandConsoleMessages");
17     dumpConsoleMessages();
18 }
19
20 function doit()
21 {
22     setTimeout(a, 0);
23 }
24
25 function frontend_expandConsoleMessages()
26 {
27     var messages = WebInspector.console.messages;
28     for (var i = 0; i < messages.length; ++i) {
29         var element = messages[i].toMessageElement();
30         var node = element;
31         while (node) {
32             if (node.treeElementForTest)
33                 node.treeElementForTest.expand();
34             node = node.traverseNextNode(element);
35         }
36     }
37 }
38
39 </script>
40 </head>
41
42 <body onload="onload()">
43 <p>
44 Tests that console.assert() will dump a message and stack trace with source URLs and line numbers.
45 </p>
46
47 </body>
48 </html>