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