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

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

Issue 1208423005: [DevTools] Add test checking that codemirror-based highlighter is loaded. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months 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
« no previous file with comments | « no previous file | LayoutTests/inspector/editor/php-highlighter-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/inspector/editor/php-highlighter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698