Update web-platform-tests to revision 0bb3d73f26aa5a21326b6c1c7aaf35029222223f

This commit is contained in:
Ms2ger 2015-12-16 15:19:01 +01:00
parent 9c4ca39ebe
commit cd00f312a3
9 changed files with 820 additions and 810 deletions

View file

@ -35866,7 +35866,7 @@
}
]
},
"rev": "5dbe45af3ad3a933c03187c72f1c12cbe2877703",
"rev": "0bb3d73f26aa5a21326b6c1c7aaf35029222223f",
"url_base": "/",
"version": 2
}

View file

@ -1,6 +1,5 @@
[interfaces.html]
type: testharness
[CustomEvent interface: existence and properties of interface object]
expected: FAIL

View file

@ -12,12 +12,6 @@
[<img srcset="/images/green-256x256.png 2x" data-expect="128">]
expected: FAIL
[<img srcset="/images/green-256x256.png 10000x" data-expect="0">]
expected: FAIL
[<img srcset="/images/green-256x256.png 9e99999999999999999999999x" data-expect="0">]
expected: FAIL
[<img srcset="/images/green-256x256.png 256w" sizes="256px" data-expect="256">]
expected: FAIL
@ -30,6 +24,12 @@
[<img srcset="/images/green-256x256.png 256w" sizes="1px" data-expect="1">]
expected: FAIL
[<img srcset="/images/green-256x256.png 256w" sizes="0px" data-expect="0">]
[<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'%20height='20'><circle%20r='1'/></svg> 2x" data-expect="10">]
expected: FAIL
[<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'><circle%20r='1'/></svg> 2x" data-expect="10">]
expected: FAIL
[<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20height='20'><circle%20r='1'/></svg> 2x" data-expect="10">]
expected: FAIL

View file

@ -1 +1 @@
6c0eb115f4548deb09ac3439f914df5f22f964a5
9c4ca39ebe57502b74d75aa9d6953b017d884f54

File diff suppressed because it is too large Load diff

View file

@ -14,6 +14,10 @@
<img srcset="/images/green-256x256.png 256w" sizes="512px" data-expect="512">
<img srcset="/images/green-256x256.png 256w" sizes="1px" data-expect="1">
<img srcset="/images/green-256x256.png 256w" sizes="0px" data-expect="0">
<!-- SVG -->
<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'%20height='20'><circle%20r='1'/></svg> 2x" data-expect="10">
<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20width='20'><circle%20r='1'/></svg> 2x" data-expect="10">
<img srcset="data:image/svg+xml,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='-1%20-1%202%202'%20height='20'><circle%20r='1'/></svg> 2x" data-expect="10">
<script>
setup({explicit_done:true});
onload = function() {
@ -24,8 +28,8 @@ onload = function() {
assert_equals(img.height, expected, 'height');
assert_equals(img.clientWidth, expected, 'clientWidth');
assert_equals(img.clientHeight, expected, 'clientHeight');
assert_equals(img.naturalWidth, 256, 'naturalWidth');
assert_equals(img.naturalHeight, 256, 'naturalHeight');
assert_equals(img.naturalWidth, expected, 'naturalWidth');
assert_equals(img.naturalHeight, expected, 'naturalHeight');
}, img.outerHTML);
});
done();

View file

@ -1,4 +1,4 @@
Note: the html5lib_* files in this directory are autogenerated.
To update them use the script /tools/scripts/update_html5lib_tests.py.
To update them use the script /html/tools/update_html5lib_tests.py.
Further instructions are provided in that file.

View file

@ -127,18 +127,23 @@ function get_type() {
return run_type;
};
var test_in_data_uri = get_test_func(function (iframe, uri_encoded_input) {
iframe.src = "data:text/html;charset=utf8," + uri_encoded_input;
var test_in_blob_uri = get_test_func(function (iframe, uri_encoded_input, t) {
var b = new Blob([decodeURIComponent(uri_encoded_input)], { type: "text/html" });
var blobURL = URL.createObjectURL(b);
iframe.src = blobURL;
t.add_cleanup(function() {
URL.revokeObjectURL(blobURL);
});
});
var test_document_write = get_test_func(function(iframe, uri_encoded_input) {
var test_document_write = get_test_func(function(iframe, uri_encoded_input, t) {
iframe.contentDocument.open();
var input = decodeURIComponent(uri_encoded_input);
iframe.contentDocument.write(input);
iframe.contentDocument.close();
});
var test_document_write_single = get_test_func(function(iframe, uri_encoded_input) {
var test_document_write_single = get_test_func(function(iframe, uri_encoded_input, t) {
iframe.contentDocument.open();
var input = decodeURIComponent(uri_encoded_input);
for (var i=0; i< input.length; i++) {
@ -166,7 +171,7 @@ function get_test_func(inject_func) {
}
);
};
inject_func(iframe, uri_encoded_input);
inject_func(iframe, uri_encoded_input, t);
}
return test_func;
}
@ -248,7 +253,7 @@ function init_tests(test_type) {
var test_funcs = {
"write":test_document_write,
"write_single":test_document_write_single,
"uri":test_in_data_uri,
"uri":test_in_blob_uri,
"innerHTML":test_fragment
};
var tests_started = 0;

View file

@ -29,6 +29,8 @@ var valid = [
"[foo~='bar' i]",
"[foo^='bar' i]",
"[foo$='bar' i]",
"[foo*='bar' i]",
"[foo|='bar' i]",
"[|foo='bar' i]",
"[*|foo='bar' i]",
];