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

Side by Side Diff: LayoutTests/inspector/elements/styles/selector-source-data.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
4 <style>
5 /* c1 */
6 html
7 #inspected.bar /* c2 */,
8 /* c3 */ b
9 /* c4 */ {
10 text-decoration: none;
11 }
12 </style>
13
14 <script src="../../../http/tests/inspector/inspector-test.js"></script>
15 <script src="../../../http/tests/inspector/elements-test.js"></script>
16 <script>
17
18 function test()
19 {
20 InspectorTest.nodeWithId("inspected", nodeFound);
21
22 function nodeFound(node)
23 {
24 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, true, true, style sLoaded);
25 }
26
27 function stylesLoaded(error, rules)
28 {
29 if (error) {
30 InspectorTest.addResult("Failed to get styles: " + error);
31 return;
32 }
33 InspectorTest.dumpRuleMatchesArray(rules);
34 InspectorTest.completeTest();
35 }
36 }
37 </script>
38 </head>
39
40 <body onload="runTest()">
41 <p>
42 Tests that WebInspector.CSSStyleSheet methods work as expected.
43 </p>
44 <h1 id="inspected" class="bar">Inspect Me</h1>
45 </body>
46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698