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

Issue 178593003: Dispatch input event for Range element keyboard event (Closed)

Created:
6 years, 9 months ago by Habib Virji
Modified:
6 years, 9 months ago
Reviewers:
keishi, tkent, ltilve
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Dispatch input event for Range element keyboard event For any value update, dispatch both input and change event. Also removes extra dispatch change event, as event are dispatch from TextFieldInputType:setValue. R=tkent, keishi1 BUG=345611 TEST=On keyboard event, both oninput and onchange event are triggered Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168558

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed typo #

Total comments: 4

Patch Set 3 : Updated tests #

Total comments: 4

Patch Set 4 : Updated test to use event.type and corrected format #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -2 lines) Patch
A LayoutTests/fast/forms/range/range-keyboard-oninput-event.html View 1 2 3 1 chunk +41 lines, -0 lines 1 comment Download
A LayoutTests/fast/forms/range/range-keyboard-oninput-event-expected.txt View 1 2 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/html/forms/RangeInputType.cpp View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Habib Virji
Send both input and change event. Removes extra change event getting dispatched.
6 years, 9 months ago (2014-02-25 16:42:21 UTC) #1
ltilve
https://codereview.chromium.org/178593003/diff/1/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html File LayoutTests/fast/forms/range/range-keyboard-oninput-event.html (right): https://codereview.chromium.org/178593003/diff/1/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html#newcode27 LayoutTests/fast/forms/range/range-keyboard-oninput-event.html:27: </hefad> I think that you have a typo here.
6 years, 9 months ago (2014-02-25 23:52:20 UTC) #2
Habib Virji
Thanks. Yes it was typo. https://codereview.chromium.org/178593003/diff/1/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html File LayoutTests/fast/forms/range/range-keyboard-oninput-event.html (right): https://codereview.chromium.org/178593003/diff/1/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html#newcode27 LayoutTests/fast/forms/range/range-keyboard-oninput-event.html:27: </hefad> On 2014/02/25 23:52:21, ...
6 years, 9 months ago (2014-02-26 08:52:57 UTC) #3
keishi
https://codereview.chromium.org/178593003/diff/20001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html File LayoutTests/fast/forms/range/range-keyboard-oninput-event.html (right): https://codereview.chromium.org/178593003/diff/20001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html#newcode6 LayoutTests/fast/forms/range/range-keyboard-oninput-event.html:6: var event = document.createEvent('KeyboardEvent'); I'm not sure if we ...
6 years, 9 months ago (2014-03-03 06:51:11 UTC) #4
Habib Virji
Updated tests by using js-tests and using eventSender.keyDown https://codereview.chromium.org/178593003/diff/20001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html File LayoutTests/fast/forms/range/range-keyboard-oninput-event.html (right): https://codereview.chromium.org/178593003/diff/20001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html#newcode6 LayoutTests/fast/forms/range/range-keyboard-oninput-event.html:6: var ...
6 years, 9 months ago (2014-03-04 10:32:51 UTC) #5
keishi
https://codereview.chromium.org/178593003/diff/40001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html File LayoutTests/fast/forms/range/range-keyboard-oninput-event.html (right): https://codereview.chromium.org/178593003/diff/40001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html#newcode15 LayoutTests/fast/forms/range/range-keyboard-oninput-event.html:15: { nit: no line break before bracket in JS. ...
6 years, 9 months ago (2014-03-04 10:47:22 UTC) #6
Habib Virji
Updated code to use event.type and corrected format https://codereview.chromium.org/178593003/diff/40001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html File LayoutTests/fast/forms/range/range-keyboard-oninput-event.html (right): https://codereview.chromium.org/178593003/diff/40001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html#newcode15 LayoutTests/fast/forms/range/range-keyboard-oninput-event.html:15: { ...
6 years, 9 months ago (2014-03-04 11:33:34 UTC) #7
keishi
lgtm
6 years, 9 months ago (2014-03-04 13:08:34 UTC) #8
Habib Virji
On 2014/03/04 13:08:34, keishi1 wrote: > lgtm thanks keishi
6 years, 9 months ago (2014-03-04 13:15:20 UTC) #9
tkent
lgtm https://codereview.chromium.org/178593003/diff/60001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html File LayoutTests/fast/forms/range/range-keyboard-oninput-event.html (right): https://codereview.chromium.org/178593003/diff/60001/LayoutTests/fast/forms/range/range-keyboard-oninput-event.html#newcode8 LayoutTests/fast/forms/range/range-keyboard-oninput-event.html:8: description('Test that for each keyboard event both input ...
6 years, 9 months ago (2014-03-04 22:24:28 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/178593003/60001
6 years, 9 months ago (2014-03-04 22:26:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/178593003/60001
6 years, 9 months ago (2014-03-05 20:54:54 UTC) #12
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 03:46:29 UTC) #13
Message was sent while issue was closed.
Change committed as 168558

Powered by Google App Engine
This is Rietveld 408576698