mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision dc5cbf088edcdb266541d4e5a76149a2c6e716a0
This commit is contained in:
parent
1d40075f03
commit
079092dfea
2381 changed files with 90360 additions and 17722 deletions
|
@ -5,7 +5,6 @@
|
|||
<title>li element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-li-element">
|
||||
<link rel="match" href="grouping-li-reftest-001.html" />
|
||||
<meta name="assert" content="The value attribute has no effect when applied to a li element whose parent is a non-ol element." />
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>li element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-li-element">
|
||||
<link rel="match" href="grouping-li-reftest-002-ref.html" />
|
||||
<meta name="assert" content="li elements with ol parents have ordinal values." />
|
||||
<style type="text/css">
|
||||
span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;}
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
<p>Unordered List</p>
|
||||
<ul id="unordered">
|
||||
<li id="test_li">list item</li>
|
||||
<li>list item</li>
|
||||
<li>list item</li>
|
||||
<li>list item</li>
|
||||
</ul>
|
||||
|
@ -116,23 +116,11 @@
|
|||
<script>
|
||||
"use strict";
|
||||
|
||||
var testLI = document.getElementById("test_li"), testList = [], i = 0;
|
||||
|
||||
// check that prototype matches spec's DOM interface
|
||||
test(function() {
|
||||
assert_equals(Object.getPrototypeOf(testLI), HTMLLIElement.prototype, "HTMLLIElement.prototype should be used for li");
|
||||
}, "The prototype for li is HTMLLIElement.prototype");
|
||||
|
||||
// check that "own" property "value" is present
|
||||
test(function() {
|
||||
assert_own_property(testLI,"value", "li should have a 'value' attribute");
|
||||
}, "li should have a 'value' attribute");
|
||||
|
||||
// "The [value] attribute has no default value" so, per https://html.spec.whatwg.org/multipage/#reflect,
|
||||
// the default when unspecified is 0
|
||||
testList = document.querySelectorAll("#unordered li, #basic li");
|
||||
test(function() {
|
||||
for(i = 0; i < testList.length; i++) {
|
||||
var testList = document.querySelectorAll("#unordered li, #basic li");
|
||||
for (var i = 0; i < testList.length; i++) {
|
||||
assert_equals(testList[i].value, 0, "Default (unspecified) value of value is 0.");
|
||||
}
|
||||
}, "Default (unspecified) value of value is 0.");
|
||||
|
@ -146,55 +134,55 @@
|
|||
|
||||
// start2's first element has value of 2
|
||||
test(function() {
|
||||
testLI = document.getElementById("start2").children[0];
|
||||
var testLI = document.getElementById("start2").children[0];
|
||||
assert_equals(testLI.value, 2, "value of 2 -> value of 2");
|
||||
}, ".value property reflects content attribute - and both parse value of '2' correctly.");
|
||||
|
||||
// negative's first element has value of -10
|
||||
test(function() {
|
||||
testLI = document.getElementById("negative").children[0];
|
||||
var testLI = document.getElementById("negative").children[0];
|
||||
assert_equals(testLI.value, -10, "value of -10 -> value of -10");
|
||||
}, "IDL and content attribute parse value of '-10' correctly.");
|
||||
|
||||
// posFloatDown's first element has value of 4.03 which should return 4
|
||||
test(function() {
|
||||
testLI = document.getElementById("posFloatDown").children[0];
|
||||
var testLI = document.getElementById("posFloatDown").children[0];
|
||||
assert_equals(testLI.value, 4, "value of 4.03 -> 4");
|
||||
}, "IDL and content attribute parse value of '4.03' correctly.");
|
||||
|
||||
// negFloatDown's first element has value of -4.03 which should return -4
|
||||
test(function() {
|
||||
testLI = document.getElementById("negFloatDown").children[0];
|
||||
var testLI = document.getElementById("negFloatDown").children[0];
|
||||
assert_equals(testLI.value, -4, "value of -4.03 -> -4");
|
||||
}, "IDL and content attribute parse value of '-4.03' correctly.");
|
||||
|
||||
// posFloatUp's first element has value of 4.9 which should return 4
|
||||
test(function() {
|
||||
testLI = document.getElementById("posFloatUp").children[0];
|
||||
var testLI = document.getElementById("posFloatUp").children[0];
|
||||
assert_equals(testLI.value, 4, "value of 4.9 -> 4");
|
||||
}, "IDL and content attribute parse value of '4.9' correctly.");
|
||||
|
||||
// negFloatUp's first element has value of -4.9 which should return -4
|
||||
test(function() {
|
||||
testLI = document.getElementById("negFloatUp").children[0];
|
||||
var testLI = document.getElementById("negFloatUp").children[0];
|
||||
assert_equals(testLI.value, -4, "value of -4.9 -> -4");
|
||||
}, "IDL and content attribute parse value of '-4.9' correctly.");
|
||||
|
||||
// exponent's first element has value of 7e2 which should return 7
|
||||
test(function() {
|
||||
testLI = document.getElementById("exponent").children[0];
|
||||
var testLI = document.getElementById("exponent").children[0];
|
||||
assert_equals(testLI.value, 7, "value of 7e2 -> 7");
|
||||
}, "IDL and content attribute parse value of '7e2' correctly.");
|
||||
|
||||
// decimal's first element has value of .5 which should return 0
|
||||
test(function() {
|
||||
testLI = document.getElementById("decimal").children[0];
|
||||
var testLI = document.getElementById("decimal").children[0];
|
||||
assert_equals(testLI.value, 0, "value of .5 -> 0 (default)");
|
||||
}, "IDL and content attribute parse value of '.5' correctly.");
|
||||
|
||||
// letter's first element has value of A which should return 0
|
||||
test(function() {
|
||||
testLI = document.getElementById("letter").children[0];
|
||||
var testLI = document.getElementById("letter").children[0];
|
||||
assert_equals(testLI.value, 0, "value of A -> 0 (default)");
|
||||
}, "IDL and content attribute parse value of 'A' correctly.");
|
||||
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>ol element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-element">
|
||||
<link rel="match" href="grouping-ol-rev-reftest-001.html" />
|
||||
<meta name="assert" content="OL's reversed attribute creates a descending list." />
|
||||
<style type="text/css">
|
||||
span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>ol element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-element">
|
||||
<link rel="match" href="grouping-ol-start-reftest-001.html" />
|
||||
<meta name="assert" content="Sequences produced by calculated values for LI elements within OL match spec's expectations. (part one)" />
|
||||
<style type="text/css">
|
||||
span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>ol element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-element">
|
||||
<link rel="match" href="grouping-ol-start-reftest-002.html" />
|
||||
<meta name="assert" content="Sequences produced by calculated values for LI elements within OL match spec's expectations. (part two)" />
|
||||
<style type="text/css">
|
||||
span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>ol element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-element">
|
||||
<link rel="match" href="grouping-ol-type-reftest-001.html" />
|
||||
<meta name="assert" content="OL's type attribute defaults to decimal state." />
|
||||
<style type="text/css">
|
||||
span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>ol element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-element">
|
||||
<link rel="match" href="grouping-ol-type-reftest-002.html" />
|
||||
<meta name="assert" content="List items are rendered consistently with the state of the type attribute." />
|
||||
<style type="text/css">
|
||||
span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>ol element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-element">
|
||||
<link rel="match" href="grouping-ol-type-reftest-003.html" />
|
||||
<meta name="assert" content="OL's type attribute defaults to decimal state." />
|
||||
<style type="text/css">
|
||||
span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left: 0; padding-top: 0; padding-bottom: 0;}
|
||||
|
|
|
@ -169,17 +169,17 @@
|
|||
// check that "own" properties reversed, start, and type are present
|
||||
test(function () {
|
||||
testList = document.getElementById("basic");
|
||||
assert_own_property(testList, "reversed");
|
||||
assert_idl_attribute(testList, "reversed");
|
||||
}, "'reversed' property should be defined on OL.");
|
||||
|
||||
test(function () {
|
||||
testList = document.getElementById("basic");
|
||||
assert_own_property(testList, "start");
|
||||
assert_idl_attribute(testList, "start");
|
||||
}, "'start' property should be defined on OL.");
|
||||
|
||||
test(function () {
|
||||
testList = document.getElementById("basic");
|
||||
assert_own_property(testList, "type");
|
||||
assert_idl_attribute(testList, "type");
|
||||
}, "'type' property should be defined on OL.");
|
||||
|
||||
// "The reversed, start, and type IDL attributes must reflect the respective content attributes of the same name."
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<title>pre element</title>
|
||||
<link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com">
|
||||
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-pre-element">
|
||||
<link rel="match" href="grouping-pre-reftest-001.html" />
|
||||
<meta name="assert" content="Newlines within pre elements separate paragraphs for the purposes of BIDI." />
|
||||
</head>
|
||||
<body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue