mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 82cecba576456d05c09894749379df1013ab488f
This commit is contained in:
parent
de9c84f686
commit
60b62482da
145 changed files with 2705 additions and 367 deletions
|
@ -7,6 +7,7 @@
|
|||
</style>
|
||||
<dialog open id=dialog></dialog>
|
||||
<script>
|
||||
assert_equals(getComputedStyle(document.getElementById('dialog')).display, 'block');
|
||||
done();
|
||||
test(function() {
|
||||
assert_equals(getComputedStyle(document.getElementById('dialog')).display, 'block');
|
||||
});
|
||||
</script>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
var testStyle = getComputedStyle(document.getElementById('test'));
|
||||
var refStyle = getComputedStyle(document.getElementById('ref'));
|
||||
for (var prop in testStyle) {
|
||||
assert_equals(testStyle[prop], refStyle[prop], prop);
|
||||
}
|
||||
done();
|
||||
test(function() {
|
||||
var testStyle = getComputedStyle(document.getElementById('test'));
|
||||
var refStyle = getComputedStyle(document.getElementById('ref'));
|
||||
for (var prop in testStyle) {
|
||||
assert_equals(testStyle[prop], refStyle[prop], prop);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -7,9 +7,10 @@
|
|||
<table vspace=25 hspace=25><tr><td>x</table>
|
||||
<div>x</div>
|
||||
<script>
|
||||
var style = getComputedStyle(document.querySelector('table'));
|
||||
['marginTop', 'marginRight', 'marginBottom', 'marginLeft'].forEach(function(m) {
|
||||
assert_equals(style[m], '0px', m);
|
||||
test(function() {
|
||||
var style = getComputedStyle(document.querySelector('table'));
|
||||
['marginTop', 'marginRight', 'marginBottom', 'marginLeft'].forEach(function(m) {
|
||||
assert_equals(style[m], '0px', m);
|
||||
});
|
||||
});
|
||||
done();
|
||||
</script>
|
||||
|
|
|
@ -7,9 +7,10 @@
|
|||
<table vspace=25 hspace=25><tr><td>x</table>
|
||||
<div>x</div> <!-- prevent margin collapsing quirks -->
|
||||
<script>
|
||||
var style = getComputedStyle(document.querySelector('table'));
|
||||
['marginTop', 'marginRight', 'marginBottom', 'marginLeft'].forEach(function(m) {
|
||||
assert_equals(style[m], '0px', m);
|
||||
test(function() {
|
||||
var style = getComputedStyle(document.querySelector('table'));
|
||||
['marginTop', 'marginRight', 'marginBottom', 'marginLeft'].forEach(function(m) {
|
||||
assert_equals(style[m], '0px', m);
|
||||
});
|
||||
});
|
||||
done();
|
||||
</script>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<script src="/resources/testharnessreport.js"></script>
|
||||
<iframe src="/common/blank.html" marginwidth=0 marginheight=0></iframe>
|
||||
<script>
|
||||
setup({ single_test: true });
|
||||
onload = () => {
|
||||
assert_equals(window[0].document.body.attributes.length, 0, "Number of attributes on the child document's body");
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue