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

Side by Side Diff: LayoutTests/inspector/elements/styles/styles-disable-then-enable.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 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script>
6
7 function test()
8 {
9 InspectorTest.selectNodeAndWaitForStyles("container", step1);
10
11 function step1(node)
12 {
13 InspectorTest.addResult("Before disable");
14 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weigh t");
15 InspectorTest.dumpStyleTreeItem(treeItem, "");
16
17 InspectorTest.toggleStyleProperty("font-weight", false);
18 InspectorTest.waitForStyles("container", step2);
19 }
20
21 function step2()
22 {
23 InspectorTest.addResult("After disable");
24 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weigh t");
25 InspectorTest.dumpStyleTreeItem(treeItem, "");
26
27 InspectorTest.toggleStyleProperty("font-weight", true);
28 InspectorTest.waitForStyles("container", step3);
29 }
30
31 function step3()
32 {
33 InspectorTest.addResult("After enable");
34 var treeItem = InspectorTest.getElementStylePropertyTreeItem("font-weigh t");
35 InspectorTest.dumpStyleTreeItem(treeItem, "");
36
37 InspectorTest.completeTest();
38 }
39 }
40 </script>
41 </head>
42
43 <body onload="runTest()">
44 <p>
45 Tests that disabling style property works.
46 </p>
47
48 <div id="container" style="font-weight:bold">
49 </div>
50
51 </body>
52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698