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

Unified Diff: third_party/WebKit/LayoutTests/inspector/editor/php-highlighter.html

Issue 2498783002: DevTools: [Sources] Improve editor load time by optimizing setMimeType (Closed)
Patch Set: Remove unneeded if 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/php-highlighter.html
diff --git a/third_party/WebKit/LayoutTests/inspector/editor/php-highlighter.html b/third_party/WebKit/LayoutTests/inspector/editor/php-highlighter.html
index 57e54a6ac586217afd676ec00d1265c443514f49..c70bcc28cf074b321b76b0f4286f8f845705c9c3 100644
--- a/third_party/WebKit/LayoutTests/inspector/editor/php-highlighter.html
+++ b/third_party/WebKit/LayoutTests/inspector/editor/php-highlighter.html
@@ -7,8 +7,8 @@ function test()
{
var mimeType = "text/x-php";
var textEditor = InspectorTest.createTestEditor();
- textEditor.setMimeType(mimeType).then(onModesLoaded);
-
+ InspectorTest.addSnifferPromise(SourceFrame.SourcesTextEditor.prototype, "rewriteMimeType").then(onModesLoaded);
+ textEditor.setMimeType(mimeType);
function onModesLoaded()
{
InspectorTest.addResult("Mode loaded: " + !!CodeMirror.mimeModes[mimeType]);

Powered by Google App Engine
This is Rietveld 408576698