mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 50ff4f970fd8592a9f436d4e86e7d572de143260
This commit is contained in:
parent
82bbf3ad45
commit
8ea5658199
150 changed files with 4737 additions and 998 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue