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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/autocomplete-css.html

Issue 2769843003: DevTools: split text_utils out of common module (Closed)
Patch Set: rebaseline Created 3 years, 9 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
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698