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

Unified Diff: LayoutTests/fast/forms/number/number-spinbutton-changeevent-trigger-expected.txt

Issue 196933006: Do not dispatch 'change' events during pressing spin buttons for input[type=number]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test code updated Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/number/number-spinbutton-changeevent-trigger-expected.txt
diff --git a/LayoutTests/fast/forms/number/number-spinbutton-changeevent-trigger-expected.txt b/LayoutTests/fast/forms/number/number-spinbutton-changeevent-trigger-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..079b7feffa4011d6f9bd7ed7617ec6308029ee5e
--- /dev/null
+++ b/LayoutTests/fast/forms/number/number-spinbutton-changeevent-trigger-expected.txt
@@ -0,0 +1,23 @@
+Should not trigger any event
+PASS inputEventCounter is 0
+PASS changeEventCounter is 0
+Input event is triggered but no change event is triggered on mouse down
+PASS inputEventCounter is 1
+PASS changeEventCounter is 0
+PASS numberInput1.value is "1"
+Change events occurs on mouse up
+PASS inputEventCounter is 1
+PASS changeEventCounter is 1
+PASS numberInput1.value is "1"
+Pressed more than once, still events are triggered
+PASS inputEventCounter is 2
+PASS changeEventCounter is 2
+PASS numberInput1.value is "2"
+When moving away from field, it should not trigger event, only on value change
+PASS inputEventCounter is 2
+PASS changeEventCounter is 2
+PASS numberInput1.value is "2"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698