mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 138d2e938d493a5c8435025162759c2e34b3b1d1
This commit is contained in:
parent
ce37d5ebf2
commit
732399d5d9
1754 changed files with 6528 additions and 3662 deletions
|
@ -1,19 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<title>HTMLAnchorElement.rel getter</title>
|
||||
<link rel="author" title="TheKK" href="mailto:thumbd03803@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-a-rel">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<div id=log></div>
|
||||
<div>
|
||||
<a id="test" href="a" rel="noreferrer"></a>
|
||||
</div>
|
||||
<script>
|
||||
test(function() {
|
||||
var a = document.getElementById("test");
|
||||
|
||||
test(function() {
|
||||
assert_equals(a.rel, "noreferrer");
|
||||
}, "Test anchor's rel getter");
|
||||
});
|
||||
</script>
|
|
@ -1,20 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<title>HTMLAnchorElement.rel setter</title>
|
||||
<link rel="author" title="TheKK" href="mailto:thumbd03803@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-a-rel">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<div id=log></div>
|
||||
<div>
|
||||
<a id="test" href="a"></a>
|
||||
</div>
|
||||
<script>
|
||||
test(function() {
|
||||
var a = document.getElementById("test");
|
||||
|
||||
test(function() {
|
||||
a.rel = "noreferrer";
|
||||
assert_equals(a.getAttribute("rel"), "noreferrer");
|
||||
}, "Test anchor's rel setter");
|
||||
});
|
||||
</script>
|
|
@ -1,66 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>HTMLDataElement.value getting</title>
|
||||
<link rel="author" title="ofekd" href="mailto:ofek@outlook.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#dom-data-value">
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
<div id="container">
|
||||
<data value=""></data>
|
||||
<data value="40">Forty</data>
|
||||
</div>
|
||||
<script>
|
||||
var newData, datasArr, container;
|
||||
|
||||
container = document.getElementById('container')
|
||||
|
||||
newData = document.createElement('data');
|
||||
newData.textContent = 'Five';
|
||||
newData.setAttribute('value', '5');
|
||||
container.appendChild(newData);
|
||||
|
||||
datasArr = container.getElementsByTagName('data');
|
||||
|
||||
test(function () {
|
||||
test(function() {
|
||||
assert_equals(datasArr[0].value, '');
|
||||
}, 'data[value] #0 getter test');
|
||||
|
||||
test(function() {
|
||||
assert_equals(datasArr[1].value, '40');
|
||||
}, 'data[value] #1 getter test');
|
||||
|
||||
test(function() {
|
||||
assert_equals(datasArr[2].value, '5');
|
||||
}, 'data[value] #2 getter test');
|
||||
}, 'Getter tests');
|
||||
|
||||
test(function () {
|
||||
var i;
|
||||
|
||||
for (i = 0; i < datasArr.length; i++) {
|
||||
datasArr[i].textContent = 'Twenty';
|
||||
datasArr[i].value = 20;
|
||||
|
||||
test(function() {
|
||||
assert_equals(datasArr[i].getAttribute('value'), '20');
|
||||
}, 'data[value] #' + i + ' setter test');
|
||||
}
|
||||
|
||||
newData = document.createElement('data');
|
||||
newData.textContent = 'Twenty';
|
||||
newData.value = '20';
|
||||
container.appendChild(newData);
|
||||
|
||||
test(function() {
|
||||
assert_equals(datasArr[3].getAttribute('value'), '20');
|
||||
}, 'data[value] #3 setter test');
|
||||
|
||||
}, 'Setter tests');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue