| <html> |
| <head> |
| <script src="../../http/tests/inspector/inspector-test.js"></script> |
| <script src="editor-test.js"></script> |
| <script> |
| function test() |
| { |
| var mimeType = "text/x-php"; |
| var textEditor = InspectorTest.createTestEditor(); |
| InspectorTest.addSniffer(textEditor, "_mimeTypeModesLoaded", onModesLoaded); |
| textEditor.setMimeType(mimeType); |
| |
| function onModesLoaded() |
| { |
| InspectorTest.addResult("Mode loaded: " + !!CodeMirror.mimeModes[mimeType]); |
| InspectorTest.completeTest(); |
| } |
| } |
| |
| </script> |
| </head> |
| |
| <body onload="runTest()"> |
| <p> |
| Tests that php highlighter loads successfully. |
| </p> |
| </body> |
| </html> |