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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/edit/switch-panels-while-editing-as-html.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 src="edit-dom-test.js"></script> 5 <script src="edit-dom-test.js"></script>
6 <script> 6 <script>
7 7
8 function test() 8 function test()
9 { 9 {
10 InspectorTest.runTestSuite([ 10 InspectorTest.runTestSuite([
11 function testSetUp(next) 11 function testSetUp(next)
12 { 12 {
13 InspectorTest.expandElementsTree(next); 13 InspectorTest.expandElementsTree(next);
14 }, 14 },
15 15
16 function selectNode(next) 16 function selectNode(next)
17 { 17 {
18 InspectorTest.selectNodeWithId("inspected", onNodeSelected) 18 InspectorTest.selectNodeWithId("inspected", onNodeSelected)
19 19
20 function onNodeSelected(node) 20 function onNodeSelected(node)
21 { 21 {
22 var treeOutline = InspectorTest.firstElementsTreeOutline(); 22 var treeOutline = InspectorTest.firstElementsTreeOutline();
23 var treeElement = treeOutline.findTreeElement(node); 23 var treeElement = treeOutline.findTreeElement(node);
24 treeElement.toggleEditAsHTML(); 24 treeElement.toggleEditAsHTML();
25 InspectorTest.addSniffer(WebInspector.ElementsTreeOutline.protot ype, "setMultilineEditing", next); 25 InspectorTest.addSniffer(Elements.ElementsTreeOutline.prototype, "setMultilineEditing", next);
26 } 26 }
27 }, 27 },
28 28
29 function switchPanels(next) 29 function switchPanels(next)
30 { 30 {
31 WebInspector.inspectorView.showPanel("sources") 31 UI.inspectorView.showPanel("sources")
32 .then(next) 32 .then(next)
33 .catch(onError); 33 .catch(onError);
34 34
35 function onError(error) 35 function onError(error)
36 { 36 {
37 InspectorTest.addResult("FAILURE: exception caught while switchi ng panels."); 37 InspectorTest.addResult("FAILURE: exception caught while switchi ng panels.");
38 InspectorTest.completeTest(); 38 InspectorTest.completeTest();
39 } 39 }
40 } 40 }
41 ]); 41 ]);
42 } 42 }
43 43
44 </script> 44 </script>
45 </head> 45 </head>
46 46
47 <body onload="runTest()"> 47 <body onload="runTest()">
48 <p> 48 <p>
49 Verifies inspector doesn't break when switching panels while editing as HTML. cr bug.com/485457 49 Verifies inspector doesn't break when switching panels while editing as HTML. cr bug.com/485457
50 </p> 50 </p>
51 51
52 <div> 52 <div>
53 <div id="inspected">Inspected Node</div> 53 <div id="inspected">Inspected Node</div>
54 </div> 54 </div>
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698