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

Unified Diff: third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html

Issue 2385793003: DevTools: Fix visible whitespace for cm_modes (Closed)
Patch Set: Use promises Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html
diff --git a/third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html b/third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html
index 6a240a93c1aa5bfd511e038b9eab31bf985974c5..42bef4eead6aed87cafc615cfc0c97f92db841d8 100644
--- a/third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html
+++ b/third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html
@@ -35,10 +35,13 @@ function test()
function testHighlightedText(next)
{
var textEditor = InspectorTest.createTestEditor();
- textEditor.setMimeType("text/javascript");
- textEditor.setText(text.join("\n"));
- testTokenAtPosition(textEditor);
- next();
+ textEditor.setMimeType("text/javascript").then(step1);
+ function step1()
+ {
+ textEditor.setText(text.join("\n"));
+ testTokenAtPosition(textEditor);
+ next();
+ }
},
]);
}

Powered by Google App Engine
This is Rietveld 408576698