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

Side by Side Diff: LayoutTests/inspector/elements/styles/undo-set-selector-text.html

Issue 268293003: DevTools: Get rid of WebInspector.panels (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 #inspected { 4 #inspected {
5 color: green; 5 color: green;
6 } 6 }
7 </style> 7 </style>
8 <script src="../../../http/tests/inspector/inspector-test.js"></script> 8 <script src="../../../http/tests/inspector/inspector-test.js"></script>
9 <script src="../../../http/tests/inspector/elements-test.js"></script> 9 <script src="../../../http/tests/inspector/elements-test.js"></script>
10 <script> 10 <script>
11 11
12 function test() 12 function test()
13 { 13 {
14 WebInspector.inspectorView.showPanel("elements"); 14 WebInspector.inspectorView.showPanel("elements");
15 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); 15 InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
16 16
17 function step1() 17 function step1()
18 { 18 {
19 InspectorTest.addResult("=== Before selector modification ==="); 19 InspectorTest.addResult("=== Before selector modification ===");
20 InspectorTest.dumpSelectedElementStyles(true); 20 InspectorTest.dumpSelectedElementStyles(true);
21 var section = WebInspector.panels.elements.sidebarPanes.styles.sections[ 0][2]; 21 var section = WebInspector.inspectorView.panel("elements").sidebarPanes. styles.sections[0][2];
22 section.startEditingSelector(); 22 section.startEditingSelector();
23 section._selectorElement.textContent = "#inspected, #other"; 23 section._selectorElement.textContent = "#inspected, #other";
24 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er")); 24 section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Ent er"));
25 InspectorTest.selectNodeAndWaitForStyles("other", step2); 25 InspectorTest.selectNodeAndWaitForStyles("other", step2);
26 } 26 }
27 27
28 function step2() 28 function step2()
29 { 29 {
30 InspectorTest.addResult("=== After selector modification ==="); 30 InspectorTest.addResult("=== After selector modification ===");
31 InspectorTest.dumpSelectedElementStyles(true); 31 InspectorTest.dumpSelectedElementStyles(true);
(...skipping 24 matching lines...) Expand all
56 <body onload="runTest()"> 56 <body onload="runTest()">
57 <p> 57 <p>
58 Tests that setting selector text can be undone. 58 Tests that setting selector text can be undone.
59 </p> 59 </p>
60 60
61 <div id="inspected"></div> 61 <div id="inspected"></div>
62 <div id="other"></div> 62 <div id="other"></div>
63 63
64 </body> 64 </body>
65 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698