Update web-platform-tests to revision 50ff4f970fd8592a9f436d4e86e7d572de143260

This commit is contained in:
WPT Sync Bot 2018-09-20 21:31:18 -04:00
parent 82bbf3ad45
commit 8ea5658199
150 changed files with 4737 additions and 998 deletions

View file

@ -9,11 +9,12 @@ var t = async_test();
onload = t.step_func(() => {
var iframe = document.querySelector("iframe");
var promiseBeforeNav = iframe.contentWindow.Promise;
var documentBeforeNav = iframe.contentDocument;
iframe.onload = t.step_func(() => {
var p = documentBeforeNav.exitFullscreen();
assert_true(p instanceof Promise, 'exitFullscreen() returns promise');
assert_true(p instanceof promiseBeforeNav, 'exitFullscreen() returns promise');
// The promise should already be rejected, so its reject callback should be
// invoked before a second promise's callback.
p.catch(t.step_func_done());