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

Side by Side Diff: LayoutTests/inspector/elements/move-node.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 test() 7 function test()
8 { 8 {
9 var containerNode; 9 var containerNode;
10 10
11 InspectorTest.runTestSuite([ 11 InspectorTest.runTestSuite([
12 function testDumpInitial(next) 12 function testDumpInitial(next)
13 { 13 {
14 function callback(node) 14 function callback(node)
15 { 15 {
16 containerNode = InspectorTest.expandedNodeWithId("container"); 16 containerNode = InspectorTest.expandedNodeWithId("container");
17 17
18 InspectorTest.addResult("========= Original ========"); 18 InspectorTest.addResult("========= Original ========");
19 InspectorTest.dumpElementsTree(containerNode); 19 InspectorTest.dumpElementsTree(containerNode);
20 next(); 20 next();
21 } 21 }
22 InspectorTest.expandElementsTree(callback); 22 InspectorTest.expandElementsTree(callback);
23 }, 23 },
24 24
25 function testDragAndDrop(next) 25 function testDragAndDrop(next)
26 { 26 {
27 var treeOutline = WebInspector.panels.elements.treeOutline; 27 var treeOutline = InspectorTest.firstElementsTreeOutline();
28 treeOutline.addEventListener(WebInspector.ElementsTreeOutline.Events .SelectedNodeChanged, selectionChanged); 28 treeOutline.addEventListener(WebInspector.ElementsTreeOutline.Events .SelectedNodeChanged, selectionChanged);
29 29
30 function selectionChanged() 30 function selectionChanged()
31 { 31 {
32 InspectorTest.addResult("===== Moved child2 ====="); 32 InspectorTest.addResult("===== Moved child2 =====");
33 InspectorTest.dumpElementsTree(containerNode); 33 InspectorTest.dumpElementsTree(containerNode);
34 InspectorTest.addResult("Selection: " + WebInspector.DOMPresenta tionUtils.fullQualifiedSelector(treeOutline.selectedDOMNode())); 34 InspectorTest.addResult("Selection: " + WebInspector.DOMPresenta tionUtils.fullQualifiedSelector(treeOutline.selectedDOMNode()));
35 next(); 35 next();
36 } 36 }
37 37
(...skipping 14 matching lines...) Expand all
52 52
53 <div id="container"> 53 <div id="container">
54 <div id="child1"></div> 54 <div id="child1"></div>
55 <div id="child2"></div> 55 <div id="child2"></div>
56 <div id="child3"></div> 56 <div id="child3"></div>
57 <div id="child4"></div> 57 <div id="child4"></div>
58 </div> 58 </div>
59 59
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/inspect-pseudo-element.html ('k') | LayoutTests/inspector/elements/resolve-alien-node.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698