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

Side by Side Diff: LayoutTests/inspector/elements/styles/removed-rule-crash.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 <style>
4 #container {
5 font-weight: bold;
6 }
7 </style>
8 <script src="../../../http/tests/inspector/inspector-test.js"></script>
9 <script src="../../../http/tests/inspector/elements-test.js"></script>
10 <script>
11
12 function removeRule()
13 {
14 document.styleSheets[0].removeRule(0);
15 }
16
17 function test()
18 {
19 InspectorTest.selectNodeAndWaitForStyles("container", step0);
20
21 function step0(node)
22 {
23 InspectorTest.evaluateInPage("removeRule()", step1);
24 }
25
26 function step1()
27 {
28 InspectorTest.addResult("Before disable");
29 InspectorTest.dumpSelectedElementStyles(true);
30 InspectorTest.toggleMatchedStyleProperty("font-weight", false);
31 InspectorTest.waitForStyleApplied(step2);
32 }
33
34 function step2()
35 {
36 InspectorTest.addResult("PASS: No crash");
37 InspectorTest.completeTest();
38 }
39 }
40 </script>
41 </head>
42
43 <body onload="runTest()">
44 <p>
45 Tests that disabling style property after the style rule has been removed does n ot crash the inspected page.
46 </p>
47
48 <div id="container">
49 </div>
50
51 </body>
52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698