зеркало из https://github.com/mozilla/pjs.git
Bug 663709 - browser_tabview_bug627288.js depends on other tests; f=raymond, r=dietrich
This commit is contained in:
Родитель
43c495c5b3
Коммит
da64f50ca9
|
@ -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);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче