Bug 710863 - Finish mochitests when they are run in single test mode. r=jmaher

This commit is contained in:
Cameron McCormack 2011-12-30 11:09:03 +11:00
Родитель 222e9fbd53
Коммит 808af35fc1
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -16,7 +16,11 @@
var SimpleTest = { };
var parentRunner = null;
var isPrimaryTestWindow = !!parent.TestRunner;
// In normal test runs, the window that has a TestRunner in its parent is
// the primary window. In single test runs, if there is no parent and there
// is no opener then it is the primary window.
var isPrimaryTestWindow = !!parent.TestRunner || (parent == window && !opener);
// Finds the TestRunner for this test run and the SpecialPowers object (in
// case it is not defined) from a parent/opener window.