Bug 934062 - Add waitForExplicitFinish to stop intermittent CSP test errors. r=sstamm

This commit is contained in:
Garrett Robinson 2013-11-11 14:20:16 -08:00
parent e64ec189c6
commit e419d47cd9

View File

@ -15,12 +15,14 @@
SpecialPowers.pushPrefEnv(
{'set':[["security.csp.speccompliant", true]]},
function() {
SimpleTest.waitForExplicitFinish();
var testframe = document.getElementById('testframe');
testframe.src = 'file_policyuri_regression_from_multipolicy.html';
testframe.addEventListener('load', function checkInlineScriptExecuted () {
is(this.contentDocument.getElementById('testdiv').innerHTML,
'Inline Script Executed',
'Inline script should execute (it would be blocked by the policy, but the policy is report-only)');
SimpleTest.finish();
});
}
);