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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/elements-panel-selection-after-delete.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
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 prepareTestTree() 7 function prepareTestTree()
8 { 8 {
9 var template = document.querySelector("#testTree"); 9 var template = document.querySelector("#testTree");
10 var testTreeContainer = document.querySelector("#testTreeContainer"); 10 var testTreeContainer = document.querySelector("#testTreeContainer");
(...skipping 29 matching lines...) Expand all
40 return result; 40 return result;
41 } 41 }
42 42
43 function prepareTestTree(callback) 43 function prepareTestTree(callback)
44 { 44 {
45 InspectorTest.evaluateInPage("prepareTestTree()", callback); 45 InspectorTest.evaluateInPage("prepareTestTree()", callback);
46 } 46 }
47 47
48 function removeElementAsUser(element, callback) 48 function removeElementAsUser(element, callback)
49 { 49 {
50 InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.prototype, "_u pdateModifiedNodes", callback); 50 InspectorTest.addSniffer(Elements.ElementsTreeOutline.prototype, "_updat eModifiedNodes", callback);
51 element.remove(); 51 element.remove();
52 } 52 }
53 53
54 function removeElementExternally(element, callback) 54 function removeElementExternally(element, callback)
55 { 55 {
56 var node = element.node(); 56 var node = element.node();
57 InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.prototype, "_u pdateChildren", callback); 57 InspectorTest.addSniffer(Elements.ElementsTreeOutline.prototype, "_updat eChildren", callback);
58 node.removeNode(); 58 node.removeNode();
59 } 59 }
60 60
61 function dumpSelectedNode() 61 function dumpSelectedNode()
62 { 62 {
63 var selectedElement = InspectorTest.firstElementsTreeOutline().selectedT reeElement; 63 var selectedElement = InspectorTest.firstElementsTreeOutline().selectedT reeElement;
64 var selectedNode = selectedElement ? selectedElement.node() : null; 64 var selectedNode = selectedElement ? selectedElement.node() : null;
65 InspectorTest.addResult("The following node is now selected: " + nodeToS tring(selectedNode)); 65 InspectorTest.addResult("The following node is now selected: " + nodeToS tring(selectedNode));
66 } 66 }
67 67
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 function step6() 106 function step6()
107 { 107 {
108 dumpSelectedNode(); 108 dumpSelectedNode();
109 next(); 109 next();
110 } 110 }
111 }, 111 },
112 112
113 function testExternalDelete(next) 113 function testExternalDelete(next)
114 { 114 {
115 // We should wait for container node to be updated since it is alrea dy populated. 115 // We should wait for container node to be updated since it is alrea dy populated.
116 InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.prototype, "_updateModifiedNodes", step2); 116 InspectorTest.addSniffer(Elements.ElementsTreeOutline.prototype, "_u pdateModifiedNodes", step2);
117 prepareTestTree(); 117 prepareTestTree();
118 118
119 function step2() 119 function step2()
120 { 120 {
121 InspectorTest.addResult("Selecting node..."); 121 InspectorTest.addResult("Selecting node...");
122 selectNode("child2", step3); 122 selectNode("child2", step3);
123 } 123 }
124 124
125 function step3() 125 function step3()
126 { 126 {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 </div> 177 </div>
178 </div> 178 </div>
179 <div class="child3"> 179 <div class="child3">
180 </div> 180 </div>
181 </div> 181 </div>
182 </template> 182 </template>
183 <div id="testTreeContainer"> 183 <div id="testTreeContainer">
184 </div> 184 </div>
185 </body> 185 </body>
186 </html> 186 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698