mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision b'468d01bbd84da2babf265c6af46947be68713440'
This commit is contained in:
parent
35e95f55a1
commit
58e8ee674b
9438 changed files with 266112 additions and 106976 deletions
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Joey Arhar" href="mailto:jarhar@chromium.org">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/iframe-embed-object.html#the-embed-element">
|
||||
<link rel="help" href="http://crbug.com/1035330">
|
||||
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
promise_test(async () => {
|
||||
const embed = document.createElement('embed');
|
||||
let loadPromise = new Promise(resolve => embed.onload = resolve);
|
||||
embed.src = '/media/white.mp4';
|
||||
document.body.appendChild(embed);
|
||||
|
||||
await loadPromise;
|
||||
|
||||
loadPromise = new Promise(resolve => embed.onload = resolve);
|
||||
embed.src = '/media/white.webm';
|
||||
|
||||
await loadPromise;
|
||||
}, 'Verifies that embed elements reload with new content when the src attribute is changed.');
|
||||
</script>
|
|
@ -9,12 +9,12 @@
|
|||
<embed src="/images/blue.png" height="100" width="100" id="test">
|
||||
<script>
|
||||
test(function () {
|
||||
var height = getComputedStyle(document.getElementById("test"), false)["height"];
|
||||
var height = getComputedStyle(document.getElementById("test"))["height"];
|
||||
assert_equals(height, "100px", "The height of the embed element should be 100px.");
|
||||
}, "Check the actual length of the embed element's height");
|
||||
|
||||
test(function () {
|
||||
var width = getComputedStyle(document.getElementById("test"), false)["width"];
|
||||
var width = getComputedStyle(document.getElementById("test"))["width"];
|
||||
assert_equals(width, "100px", "The width of the embed element should be 100px.");
|
||||
}, "Check the actual length of the embed element's width");
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue