Bug 874502 part 3. Fix a11y tests to not assume synchronous window closing. r=tbsaunde

This commit is contained in:
Bobby Holley 2013-09-17 17:45:47 -04:00
parent 3f53c76541
commit a568b08581
2 changed files with 5 additions and 8 deletions

View File

@ -216,8 +216,11 @@
this.mDialog.close();
ok(!isAccessibleInCache(dlgDoc),
"The document accessible for '" + aURL + "' is in cache still!");
// close() is asynchronous.
SimpleTest.executeSoon(function() {
ok(!isAccessibleInCache(dlgDoc),
"The document accessible for '" + aURL + "' is in cache still!");
});
}
this.getID = function openDialogWnd_getID()

View File

@ -22,12 +22,6 @@
src="../browser.js"></script>
<script type="application/javascript">
if (navigator.platform.startsWith("Mac")) {
SimpleTest.expectAssertions(0, 1);
} else {
SimpleTest.expectAssertions(1);
}
function hasTabModalPrompts() {
try {
return SpecialPowers.getBoolPref("prompts.tab_modal.enabled");