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..c354ec94435ff4d42a91a77cadb637722e43c958 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,8 +34,12 @@ 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(); |
- eventSender.mouseUp(); |
+ debug('Triggers only input event'); |
shouldBeEqualToString('testInput.value', expectedValue); |
+ shouldEvaluateTo('changeEventCounter', 0); |
+ shouldEvaluateTo('inputEventCounter', 1); |
+ debug('Triggers only change event'); |
+ eventSender.mouseUp(); |
shouldEvaluateTo('changeEventCounter', 1); |
shouldEvaluateTo('inputEventCounter', 1); |