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

Side by Side Diff: LayoutTests/inspector/elements/edit-dom-actions.html

Issue 16561003: DevTools: Inspect element mode does not select element in ShadowDOM (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 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
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 test() 7 function test()
8 { 8 {
9 // Save time on style updates. 9 // Save time on style updates.
10 WebInspector.showPanel("elements"); 10 WebInspector.showPanel("elements");
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 editorElement.dispatchEvent(InspectorTest.createKeyEvent("En ter")); 97 editorElement.dispatchEvent(InspectorTest.createKeyEvent("En ter"));
98 InspectorTest.addSniffer(WebInspector.ElementsTreeUpdater.pr ototype, "_updateModifiedNodes", done); 98 InspectorTest.addSniffer(WebInspector.ElementsTreeUpdater.pr ototype, "_updateModifiedNodes", done);
99 } 99 }
100 } 100 }
101 }, 101 },
102 102
103 function testEditCommentAsHTML(next) 103 function testEditCommentAsHTML(next)
104 { 104 {
105 function commentNodeSelectionCallback(testNode, callback) 105 function commentNodeSelectionCallback(testNode, callback)
106 { 106 {
107 var childNodes = testNode.children; 107 var childNodes = testNode.children();
108 for (var i = 0; i < childNodes.length; ++i) { 108 for (var i = 0; i < childNodes.length; ++i) {
109 if (childNodes[i].nodeType() === 8) { 109 if (childNodes[i].nodeType() === 8) {
110 WebInspector._updateFocusedNode(childNodes[i].id); 110 WebInspector._updateFocusedNode(childNodes[i].id);
111 callback(childNodes[i]); 111 callback(childNodes[i]);
112 return; 112 return;
113 } 113 }
114 } 114 }
115 InspectorTest.addResult("Comment node not found"); 115 InspectorTest.addResult("Comment node not found");
116 InspectorTest.completeTest(); 116 InspectorTest.completeTest();
117 } 117 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 </script> 307 </script>
308 </div> 308 </div>
309 309
310 <div id="testEditCommentAsHTML"> 310 <div id="testEditCommentAsHTML">
311 <!-- Comment --> 311 <!-- Comment -->
312 </div> 312 </div>
313 313
314 </div> 314 </div>
315 </body> 315 </body>
316 </html> 316 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698