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

Side by Side Diff: LayoutTests/inspector/elements/switch-panels-while-editing-as-html.html

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

Powered by Google App Engine
This is Rietveld 408576698