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

Side by Side Diff: LayoutTests/inspector/elements/styles/styles-disable-then-enable-overriden-ua.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 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6
7 <script>
8
9 function test()
10 {
11 InspectorTest.selectNodeAndWaitForStyles("body-id", step1);
12
13 function step1()
14 {
15 InspectorTest.addResult("Before disable");
16 InspectorTest.dumpSelectedElementStyles(true, false, true);
17 InspectorTest.toggleStyleProperty("margin", false);
18 InspectorTest.waitForStyles("body-id", step2);
19 }
20
21 function step2()
22 {
23 InspectorTest.addResult("After disable");
24 InspectorTest.dumpSelectedElementStyles(true, false, true);
25 InspectorTest.toggleStyleProperty("margin", true);
26 InspectorTest.waitForStyles("body-id", step3);
27 }
28
29 function step3()
30 {
31 InspectorTest.addResult("After enable");
32 InspectorTest.dumpSelectedElementStyles(true, false, true);
33 InspectorTest.completeTest();
34 }
35 }
36 </script>
37 </head>
38
39 <body onload="runTest()" id="body-id" style="margin: 10px">
40 <p>
41 Tests that disabling shorthand removes the "overriden" mark from the UA shorthan d it overrides.
42 </p>
43
44 </body>
45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698