Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-3 / style-rule-from-imported-stylesheet.html
blob107b862443ea1378cfd6fa39bef5bb3c42286b10
1 <html>
2 <head>
3 <link rel="import" href="../styles/resources/imported-stylesheet.html"/>
4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script>
8 function test()
10 InspectorTest.selectNodeAndWaitForStyles("square", step1);
12 function step1()
14 InspectorTest.addResult("Rules before toggling:");
15 InspectorTest.dumpSelectedElementStyles(true, false, true);
16 InspectorTest.waitForStyleApplied(step2);
17 InspectorTest.toggleMatchedStyleProperty("background-color", false);
20 function step2()
22 InspectorTest.addResult("Rules after toggling:");
23 InspectorTest.dumpSelectedElementStyles(true, false, true);
24 InspectorTest.completeTest();
27 </script>
28 </head>
30 <body onload="runTest()">
31 <p>Tests that rules from imported stylesheets are correctly shown and are editable in inspector.</p>
32 <div id="square" class="square"></div>
33 </body>
34 </html>