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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/autocomplete-hide-on-smart-brace.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="../sources/debugger/resources/edit-me.js"></script> 3 <script src="../sources/debugger/resources/edit-me.js"></script>
4 <script src="../editor/editor-test.js"></script> 4 <script src="../editor/editor-test.js"></script>
5 <script src="../../http/tests/inspector/inspector-test.js"></script> 5 <script src="../../http/tests/inspector/inspector-test.js"></script>
6 <script src="../../http/tests/inspector/debugger-test.js"></script> 6 <script src="../../http/tests/inspector/debugger-test.js"></script>
7 <script> 7 <script>
8 8
9 function test() 9 function test()
10 { 10 {
11 InspectorTest.showScriptSource("edit-me.js", onSourceFrame); 11 InspectorTest.showScriptSource("edit-me.js", onSourceFrame);
12 12
13 var textEditor; 13 var textEditor;
14 function onSourceFrame(sourceFrame) 14 function onSourceFrame(sourceFrame)
15 { 15 {
16 textEditor = sourceFrame.textEditor; 16 textEditor = sourceFrame.textEditor;
17 textEditor.element.focus(); 17 textEditor.element.focus();
18 InspectorTest.runTestSuite(testSuite); 18 InspectorTest.runTestSuite(testSuite);
19 } 19 }
20 20
21 var testSuite = [ 21 var testSuite = [
22 function testSummonSuggestBox(next) 22 function testSummonSuggestBox(next)
23 { 23 {
24 InspectorTest.addSniffer(WebInspector.TextEditorAutocompleteControll er.prototype, "_onSuggestionsShownForTest", onSuggestionsShown); 24 InspectorTest.addSniffer(TextEditor.TextEditorAutocompleteController .prototype, "_onSuggestionsShownForTest", onSuggestionsShown);
25 25
26 textEditor.setText("one\n()"); 26 textEditor.setText("one\n()");
27 textEditor.setSelection(WebInspector.TextRange.createFromLocation(1, 1)); 27 textEditor.setSelection(Common.TextRange.createFromLocation(1,1));
28 InspectorTest.typeIn(textEditor, "o", function() { }); 28 InspectorTest.typeIn(textEditor, "o", function() { });
29 29
30 function onSuggestionsShown() 30 function onSuggestionsShown()
31 { 31 {
32 InspectorTest.addResult("Suggestions shown."); 32 InspectorTest.addResult("Suggestions shown.");
33 next(); 33 next();
34 } 34 }
35 }, 35 },
36 36
37 function testTypeSmartBrace(next) 37 function testTypeSmartBrace(next)
38 { 38 {
39 InspectorTest.addSniffer(WebInspector.TextEditorAutocompleteControll er.prototype, "_onSuggestionsHiddenForTest", onSuggestionsHidden); 39 InspectorTest.addSniffer(TextEditor.TextEditorAutocompleteController .prototype, "_onSuggestionsHiddenForTest", onSuggestionsHidden);
40 InspectorTest.typeIn(textEditor, ")", function() { }); 40 InspectorTest.typeIn(textEditor, ")", function() { });
41 41
42 function onSuggestionsHidden() 42 function onSuggestionsHidden()
43 { 43 {
44 InspectorTest.addResult("Suggestions hidden."); 44 InspectorTest.addResult("Suggestions hidden.");
45 next(); 45 next();
46 } 46 }
47 }, 47 },
48 ]; 48 ];
49 } 49 }
50 50
51 </script> 51 </script>
52 </head> 52 </head>
53 53
54 <body onload="runTest();"> 54 <body onload="runTest();">
55 <p> 55 <p>
56 Verify that suggest box gets hidden whenever a cursor jumps over smart brace. 56 Verify that suggest box gets hidden whenever a cursor jumps over smart brace.
57 </p> 57 </p>
58 </body> 58 </body>
59 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698