mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTML Test: dimension</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div id="log"></div>
|
||||
<embed src="/images/blue.png" height="100" width="100" id="test">
|
||||
<script>
|
||||
test(function () {
|
||||
var height = getComputedStyle(document.getElementById("test"), false)["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"];
|
||||
assert_equals(width, "100px", "The width of the embed element should be 100px.");
|
||||
}, "Check the actual length of the embed element's width");
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTML Test: The embed element without src and type attributes represents nothing</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
|
||||
<link rel="match" href="embed-represent-nothing-ref.html">
|
||||
<meta name="assert" content="Check if the embed element without src and type attributes represents nothing">
|
||||
<style>
|
||||
embed {
|
||||
background-color: red;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if there is <strong>no red</strong>.</p>
|
||||
<embed>
|
||||
</body>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTML Test: The embed element represents nothing when its type and src attributs are removed</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
|
||||
<link rel="match" href="embed-represent-nothing-ref.html">
|
||||
<meta name="assert" content="Check if the embed element represents nothing when its src and type attributes are removed">
|
||||
<style>
|
||||
embed {
|
||||
background-color: red;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if there is <strong>no red</strong>.</p>
|
||||
<embed id="embed" src="/images/red-16x16.png" type="image/png">
|
||||
<script>
|
||||
document.getElementById("embed").removeAttribute("src");
|
||||
document.getElementById("embed").removeAttribute("type");
|
||||
</script>
|
||||
</body>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTML Test: The embed element represents nothing when it has a media ancestor</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
|
||||
<link rel="match" href="embed-represent-nothing-ref.html">
|
||||
<meta name="assert" content="Check if the embed element represents nothing when it has a media ancestor">
|
||||
<style>
|
||||
embed {
|
||||
background-color: red;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if there is <strong>no red</strong>.</p>
|
||||
<video>
|
||||
<embed src="/images/red-16x16.png">
|
||||
</video>
|
||||
</body>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>HTML Test: The embed element represents nothing when it has an object ancestor</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-embed-element">
|
||||
<link rel="match" href="embed-represent-nothing-ref.html">
|
||||
<meta name="assert" content="Check if the embed element represents nothing when it has a object ancestor that is not showing its fallback content">
|
||||
<style>
|
||||
embed {
|
||||
background-color: red;
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<p>Test passes if there is <strong>no red</strong>.</p>
|
||||
<object type="application/x-shockwave-flash">
|
||||
<embed src="/images/red-16x16.png">
|
||||
</object>
|
||||
</body>
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>Embed Reftest Reference</title>
|
||||
<link rel="author" title="Intel" href="http://www.intel.com">
|
||||
<body>
|
||||
<p>Test passes if there is <strong>no red</strong>.</p>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue