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

Unified Diff: LayoutTests/fast/forms/resources/common-spinbutton-change-and-input-events.js

Issue 228633003: Do not dispatch change event when pressing spin button for input type=datetime (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Detach handling for DateTime field 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/resources/common-spinbutton-change-and-input-events.js
diff --git a/LayoutTests/fast/forms/resources/common-spinbutton-change-and-input-events.js b/LayoutTests/fast/forms/resources/common-spinbutton-change-and-input-events.js
index 83376284b515ec52c89dd8520b29b9a0bb5d860e..ad704dab940268a440a13c26d4351ba34257fe45 100644
--- a/LayoutTests/fast/forms/resources/common-spinbutton-change-and-input-events.js
+++ b/LayoutTests/fast/forms/resources/common-spinbutton-change-and-input-events.js
@@ -34,6 +34,11 @@ function testSpinButtonChangeAndInputEvents(inputType, initialValue, expectedVal
var spinButton = getElementByPseudoId(internals.oldestShadowRoot(testInput), "-webkit-inner-spin-button");
eventSender.mouseMoveTo(testInput.offsetLeft + spinButton.offsetLeft, testInput.offsetTop + testInput.offsetHeight / 4);
eventSender.mouseDown();
+ debug('Triggers only input event on mouseDown');
+ shouldBeEqualToString('testInput.value', expectedValue);
+ shouldEvaluateTo('changeEventCounter', 0);
+ shouldEvaluateTo('inputEventCounter', 1);
+ debug('Triggers only change event on mouseUp');
eventSender.mouseUp();
shouldBeEqualToString('testInput.value', expectedValue);
shouldEvaluateTo('changeEventCounter', 1);

Powered by Google App Engine
This is Rietveld 408576698