Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector-enabled / console-log-before-frame-navigation.html
blob4cb22865a977ec692e05ec3b3c5f74cd4b89638f
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../inspector/inspector-test.js"></script>
5 <script>
7 function onload()
9 if (window.testRunner)
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();
20 return;
22 if (window.testRunner)
23 testRunner.showWebInspector();
24 runTest();
27 function test()
29 var messages = InspectorTest.consoleModel.messages();
30 InspectorTest.addResult("Received console messages:");
31 for (var i = 0; i < messages.length; ++i) {
32 var m = messages[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();
40 </script>
42 </head>
43 <body onload="onload()">
44 <p>
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.
46 </p>
47 <iframe id="theFrame" src="resources/console-log-frame-before-navigation.html"></iframe>
48 </body>
49 </html>