Bug 1020039 - Intermittent relations/test_embeds.xul

This commit is contained in:
Alexander Surkov 2014-09-12 10:04:25 -04:00
Родитель 3be1dd8ef3
Коммит 4613ab9dab
1 изменённых файлов: 6 добавлений и 10 удалений

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

@ -58,12 +58,11 @@
this.match = function browserReorderChecker_match(aEvent)
{
// Reorder event might be duped because of temporary document creation.
var browserAcc = getAccessible(currentBrowser());
if (!browserAcc)
ok(false, "opa opa sralslasya");
if (!isAccessible(currentBrowser()))
return false;
if (aEvent.accessible == browserAcc) {
// Reorder event might be duped because of temporary document creation.
if (aEvent.accessible == getAccessible(currentBrowser())) {
this.cnt++;
return this.cnt != 2;
}
@ -87,11 +86,8 @@
this.finalCheck = function loadURI_finalCheck()
{
var acc = getAccessible(currentTabDocument());
if (!acc)
ok(false, "ahahahaha");
testRelation(browserDocument(), RELATION_EMBEDS, acc);
testRelation(browserDocument(), RELATION_EMBEDS,
getAccessible(currentTabDocument()));
}
this.getID = function loadOneTab_getID()