зеркало из https://github.com/mozilla/pjs.git
Another fix for the failing test
This commit is contained in:
Родитель
ae4b91285d
Коммит
07e71b8ac5
|
@ -70,11 +70,14 @@ function addTest(contentWindow, groupOneId, groupTwoId) {
|
||||||
"The number of children in group one is decreased by 1");
|
"The number of children in group one is decreased by 1");
|
||||||
is(groupTwo.getChildren().length, ++groupTwoTabItemCount,
|
is(groupTwo.getChildren().length, ++groupTwoTabItemCount,
|
||||||
"The number of children in group two is increased by 1");
|
"The number of children in group two is increased by 1");
|
||||||
|
|
||||||
|
let onTabViewHidden = function() {
|
||||||
|
groupTwo.closeAll();
|
||||||
|
finish();
|
||||||
|
};
|
||||||
|
window.addEventListener("tabviewhidden", onTabViewHidden, false);
|
||||||
TabView.toggle();
|
TabView.toggle();
|
||||||
groupTwo.closeAll();
|
|
||||||
|
|
||||||
finish();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function simulateDragDrop(srcElement, offsetX, offsetY, contentWindow) {
|
function simulateDragDrop(srcElement, offsetX, offsetY, contentWindow) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче