1 This test verifies Ctrl-D functionality, which selects next occurrence of word.
5 original: $(".entry.original > .input").text(),
6 translation: $(".entry.translation > .input").text(),
7 tags: $(".active-tags > .tagcloud > .tag").toArray().map(function(value) { return value.textContent; })
11 function submitWord(url) {
12 var stub = new App.Stub($(".content"));
13 $.post(url, wordData())
15 var callback = $("meta[data-callback]").attr("data-callback");
17 window.location = callback;
20 $(".entry.original > .input").text("").focus();
21 $(".entry.translation > .input").text("");
24 .fail(function(obj, err, errDescr) {
25 stub.failure("Error: " + errDescr);
29 Running: testNextFullWord
32 Running: testCaseSensitive
35 Running: testOccurrencesOnTheSameLine
38 Running: testUndoLastAddedSelection
41 Running: testUndoSelectionPreservesFullWordState
43 Last selection: {"startLine":17,"startColumn":42,"endLine":17,"endColumn":46}
45 Running: testUndoSelectionPreservesPartialSelection
47 Last selection: {"startLine":4,"startColumn":96,"endLine":4,"endColumn":100}
49 Running: testTwoCloseWords