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

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

Issue 128153002: Update of change event for datetime input type (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added keyboard change event Created 6 years, 11 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..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);

Powered by Google App Engine
This is Rietveld 408576698