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); |