OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="./resources/empty.css"> | 3 <link rel="stylesheet" href="./resources/empty.css"> |
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/debugger-test.js"></script> | 5 <script src="../../http/tests/inspector/debugger-test.js"></script> |
6 <script src="./autocomplete-test.js"></script> | 6 <script src="./autocomplete-test.js"></script> |
7 <script src="../editor/editor-test.js"></script> | 7 <script src="../editor/editor-test.js"></script> |
8 <script> | 8 <script> |
9 function test() | 9 function test() |
10 { | 10 { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 ]).then(next); | 80 ]).then(next); |
81 }, | 81 }, |
82 | 82 |
83 function verifySuggestionsOnColumnTypedIn(next) | 83 function verifySuggestionsOnColumnTypedIn(next) |
84 { | 84 { |
85 textEditor.element.focus(); | 85 textEditor.element.focus(); |
86 textEditor.setText([ | 86 textEditor.setText([ |
87 ".green {", | 87 ".green {", |
88 " display" | 88 " display" |
89 ].join("\n")); | 89 ].join("\n")); |
90 textEditor.setSelection(Common.TextRange.createFromLocation(1, 10)); | 90 textEditor.setSelection(TextUtils.TextRange.createFromLocation(1, 10
)); |
91 InspectorTest.dumpTextWithSelection(textEditor); | 91 InspectorTest.dumpTextWithSelection(textEditor); |
92 InspectorTest.addSniffer(TextEditor.TextEditorAutocompleteController
.prototype, "_onSuggestionsShownForTest", suggestionsShown); | 92 InspectorTest.addSniffer(TextEditor.TextEditorAutocompleteController
.prototype, "_onSuggestionsShownForTest", suggestionsShown); |
93 InspectorTest.typeIn(textEditor, ":"); | 93 InspectorTest.typeIn(textEditor, ":"); |
94 | 94 |
95 function suggestionsShown(words) | 95 function suggestionsShown(words) |
96 { | 96 { |
97 InspectorTest.addResult("Suggestions displayed on ':' symbol typ
ed in:"); | 97 InspectorTest.addResult("Suggestions displayed on ':' symbol typ
ed in:"); |
98 InspectorTest.addResult("[" + words.map(item => item.text).join(
", ") + "]"); | 98 InspectorTest.addResult("[" + words.map(item => item.text).join(
", ") + "]"); |
99 next(); | 99 next(); |
100 } | 100 } |
101 }, | 101 }, |
102 ]; | 102 ]; |
103 } | 103 } |
104 </script> | 104 </script> |
105 </head> | 105 </head> |
106 | 106 |
107 <body onload="runTest();"> | 107 <body onload="runTest();"> |
108 <p> | 108 <p> |
109 The test verifies autocomplete suggestions for CSS file. | 109 The test verifies autocomplete suggestions for CSS file. |
110 </p> | 110 </p> |
111 </body> | 111 </body> |
112 </html> | 112 </html> |
OLD | NEW |