Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector / change-iframe-src.html
blob94c07b0e162eb3eacaac84ca57cbf08c673d8a5d
1 <html>
2 <head>
3 <title>Change inspected iframe's "src" attribute.</title>
4 <script src="inspector-test.js"></script>
5 <script src="elements-test.js"></script>
6 <script>
8 var onIFrameLoadCalled = false;
9 function onIFrameLoad()
11 if (onIFrameLoadCalled)
12 return;
13 onIFrameLoadCalled = true;
14 runTest();
17 function test()
19 InspectorTest.nodeWithId("receiver", step1);
21 function step1(node)
23 node.setAttribute("src", "src=\"http://localhost:8000/inspector/resources/iframe-from-different-domain-data.html\"");
24 InspectorTest.addConsoleSniffer(step2);
27 function step2()
29 InspectorTest.completeTest();
33 </script>
34 </head>
35 <body>
36 <iframe src="resources/iframe-from-different-domain-data.html" id="receiver" onload="onIFrameLoad()"></iframe>
37 <p>
38 Tests that Elements panel allows to change src attribute on iframes
39 inside inspected page.
40 See <a href="https://bugs.webkit.org/show_bug.cgi?id=41350">bug 41350</a>.
41 </p>
42 </body>
43 </html>