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

Unified Diff: LayoutTests/inspector/editor/highlighter-paste-in-comment.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-paste-in-comment.html
diff --git a/LayoutTests/inspector/editor/highlighter-paste-in-comment.html b/LayoutTests/inspector/editor/highlighter-paste-in-comment.html
deleted file mode 100644
index a276cc782e865b8ba5d674abe74c64c1a3194d73..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/editor/highlighter-paste-in-comment.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<html>
-<head>
-<script src="../../http/tests/inspector/inspector-test.js"></script>
-<script src="highlighter-test.js"></script>
-<script>
-
-function test()
-{
- var textModel = new WebInspector.TextEditorModel();
-
- var highlighter = new WebInspector.TextEditorHighlighter(textModel, function() {});
- highlighter.mimeType = "text/javascript";
- highlighter.highlightChunkLimit = Number.MAX_VALUE; // Synchronous.
-
- function dumpTextModel(msg) {
- InspectorTest.addResult("\n" + msg);
- InspectorTest.dumpTextModel(textModel);
- }
-
- var src = "/*\n\n1\n2\n3\n4\n5\n\n*/";
- textModel.setText(src);
-
- highlighter.highlight(textModel.linesCount);
- dumpTextModel("After highlighting all lines");
-
- var range = new WebInspector.TextRange(7, 0, 7, 0);
- var newRange = textModel.editRange(range, "1\n2\n3\n4\n5\n");
- highlighter.updateHighlight(7, textModel.linesCount);
- dumpTextModel("After update highlights");
-
- highlighter.highlight(textModel.linesCount);
- dumpTextModel("After highlighting up to the end");
-
- // There was an actual bug with wrongly restored position after updating the highlights.
- var range = new WebInspector.TextRange(12, 0, 12, 0);
- var newRange = textModel.editRange(range, "\n");
- highlighter.updateHighlight(12, textModel.linesCount);
- highlighter.highlight(textModel.linesCount);
- dumpTextModel("After inserting a new line");
-
- InspectorTest.completeTest();
-}
-
-</script>
-</head>
-
-<body onload="runTest()">
-<p>
-This test checks against <a href="https://bugs.webkit.org/show_bug.cgi?id=54876">a bug</a> in the highlighter when pasting text inside a comment.
-</p>
-
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698