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

Unified Diff: LayoutTests/inspector/editor/highlighter-chunk-limit.html

Issue 22638008: DevTools: Use CodeMirror modes instead of highlight tokenizers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 7 years, 4 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
Index: LayoutTests/inspector/editor/highlighter-chunk-limit.html
diff --git a/LayoutTests/inspector/editor/highlighter-chunk-limit.html b/LayoutTests/inspector/editor/highlighter-chunk-limit.html
deleted file mode 100644
index bdf17a375381dc4544a3f1ae600bedabaac1029e..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/editor/highlighter-chunk-limit.html
+++ /dev/null
@@ -1,42 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="highlighter-test.js"></script>
-<script>
-
-function test()
-{
-
- var singleLine = "this.field = this.field = \"foo\"; /* comment here */ this.otherField = 12; // end of line\n";
- src = "";
- for (var i = 0; i < 10; ++i)
- src += singleLine;
-
- var textModel = new WebInspector.TextEditorModel();
- textModel.setText(src);
-
- function damageCallback(startLine, endLine)
- {
- if (endLine === textModel.linesCount) {
- InspectorTest.addResult("Highlighter results");
- InspectorTest.dumpTextModel(textModel);
- InspectorTest.completeTest();
- }
- }
-
- var highlighter = new WebInspector.TextEditorHighlighter(textModel, damageCallback);
- highlighter.mimeType = "text/javascript";
- highlighter.highlightChunkLimit = 3;
- highlighter.highlight(textModel.linesCount);
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-This test checks highlighting with specific highlightChunkLimit.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698