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

Side by Side Diff: LayoutTests/inspector/elements/styles/style-update-during-selector-edit.html

Issue 218703002: DevTools: [wip] move Elements panel off WebInspector.domModel and single tree outline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comment addressed (and much more) Created 6 years, 8 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 <script src="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function addStyleClass() 7 function addStyleClass()
8 { 8 {
9 document.getElementById("inspected").className = "new-class"; 9 document.getElementById("inspected").className = "new-class";
10 } 10 }
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 var treeOutline = WebInspector.panels.elements.treeOutline; 16 var treeOutline = InspectorTest.firstElementsTreeOutline();
17 var seenRebuildUpdate; 17 var seenRebuildUpdate;
18 var seenAttrModified; 18 var seenAttrModified;
19 var modifiedAttrNodes = []; 19 var modifiedAttrNodes = [];
20 20
21 function attributeChanged(event) 21 function attributeChanged(event)
22 { 22 {
23 if (event.data.node === treeOutline.selectedDOMNode()) 23 if (event.data.node === treeOutline.selectedDOMNode())
24 seenAttrModified = true; 24 seenAttrModified = true;
25 } 25 }
26 26
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 <body onload="runTest()"> 62 <body onload="runTest()">
63 <p> 63 <p>
64 Tests that modification of element styles while editing a selector does not comm it the editor. 64 Tests that modification of element styles while editing a selector does not comm it the editor.
65 </p> 65 </p>
66 66
67 <div id="inspected"></div> 67 <div id="inspected"></div>
68 68
69 </body> 69 </body>
70 </html> 70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698