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

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

Issue 2498783002: DevTools: [Sources] Improve editor load time by optimizing setMimeType (Closed)
Patch Set: installMimeTypeModes 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 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 42bef4eead6aed87cafc615cfc0c97f92db841d8..3d98e2c38ef1664891d46643cf53d831c65f5e76 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,7 +35,8 @@ function test()
function testHighlightedText(next)
{
var textEditor = InspectorTest.createTestEditor();
- textEditor.setMimeType("text/javascript").then(step1);
+ InspectorTest.addSnifferPromise(SourceFrame.SourcesTextEditor.prototype, "rewriteMimeType").then(step1);
+ textEditor.setMimeType("text/javascript");
function step1()
{
textEditor.setText(text.join("\n"));

Powered by Google App Engine
This is Rietveld 408576698