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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/touch/gesture/gesture-tap-input-after-composition.html

Issue 1469783002: Cleanup: Correctly spell success(ful). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format media Created 5 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../../resources/testharness.js"></script> 2 <script src="../../../../resources/testharness.js"></script>
3 <script src="../../../../resources/testharnessreport.js"></script> 3 <script src="../../../../resources/testharnessreport.js"></script>
4 <input id="input1" type="input"> 4 <input id="input1" type="input">
5 <input id="input2" type="input"> 5 <input id="input2" type="input">
6 <script> 6 <script>
7 test(function(t) 7 test(function(t)
8 { 8 {
9 var sucessInput = false; 9 var successInput = false;
10 if (!window.eventSender) 10 if (!window.eventSender)
11 return; 11 return;
12 var input = document.getElementById('input1'); 12 var input = document.getElementById('input1');
13 input.focus(); 13 input.focus();
14 14
15 textInputController.setMarkedText('abcde', 1, 3); 15 textInputController.setMarkedText('abcde', 1, 3);
16 assert_true(textInputController.hasMarkedText()); 16 assert_true(textInputController.hasMarkedText());
17 assert_equals(textInputController.markedRange().toString(), "0,5"); 17 assert_equals(textInputController.markedRange().toString(), "0,5");
18 18
19 var input2 = document.getElementById('input2'); 19 var input2 = document.getElementById('input2');
20 input2.addEventListener('input', function () { 20 input2.addEventListener('input', function () {
21 sucessInput = true; 21 successInput = true;
22 }); 22 });
23 var x = input2.offsetLeft + input2.offsetWidth / 2; 23 var x = input2.offsetLeft + input2.offsetWidth / 2;
24 var y = input2.offsetTop + input2.offsetHeight / 2; 24 var y = input2.offsetTop + input2.offsetHeight / 2;
25 eventSender.gestureTapDown(x, y); 25 eventSender.gestureTapDown(x, y);
26 eventSender.gestureShowPress(x, y); 26 eventSender.gestureShowPress(x, y);
27 eventSender.gestureTap(x, y); 27 eventSender.gestureTap(x, y);
28 28
29 eventSender.keyDown('a'); 29 eventSender.keyDown('a');
30 assert_true(sucessInput); 30 assert_true(successInput);
31 }, "This tests if the composition is reset before tapping of gesture."); 31 }, "This tests if the composition is reset before tapping of gesture.");
32 </script> 32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698