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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/select-event-on-input-recursive.html

Issue 2735633006: INPUT/TEXTAREA elements: Dispatch 'select' event only if text selection is changed. (Closed)
Patch Set: . Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <input id="input" value="abcd" />
8 <script>
9 window.jsTestIsAsync = true;
10
11 var eventCalledCount = 0;
12 input.addEventListener("select", function () {
13 eventCalledCount++;
14 input.selectionStart = 1;
15 input.selectionEnd = 3;
yoichio 2017/03/07 09:00:56 This test confirms throttle event queueing. Could
tkent 2017/03/07 09:27:34 The throttling itself is unnecessary. I'll update
tkent 2017/03/07 11:30:08 Done. Uploaded new patch set.
yoichio 2017/03/08 02:00:36 Do you think this kind of flood is friends of infi
tkent 2017/03/08 02:05:23 This kind of flood won't happen after this CL beca
16 });
17
18 var animationFrameCount = 0;
19 var animation = function () {
20 animationFrameCount++;
21 shouldBeTrue("animationFrameCount == eventCalledCount");
22 if (animationFrameCount == 10)
23 window.finishJSTest();
24 else
25 window.requestAnimationFrame(animation);
26 }
27 window.requestAnimationFrame(animation);
28
29 input.select();
30 </script>
31 </body>
32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698