OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="resources/import-pseudoclass-crash.css"> | 3 <link rel="stylesheet" href="resources/import-pseudoclass-crash.css"> |
4 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
5 <script src="../../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../../http/tests/inspector/elements-test.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 InspectorTest.nodeWithId("lastchild", nodeFound); | 10 InspectorTest.nodeWithId("lastchild", nodeFound); |
11 | 11 |
12 function nodeFound(node) | 12 function nodeFound(node) |
13 { | 13 { |
14 WebInspector.cssModel.getMatchedStylesAsync(node.id, true, false, matche
dStylesCallback); | 14 InspectorTest.cssModel.getMatchedStylesAsync(node.id, true, false, match
edStylesCallback); |
15 } | 15 } |
16 | 16 |
17 var styleSheetId; | 17 var styleSheetId; |
18 | 18 |
19 function matchedStylesCallback(styles) | 19 function matchedStylesCallback(styles) |
20 { | 20 { |
21 styleSheetId = styles.matchedCSSRules[1].styleSheetId; | 21 styleSheetId = styles.matchedCSSRules[1].styleSheetId; |
22 InspectorTest.CSSAgent.setStyleSheetText(styleSheetId, | 22 InspectorTest.CSSAgent.setStyleSheetText(styleSheetId, |
23 "@import url(\"import-pseudoclass-crash-empty.css\");\n\n:last-child
{ color: #000001; }\n", modifiedCallback); | 23 "@import url(\"import-pseudoclass-crash-empty.css\");\n\n:last-child
{ color: #000001; }\n", modifiedCallback); |
24 } | 24 } |
(...skipping 15 matching lines...) Expand all Loading... |
40 <body onload="runTest()"> | 40 <body onload="runTest()"> |
41 <p> | 41 <p> |
42 Tests that modifying stylesheet text with @import and :last-child selector does
not crash (<a href="https://bugs.webkit.org/show_bug.cgi?id=95324">Bug 95324</a>
). | 42 Tests that modifying stylesheet text with @import and :last-child selector does
not crash (<a href="https://bugs.webkit.org/show_bug.cgi?id=95324">Bug 95324</a>
). |
43 </p> | 43 </p> |
44 | 44 |
45 <div> | 45 <div> |
46 <p id="lastchild">:last-child</p> | 46 <p id="lastchild">:last-child</p> |
47 </div> | 47 </div> |
48 </body> | 48 </body> |
49 </html> | 49 </html> |
OLD | NEW |