mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-16 15:17:14 +00:00
Bug 1077652 - Let a11y tests know about the extra preloaded document r=tbsaunde
This commit is contained in:
parent
4b3e17d603
commit
ce54520ba8
@ -31,10 +31,15 @@
|
||||
|
||||
is(root.parentDocument, null,
|
||||
"Wrong parent document of root accessible");
|
||||
is(root.childDocumentCount, 1,
|
||||
ok(root.childDocumentCount >= 1,
|
||||
"Wrong child document count of root accessible");
|
||||
is(root.getChildDocumentAt(0), tabDoc,
|
||||
"Wrong child document at index 0 of root accessible");
|
||||
|
||||
var tabDocumentFound = false;
|
||||
for (var i = 0; i < root.childDocumentCount && !tabDocumentFound; i++) {
|
||||
tabDocumentFound = root.getChildDocumentAt(i) == tabDoc;
|
||||
}
|
||||
ok(tabDocumentFound,
|
||||
"Tab document not found in children of the root accessible");
|
||||
|
||||
is(tabDoc.parentDocument, root,
|
||||
"Wrong parent document of tab document");
|
||||
|
@ -169,6 +169,23 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
// notificationbox
|
||||
role: ROLE_PROPERTYPAGE,
|
||||
children: [
|
||||
{
|
||||
// browser
|
||||
role: ROLE_INTERNAL_FRAME,
|
||||
children: [
|
||||
{
|
||||
// #document ("about:newtab" preloaded)
|
||||
role: ROLE_APPLICATION
|
||||
// children: [ ... ] // Ignore document content.
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user