3 <script src=
"inspector-test.js"></script>
4 <script src=
"console-test.js"></script>
10 var host
= frames
[0].location
.host
;
15 frames
[0].location
.reload();
19 frames
[0].postMessage("fail", "http://127.0.0.1:8000");
24 var finishAttemptsLeft
= 2;
25 InspectorTest
.addConsoleSniffer(maybeFinish
, true);
26 InspectorTest
.NetworkAgent
.setMonitoringXHREnabled(true, step1
);
30 InspectorTest
.evaluateInPage("accessFrame()", maybeFinish
);
33 function maybeFinish()
36 if (finishAttemptsLeft
)
39 InspectorTest
.NetworkAgent
.setMonitoringXHREnabled(false, finish
);
44 InspectorTest
.dumpConsoleMessages();
45 InspectorTest
.completeTest();
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>