Bug 663709 - browser_tabview_bug627288.js depends on other tests; f=raymond, r=dietrich

This commit is contained in:
Tim Taubert 2011-06-14 10:41:18 +02:00
Родитель 43c495c5b3
Коммит da64f50ca9
1 изменённых файлов: 11 добавлений и 9 удалений

Просмотреть файл

@ -15,22 +15,24 @@ function test() {
cw.TabItems.pauseReconnecting();
tab = gBrowser.loadOneTab('http://mochi.test:8888/', {inBackground: true});
cw.Storage.saveTab(tab, data);
whenTabAttrModified(tab, function () {
afterAllTabsLoaded(function () {
tabItem = tab._tabViewTabItem;
// Hook into loadedCachedImageData since loading cached thumbnails
// is asynchronous.
tabItem.addSubscriber(tabItem, "loadedCachedImageData", function(item) {
item.removeSubscriber(item, "loadedCachedImageData");
tabItem.addSubscriber(tabItem, "savedCachedImageData", function () {
tabItem.removeSubscriber(tabItem, "savedCachedImageData");
ok(tabItem.isShowingCachedData(), 'tabItem shows cached data');
tabItem.addSubscriber(tabItem, "loadedCachedImageData", function () {
tabItem.removeSubscriber(tabItem, "loadedCachedImageData");
testChangeUrlAfterReconnect();
ok(tabItem.isShowingCachedData(), 'tabItem shows cached data');
testChangeUrlAfterReconnect();
});
cw.TabItems.resumeReconnecting();
});
cw.TabItems.resumeReconnecting();
cw.Storage.saveTab(tab, data);
});
});
}