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'));
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);
}
shouldBeTrue('scrollTopBeforeWheelEvent > scrollTopAfterWheelEvent');
popupWindow.focus();
- eventSender.keyDown('\x1B');
+ eventSender.keyDown('escape');
waitUntilClosing(test2AfterClosing);
}