OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../inspector/inspector-test.js"></script> | 4 <script src="../inspector/inspector-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function onload() | 7 function onload() |
8 { | 8 { |
9 if (window.layoutTestController) | 9 if (window.layoutTestController) |
10 layoutTestController.waitUntilDone(); | 10 layoutTestController.waitUntilDone(); |
(...skipping 13 matching lines...) Expand all Loading... |
24 runTest(); | 24 runTest(); |
25 } | 25 } |
26 | 26 |
27 function test() | 27 function test() |
28 { | 28 { |
29 var messages = WebInspector.console.messages; | 29 var messages = WebInspector.console.messages; |
30 InspectorTest.addResult("Received console messages:"); | 30 InspectorTest.addResult("Received console messages:"); |
31 for (var i = 0; i < messages.length; ++i) { | 31 for (var i = 0; i < messages.length; ++i) { |
32 var m = messages[i]; | 32 var m = messages[i]; |
33 InspectorTest.addResult("Message[" + i + "]:"); | 33 InspectorTest.addResult("Message[" + i + "]:"); |
34 InspectorTest.addResult("Message: " + m.message); | 34 InspectorTest.addResult("Message: " + WebInspector.displayNameForURL(m.u
rl) + ":" + m.line + " " + m.message); |
35 } | 35 } |
36 InspectorTest.addResult("TEST COMPLETE."); | 36 InspectorTest.addResult("TEST COMPLETE."); |
37 InspectorTest.completeTest(); | 37 InspectorTest.completeTest(); |
38 } | 38 } |
39 | 39 |
40 </script> | 40 </script> |
41 | 41 |
42 </head> | 42 </head> |
43 <body onload="onload()"> | 43 <body onload="onload()"> |
44 <p> | 44 <p> |
45 Tests that Web Inspector won't crash if there are messages written to console fr
om a frame which has already navigated to a page from a different domain. | 45 Tests that Web Inspector won't crash if there are messages written to console fr
om a frame which has already navigated to a page from a different domain. |
46 </p> | 46 </p> |
47 <iframe id="theFrame" src="resources/console-log-frame-before-navigation.html"><
/iframe> | 47 <iframe id="theFrame" src="resources/console-log-frame-before-navigation.html"><
/iframe> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |