You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/tester.js
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ function testAddingText(group, textarea, action, correctOutput, correctLengthToS
59
59
/* 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 */
/* Start the tests using the textarea inside the code-input element and whether highlight.js is being used (as the Autodetect plugin only works with highlight.js, for example) */
176
182
asyncfunctionstartTests(textarea,isHLJS){
177
183
textarea.focus();
178
-
allowInputEvents(textarea);
179
184
180
185
codeInputElement=textarea.parentElement;
186
+
allowInputEvents(textarea,codeInputElement);
181
187
182
188
/*--- Tests for core functionality ---*/
183
189
@@ -438,7 +444,7 @@ console.log("I've got another line!", 2 < 3, "should be true.");
438
444
findInput.focus();
439
445
allowInputEvents(findInput);
440
446
addText(findInput,"hello");
441
-
awaitwaitAsync(150);// Wait for highlighting so matches update
447
+
awaitwaitAsync(200);// Wait for highlighting so matches update
442
448
443
449
replaceInput.value="hi";
444
450
replaceAllButton.click();
@@ -590,4 +596,4 @@ console.log("I've got another line!", 2 < 3, "should be true.");
0 commit comments