Skip to content

Commit 4700894

Browse files
committed
Remove unnecessary line of testing code
1 parent 40aaf38 commit 4700894

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tests/tester.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ function testAddingText(group, textarea, action, correctOutput, correctLengthToS
5959
/* Assuming the textarea is focused, add the given text to it, emitting 'input' and 'beforeinput' keyboard events (and 'keydown'/'keyup' Enter on newlines, if enterEvents is true) which plugins can handle */
6060
function addText(textarea, text, enterEvents=false) {
6161
for(let i = 0; i < text.length; i++) {
62-
const selectionStartBefore = textarea.selectionStart;
6362
if(enterEvents && text[i] == "\n") {
6463
textarea.dispatchEvent(new KeyboardEvent("keydown", { "key": "Enter" }));
6564
textarea.dispatchEvent(new KeyboardEvent("keyup", { "key": "Enter" }));

0 commit comments

Comments
 (0)