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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/elements-hide-html-comments.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 <!-- comment 1 --> 1 <!-- comment 1 -->
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../http/tests/inspector/elements-test.js"></script>
6 <script> 6 <script>
7 7
8 function test() 8 function test()
9 { 9 {
10 InspectorTest.nodeWithId("inspect", onNode); 10 InspectorTest.nodeWithId("inspect", onNode);
11 11
12 function onNode(node) 12 function onNode(node)
13 { 13 {
14 var commentNode = node.nextSibling; 14 var commentNode = node.nextSibling;
15 InspectorTest.selectNode(commentNode) 15 InspectorTest.selectNode(commentNode)
16 .then(onNodeSelected); 16 .then(onNodeSelected);
17 } 17 }
18 18
19 function onNodeSelected() 19 function onNodeSelected()
20 { 20 {
21 InspectorTest.addResult("HTML comments shown:"); 21 InspectorTest.addResult("HTML comments shown:");
22 InspectorTest.dumpElementsTree(); 22 InspectorTest.dumpElementsTree();
23 WebInspector.settingForTest("showHTMLComments").set(false); 23 Common.settingForTest("showHTMLComments").set(false);
24 InspectorTest.addResult("\nHTML comments hidden:"); 24 InspectorTest.addResult("\nHTML comments hidden:");
25 InspectorTest.dumpElementsTree(); 25 InspectorTest.dumpElementsTree();
26 InspectorTest.completeTest(); 26 InspectorTest.completeTest();
27 } 27 }
28 } 28 }
29 29
30 </script> 30 </script>
31 </head> 31 </head>
32 <!-- comment 2 --> 32 <!-- comment 2 -->
33 <body onload="runTest()"> 33 <body onload="runTest()">
34 <p> 34 <p>
35 Verifies show/hide HTML comments setting. 35 Verifies show/hide HTML comments setting.
36 <span id="inspect"></span> 36 <span id="inspect"></span>
37 <!-- comment 3 --> 37 <!-- comment 3 -->
38 </p> 38 </p>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698