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

Unified Diff: LayoutTests/inspector/editor/text-editor-ctrl-d-expected.txt

Issue 219583002: DevTools: [CodeMirror] Implement "select next occurrence" functionality (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: do not use tokenHighlighter with multiple selections Created 6 years, 9 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/text-editor-ctrl-d-expected.txt
diff --git a/LayoutTests/inspector/editor/text-editor-ctrl-d-expected.txt b/LayoutTests/inspector/editor/text-editor-ctrl-d-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..e4c3c54cfdbefa199c64e4e26220e39ef06a79b1
--- /dev/null
+++ b/LayoutTests/inspector/editor/text-editor-ctrl-d-expected.txt
@@ -0,0 +1,63 @@
+This test verifies Ctrl-D functionality, which selects next occurrence of word.
+
+function wordData() {
+ return {
+ original: $(".entry.original > .input").text(),
+ translation: $(".entry.translation > .input").text(),
+ tags: $(".active-tags > .tagcloud > .tag").toArray().map(function(value) { return value.textContent; })
+ };
+}
+
+function submitWord(url) {
+ var stub = new App.Stub($(".content"));
+ $.post(url, wordData())
+ .done(function() {
+ var callback = $("meta[data-callback]").attr("data-callback");
+ if (callback) {
+ window.location = callback;
+ } else {
+ stub.success();
+ $(".entry.original > .input").text("").focus();
+ $(".entry.translation > .input").text("");
+ }
+ })
+ .fail(function(obj, err, errDescr) {
+ stub.failure("Error: " + errDescr);
+ })
+}
+
+Running: testNextFullWord
+'function': 3
+
+Running: testOccurrencesOnTheSameLine
+'original': 3
+
+Running: testTwoCloseWords
+'text': 4
+
+Running: testCursorInTheWordStart
+'function': 1
+
+Running: testCursorInTheWordEnd
+'function': 1
+
+Running: testNonWordSelection
+'$(': 7
+
+Running: testNonWordSelection2
+' > ': 6
+
+Running: testNonWordSelection3
+'window.location': 1
+'success': 1
+'text(': 1
+
+Running: testNonWordSelection4
+'text(': 4
+'dow.locati': 1
+'es': 1
+
+Running: testTriggerWordSearchInMixedCase
+'stub = new App.Stub': 1
+'callback': 5
+
« no previous file with comments | « LayoutTests/inspector/editor/text-editor-ctrl-d.html ('k') | Source/devtools/front_end/CodeMirrorTextEditor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698