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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/editor/php-highlighter.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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="editor-test.js"></script> 4 <script src="editor-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var mimeType = "text/x-php"; 8 var mimeType = "text/x-php";
9 var textEditor = InspectorTest.createTestEditor(); 9 var textEditor = InspectorTest.createTestEditor();
10 textEditor.setMimeType(mimeType).then(onModesLoaded); 10 InspectorTest.addSnifferPromise(SourceFrame.SourcesTextEditor.prototype, "re writeMimeType").then(onModesLoaded);
11 11 textEditor.setMimeType(mimeType);
12 function onModesLoaded() 12 function onModesLoaded()
13 { 13 {
14 InspectorTest.addResult("Mode loaded: " + !!CodeMirror.mimeModes[mimeTyp e]); 14 InspectorTest.addResult("Mode loaded: " + !!CodeMirror.mimeModes[mimeTyp e]);
15 InspectorTest.completeTest(); 15 InspectorTest.completeTest();
16 } 16 }
17 } 17 }
18 18
19 </script> 19 </script>
20 </head> 20 </head>
21 21
22 <body onload="runTest()"> 22 <body onload="runTest()">
23 <p> 23 <p>
24 Tests that php highlighter loads successfully. 24 Tests that php highlighter loads successfully.
25 </p> 25 </p>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/editor/text-editor-token-at-position.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698