mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 600871 - Fix timeout in browser_bookmarks.js test [r=mfinkle]
--HG-- extra : rebase_source : d84d795e061411dc2c99a92434dc68b645435625
This commit is contained in:
parent
05297d60d7
commit
948be26a92
@ -82,7 +82,7 @@ gTests.push({
|
||||
_currentTab: null,
|
||||
|
||||
run: function() {
|
||||
this._currentTab = Browser.addTab(testURL_01, true);
|
||||
this._currentTab = Browser.addTab(testURL_02, true);
|
||||
|
||||
// Need to wait until the page is loaded
|
||||
messageManager.addMessageListener("pageshow", function(aMessage) {
|
||||
@ -101,6 +101,13 @@ gTests.push({
|
||||
},
|
||||
|
||||
onBookmarksReady: function() {
|
||||
let bookmarkitem = document.getAnonymousElementByAttribute(BookmarkList.panel, "uri", testURL_01);
|
||||
bookmarkitem.control.scrollBoxObject.ensureElementIsVisible(bookmarkitem);
|
||||
|
||||
isnot(bookmarkitem, null, "Found the bookmark");
|
||||
is(bookmarkitem.getAttribute("uri"), testURL_01, "Bookmark has the right URL via attribute");
|
||||
is(bookmarkitem.spec, testURL_01, "Bookmark has the right URL via property");
|
||||
|
||||
// Create a listener for the opening bookmark
|
||||
messageManager.addMessageListener("pageshow", function(aMessage) {
|
||||
messageManager.removeMessageListener(aMessage.name, arguments.callee);
|
||||
@ -111,11 +118,6 @@ gTests.push({
|
||||
runNextTest();
|
||||
});
|
||||
|
||||
let bookmarkitem = document.getAnonymousElementByAttribute(BookmarkList.panel, "uri", testURL_01);
|
||||
isnot(bookmarkitem, null, "Found the bookmark");
|
||||
is(bookmarkitem.getAttribute("uri"), testURL_01, "Bookmark has the right URL via attribute");
|
||||
is(bookmarkitem.spec, testURL_01, "Bookmark has the right URL via property");
|
||||
|
||||
EventUtils.synthesizeMouse(bookmarkitem, bookmarkitem.width / 2, bookmarkitem.height / 2, {});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user