Update web-platform-tests to revision 82cecba576456d05c09894749379df1013ab488f

This commit is contained in:
WPT Sync Bot 2019-10-30 10:25:42 +00:00
parent de9c84f686
commit 60b62482da
145 changed files with 2705 additions and 367 deletions

View file

@ -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>

View file

@ -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);
}
});

View file

@ -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>

View file

@ -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>

View file

@ -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();