Skip to content

Commit

Permalink
Fix up disallow-crossorigin tests based on issues in OP
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Dec 1, 2015
1 parent 96ff2b3 commit f9b2eca
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
addEventListener('unhandledrejection', t.unreached_func('unhandledrejection event should never be triggered'));
addEventListener('rejectionhandled', t.unreached_func('rejectionhandled event should never be triggered'));

setTimeout(function() {
loadedPromise.then(t.step_func(function() {
loadedPromise.then(t.step_func(function() {
t.step_timeout(function() {
t.done();
}));
}, 1000);
}, 'Promise rejection event should be muted the cross-origin non-CORS script');
}, 1000);
}));
}, 'Promise rejection event should be muted for cross-origin non-CORS script');

var scriptEl = document.createElement('script');
scriptEl.src = CROSSDOMAIN + '/support/promise-access-control.py?allow=false';
Expand Down

0 comments on commit f9b2eca

Please sign in to comment.