зеркало из https://github.com/mozilla/gecko-dev.git
Bug 606567 - Intermittent failure in browser/base/content/test/browser_bug585785.js | tab successfully removed. r=gavin a=...
This commit is contained in:
Родитель
832693b63c
Коммит
8b162a8d66
|
@ -1,7 +1,16 @@
|
|||
function test() {
|
||||
waitForExplicitFinish();
|
||||
|
||||
var tab = gBrowser.addTab();
|
||||
executeSoon(function () {
|
||||
isnot(tab.getAttribute("fadein"), "true", "newly opened tab is yet to fade in");
|
||||
|
||||
// Remove the tab right before the opening animation's first frame
|
||||
window.mozRequestAnimationFrame(function () {
|
||||
if (tab.getAttribute("fadein") != "true") {
|
||||
window.mozRequestAnimationFrame(arguments.callee);
|
||||
return;
|
||||
}
|
||||
|
||||
info(window.getComputedStyle(tab).maxWidth);
|
||||
gBrowser.removeTab(tab, {animate:true});
|
||||
ok(!tab.parentNode, "tab successfully removed");
|
||||
|
|
Загрузка…
Ссылка в новой задаче