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

Unified Diff: LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-mouse-operations.html

Issue 484353004: Test tidying: use "escape" and "backspace" with eventSender.keyDown() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: More quoting consistency wibbles Created 6 years, 4 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/suggestion-picker/date-suggestion-picker-mouse-operations.html
diff --git a/LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-mouse-operations.html b/LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-mouse-operations.html
index 4fa209a061c3cf819003c63bfaa3312166a20fce..39bc6d91876dc47735681e9a1919cb8bc37066c2 100644
--- a/LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-mouse-operations.html
+++ b/LayoutTests/fast/forms/suggestion-picker/date-suggestion-picker-mouse-operations.html
@@ -91,11 +91,11 @@ openPicker($('date'), test1);
function test1() {
debug('Check that page popup exists.');
- shouldBe('popupWindow.pagePopupController.toString()', '"[object PagePopupController]"');
+ shouldBeEqualToString('popupWindow.pagePopupController.toString()', '[object PagePopupController]');
debug('Check that hovering over an entry highlights it.');
hoverOverElement(popupWindow.document.querySelector(".suggestion-list-entry:nth-child(2)"));
- shouldBe('highlightedEntry()', '"2012-01-02"');
+ shouldBeEqualToString('highlightedEntry()', '2012-01-02');
debug('Check that moving the mouse outside the popup de-highlights entries.');
hoverOverElement(document.getElementById('description'));
@@ -108,7 +108,7 @@ function test1() {
function test1AfterClosing() {
shouldBeNull('$("mock-page-popup")');
- shouldBe('document.getElementById("date").value', '"2012-01-03"');
+ shouldBeEqualToString('document.getElementById("date").value', '2012-01-03');
openPicker($('date'), test2);
}
@@ -132,7 +132,7 @@ function test2() {
shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent');
popupWindow.focus();
- eventSender.keyDown('\x1B');
+ eventSender.keyDown('escape');
waitUntilClosing(test2AfterClosing);
}

Powered by Google App Engine
This is Rietveld 408576698