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

Side by Side Diff: LayoutTests/inspector/elements/styles/force-pseudo-state.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
1 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 div:hover, a:hover { 4 div:hover, a:hover {
5 color: red; 5 color: red;
6 } 6 }
7 7
8 div:focus, a:focus { 8 div:focus, a:focus {
9 border: 1px solid green; 9 border: 1px solid green;
10 } 10 }
(...skipping 17 matching lines...) Expand all
28 function dumpData() 28 function dumpData()
29 { 29 {
30 InspectorTest.dumpSelectedElementStyles(true); 30 InspectorTest.dumpSelectedElementStyles(true);
31 InspectorTest.dumpElementsTree(); 31 InspectorTest.dumpElementsTree();
32 } 32 }
33 33
34 function foundDiv(node) 34 function foundDiv(node)
35 { 35 {
36 divNode = node; 36 divNode = node;
37 WebInspector.panels.elements._setPseudoClassForNode(divNode, "hover", tr ue); 37 WebInspector.panels.elements._setPseudoClassForNode(divNode, "hover", tr ue);
38 WebInspector.cssModel.forcePseudoState(divNode, "active", true); 38 InspectorTest.cssModel.forcePseudoState(divNode, "active", true);
39 InspectorTest.selectNodeAndWaitForStyles("div", divSelected1); 39 InspectorTest.selectNodeAndWaitForStyles("div", divSelected1);
40 } 40 }
41 41
42 function divSelected1() 42 function divSelected1()
43 { 43 {
44 InspectorTest.addResult(""); 44 InspectorTest.addResult("");
45 InspectorTest.addResult("DIV with :hover and :active"); 45 InspectorTest.addResult("DIV with :hover and :active");
46 dumpData(); 46 dumpData();
47 InspectorTest.waitForStyles("div", hoverCallback, true); 47 InspectorTest.waitForStyles("div", hoverCallback, true);
48 WebInspector.panels.elements._setPseudoClassForNode(divNode, "hover", fa lse); 48 WebInspector.panels.elements._setPseudoClassForNode(divNode, "hover", fa lse);
(...skipping 30 matching lines...) Expand all
79 } 79 }
80 </script> 80 </script>
81 </head> 81 </head>
82 <body id="mainBody" class="main1 main2 mainpage" onload="runTest()" style="font- weight: normal; width: 85%; background-image: url(bar.png)"> 82 <body id="mainBody" class="main1 main2 mainpage" onload="runTest()" style="font- weight: normal; width: 85%; background-image: url(bar.png)">
83 <p> 83 <p>
84 Tests that forced element state is reflected in the DOM tree and Styles pane. 84 Tests that forced element state is reflected in the DOM tree and Styles pane.
85 </p> 85 </p>
86 <div id="div">Test text</div> 86 <div id="div">Test text</div>
87 </body> 87 </body>
88 </html> 88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698