Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector / console-cross-origin-iframe-logging.html
blob950a8cf784fe98201829444232beb1ba3b4a71fd
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4 <script src="console-test.js"></script>
5 <script>
6 function accessFrame()
8 // Should fail.
9 try {
10 var host = frames[0].location.host;
11 } catch (e) {}
13 // Should fail.
14 try {
15 frames[0].location.reload();
16 } catch (e) {}
18 // Should fail.
19 frames[0].postMessage("fail", "http://127.0.0.1:8000");
22 function test()
24 var finishAttemptsLeft = 2;
25 InspectorTest.addConsoleSniffer(maybeFinish, true);
26 InspectorTest.NetworkAgent.setMonitoringXHREnabled(true, step1);
28 function step1()
30 InspectorTest.evaluateInPage("accessFrame()", maybeFinish);
33 function maybeFinish()
35 --finishAttemptsLeft;
36 if (finishAttemptsLeft)
37 return;
39 InspectorTest.NetworkAgent.setMonitoringXHREnabled(false, finish);
42 function finish()
44 InspectorTest.dumpConsoleMessages();
45 InspectorTest.completeTest();
48 </script>
49 </head>
50 <body onload="runTest()">
51 <p>Tests that cross origin errors are logged with source url and line number.</p>
52 <iframe src="http://localhost:8000/inspector/resources/cross-origin-iframe.html"></iframe>
53 </body>
54 </html>