Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: LayoutTests/inspector/elements/styles/style-rule-from-imported-stylesheet.html

Issue 1158883003: DevTools: shard inspector/elements tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <link rel="import" href="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>
7
8 function test()
9 {
10 InspectorTest.selectNodeAndWaitForStyles("square", step1);
11
12 function step1()
13 {
14 InspectorTest.addResult("Rules before toggling:");
15 InspectorTest.dumpSelectedElementStyles(true, false, true);
16 InspectorTest.waitForStyleApplied(step2);
17 InspectorTest.toggleMatchedStyleProperty("background-color", false);
18 }
19
20 function step2()
21 {
22 InspectorTest.addResult("Rules after toggling:");
23 InspectorTest.dumpSelectedElementStyles(true, false, true);
24 InspectorTest.completeTest();
25 }
26 }
27 </script>
28 </head>
29
30 <body onload="runTest()">
31 <p>Tests that rules from imported stylesheets are correctly shown and are editab le in inspector.</p>
32 <div id="square" class="square"></div>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698