mirror of
https://github.com/servo/servo.git
synced 2025-09-21 04:10:11 +01:00
Update web-platform-tests to revision 9ca57e052ba1b19fa3dd46c6aa656e8d529469a8
This commit is contained in:
parent
68cb8f3d59
commit
75d6484415
1377 changed files with 31062 additions and 16983 deletions
|
@ -4,14 +4,14 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<iframe></iframe>
|
||||
<iframe allowfullscreen></iframe>
|
||||
<script>
|
||||
test(function()
|
||||
{
|
||||
assert_true(document.fullscreenEnabled, "top-level document");
|
||||
|
||||
var iframes = document.getElementsByTagName("iframe");
|
||||
assert_false(iframes[0].contentDocument.fullscreenEnabled, "iframe without allowfullscreen");
|
||||
assert_true(iframes[1].contentDocument.fullscreenEnabled, "iframe with allowfullscreen");
|
||||
const iframe = document.querySelector("iframe");
|
||||
assert_true(iframe.contentDocument.fullscreenEnabled, "same-origin iframe");
|
||||
});
|
||||
|
||||
// The cross-origin iframe case is tested in
|
||||
// /html/semantics/embedded-content/the-iframe-element/iframe-allowfullscreen.html
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue