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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/css-outline-dialog.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 3
4 <link rel="stylesheet" href="resources/css-outline-column.css"> 4 <link rel="stylesheet" href="resources/css-outline-column.css">
5 5
6 <script src="../../http/tests/inspector/inspector-test.js"></script> 6 <script src="../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../http/tests/inspector/debugger-test.js"></script> 7 <script src="../../http/tests/inspector/debugger-test.js"></script>
8 <script> 8 <script>
9 9
10 function test() 10 function test()
11 { 11 {
12 InspectorTest.showScriptSource("css-outline-column.css", onSourceShown); 12 InspectorTest.showScriptSource("css-outline-column.css", onSourceShown);
13 var textEditor; 13 var textEditor;
14 function onSourceShown(sourceFrame) 14 function onSourceShown(sourceFrame)
15 { 15 {
16 textEditor = sourceFrame.textEditor; 16 textEditor = sourceFrame.textEditor;
17 InspectorTest.addSniffer(WebInspector.StyleSheetOutlineDialog.prototype, "refresh", onDialogFulfilled); 17 InspectorTest.addSniffer(Sources.StyleSheetOutlineDialog.prototype, "ref resh", onDialogFulfilled);
18 WebInspector.panels.sources._sourcesView._showOutlineDialog(); 18 UI.panels.sources._sourcesView._showOutlineDialog();
19 } 19 }
20 20
21 function onDialogFulfilled() 21 function onDialogFulfilled()
22 { 22 {
23 WebInspector.StyleSheetOutlineDialog._instanceForTests.selectItem(1, "") ; 23 Sources.StyleSheetOutlineDialog._instanceForTests.selectItem(1, "");
24 var selection = textEditor.selection(); 24 var selection = textEditor.selection();
25 if (!selection.isEmpty()) { 25 if (!selection.isEmpty()) {
26 InspectorTest.addResult("ERROR: selection is not empty."); 26 InspectorTest.addResult("ERROR: selection is not empty.");
27 InspectorTest.completeTest(); 27 InspectorTest.completeTest();
28 return; 28 return;
29 } 29 }
30 InspectorTest.addResult(String.sprintf("Cursor position: line %d, column %d", selection.startLine, selection.startColumn)); 30 InspectorTest.addResult(String.sprintf("Cursor position: line %d, column %d", selection.startLine, selection.startColumn));
31 InspectorTest.completeTest(); 31 InspectorTest.completeTest();
32 } 32 }
33 } 33 }
34 34
35 </script> 35 </script>
36 36
37 </head> 37 </head>
38 38
39 <body onload="runTest()"> 39 <body onload="runTest()">
40 <p>Top-down test to verify css outline dialog.</p> 40 <p>Top-down test to verify css outline dialog.</p>
41 </body> 41 </body>
42 </html> 42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698