| Index: LayoutTests/inspector/editor/php-highlighter.html
|
| diff --git a/LayoutTests/inspector/editor/php-highlighter.html b/LayoutTests/inspector/editor/php-highlighter.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..269df6465d0ddf8094f1f45a1c5ca6355ee9ccce
|
| --- /dev/null
|
| +++ b/LayoutTests/inspector/editor/php-highlighter.html
|
| @@ -0,0 +1,28 @@
|
| +<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>
|
|
|