4 <style type=
"text/css" media=
"screen">
5 #main { background:blue; }
7 /*# sourceURL=styles-iframe.html*/
10 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
11 <script src=
"../../../http/tests/inspector/elements-test.js"></script>
16 var iframe
= document
.createElement("iframe");
17 iframe
.src
= "../styles/resources/styles-iframe-data.html";
18 document
.getElementById("main").appendChild(iframe
);
23 InspectorTest
.evaluateInPage("loadIframe()");
24 InspectorTest
.addConsoleSniffer(step0
);
28 InspectorTest
.selectNodeAndWaitForStyles("main", step1
);
33 InspectorTest
.addResult("Main frame style:");
34 InspectorTest
.dumpSelectedElementStyles(true, false, true);
35 InspectorTest
.selectNodeAndWaitForStyles("iframeBody", step2
);
40 InspectorTest
.addResult("iframe style:");
41 InspectorTest
.dumpSelectedElementStyles(true, false, true);
42 InspectorTest
.completeTest();
48 <body onload=
"runTest()">
50 Tests that proper (and different) styles are returned for body elements of main document and iframe.