OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
5 #main { background:blue; } | 5 #main { background:blue; } |
6 </style> | 6 </style> |
7 | 7 |
8 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 8 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
9 <script src="../../../http/tests/inspector/elements-test.js"></script> | 9 <script src="../../../http/tests/inspector/elements-test.js"></script> |
10 <script> | 10 <script> |
11 | 11 |
12 function loadIframe() | 12 function loadIframe() |
13 { | 13 { |
14 var iframe = document.createElement("iframe"); | 14 var iframe = document.createElement("iframe"); |
15 iframe.src = "resources/styles-iframe-data.html"; | 15 iframe.src = "../styles/resources/styles-iframe-data.html"; |
16 document.getElementById("main").appendChild(iframe); | 16 document.getElementById("main").appendChild(iframe); |
17 } | 17 } |
18 | 18 |
19 function test() | 19 function test() |
20 { | 20 { |
21 InspectorTest.evaluateInPage("loadIframe()"); | 21 InspectorTest.evaluateInPage("loadIframe()"); |
22 InspectorTest.addConsoleSniffer(step0); | 22 InspectorTest.addConsoleSniffer(step0); |
23 | 23 |
24 function step0() | 24 function step0() |
25 { | 25 { |
(...skipping 18 matching lines...) Expand all Loading... |
44 </head> | 44 </head> |
45 | 45 |
46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
47 <p> | 47 <p> |
48 Tests that proper (and different) styles are returned for body elements of main
document and iframe. | 48 Tests that proper (and different) styles are returned for body elements of main
document and iframe. |
49 </p> | 49 </p> |
50 | 50 |
51 <div id="main"></div> | 51 <div id="main"></div> |
52 </body> | 52 </body> |
53 </html> | 53 </html> |
OLD | NEW |