OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../inspector/inspector-test.js"></script> | 3 <script src="../inspector/inspector-test.js"></script> |
4 <script src="../inspector/console-test.js"></script> | 4 <script src="../inspector/console-test.js"></script> |
5 <script> | 5 <script> |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 testRunner.dumpAsText(); | 8 testRunner.dumpAsText(); |
9 } | 9 } |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 function createIFrame() | 24 function createIFrame() |
25 { | 25 { |
26 var iframe = document.createElement('iframe'); | 26 var iframe = document.createElement('iframe'); |
27 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html'); | 27 iframe.setAttribute('src', 'resources/console-clear-arguments-iframe.html'); |
28 iframe.onload= removeIFrame; | 28 iframe.onload= removeIFrame; |
29 document.getElementById('container').appendChild(iframe); | 29 document.getElementById('container').appendChild(iframe); |
30 } | 30 } |
31 | 31 |
32 function test() | 32 function test() |
33 { | 33 { |
34 for (var message of InspectorTest.mainTarget.consoleModel.messages()) { | 34 for (var message of SDK.multitargetConsoleModel.messages()) { |
35 var args = (message.parameters || []).map((arg) => arg.type); | 35 var args = (message.parameters || []).map((arg) => arg.type); |
36 InspectorTest.addResult("Message: \"" + message.messageText + "\", argum
ents: [" + args.join(", ") + "]"); | 36 InspectorTest.addResult("Message: \"" + message.messageText + "\", argum
ents: [" + args.join(", ") + "]"); |
37 } | 37 } |
38 InspectorTest.completeTest(); | 38 InspectorTest.completeTest(); |
39 } | 39 } |
40 </script> | 40 </script> |
41 </head> | 41 </head> |
42 <body onload="createIFrame()"> | 42 <body onload="createIFrame()"> |
43 <p> | 43 <p> |
44 Tests that console message arguments will be cleared and first argument will be
converted into a string when iframe where the messages were | 44 Tests that console message arguments will be cleared and first argument will be
converted into a string when iframe where the messages were |
45 created is removed. | 45 created is removed. |
46 </p> | 46 </p> |
47 <div id="container"></div> | 47 <div id="container"></div> |
48 <div id="output"></div> | 48 <div id="output"></div> |
49 </body> | 49 </body> |
50 </html> | 50 </html> |
OLD | NEW |