1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../inspector/inspector-test.js"></script>
10 testRunner
.waitUntilDone();
13 window
.addEventListener("message", receiveMessage
, false);
15 function receiveMessage(event
) {
16 if (event
.data
!= "frameReloaded") {
17 testFailed("Unexpected message: " + event
.data
);
18 if (window
.testRunner
)
19 testRunner
.notifyDone();
22 if (window
.testRunner
)
23 testRunner
.showWebInspector();
29 var messages
= InspectorTest
.consoleModel
.messages();
30 InspectorTest
.addResult("Received console messages:");
31 for (var i
= 0; i
< messages
.length
; ++i
) {
33 InspectorTest
.addResult("Message[" + i
+ "]:");
34 InspectorTest
.addResult("Message: " + WebInspector
.displayNameForURL(m
.url
) + ":" + m
.line
+ " " + m
.messageText
);
36 InspectorTest
.addResult("TEST COMPLETE.");
37 InspectorTest
.completeTest();
43 <body onload=
"onload()">
45 Tests that Web Inspector won't crash if there are messages written to console from a frame which has already navigated to a page from a different domain.
47 <iframe id=
"theFrame" src=
"resources/console-log-frame-before-navigation.html"></iframe>