Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d

This commit is contained in:
Ms2ger 2016-11-14 11:07:09 +01:00
parent 65dd6d4340
commit ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions

View file

@ -17,9 +17,6 @@
<p>These reftests are necessary because the values of the ol's li children as calculated by the user agent are NOT available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote>"The reversed attribute is a boolean attribute. If present, it indicates that the list is a descending list (..., 3, 2, 1). If the attribute is omitted, the list is an ascending list (1, 2, 3, ...)."</blockquote>
<p><strong>This reftest passes if you see an ascending list followed by two descending lists.</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -20,9 +20,6 @@
<p>These reftests are necessary because the values of the ol's li children as calculated by the user agent are NOT available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote>"The reversed attribute is a boolean attribute. If present, it indicates that the list is a descending list (..., 3, 2, 1). If the attribute is omitted, the list is an ascending list (1, 2, 3, ...)."</blockquote>
<p><strong>This reftest passes if you see an ascending list followed by two descending lists.</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -14,10 +14,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -17,10 +17,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -14,10 +14,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -17,10 +17,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote><p>The first item in the list has the ordinal value given by the ol element's start attribute, unless that li element has a value attribute with a value that can be successfully parsed, in which case it has the ordinal value given by that value attribute.</p>
<p>Each subsequent item in the list has the ordinal value given by its value attribute, if it has one, or, if it doesn't, the ordinal value of the previous item, plus one if the reversed is absent, or minus one if it is present.</p></blockquote>
<p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -14,9 +14,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote><p>The type attribute represents the state given in the cell in the second column of the row whose first cell matches the attribute's value; if none of the cells match, or if the attribute is omitted, then the attribute represents the decimal state.</p></blockquote>
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -16,9 +16,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote><p>The type attribute represents the state given in the cell in the second column of the row whose first cell matches the attribute's value; if none of the cells match, or if the attribute is omitted, then the attribute represents the decimal state.</p></blockquote>
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -14,9 +14,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote>User agents should render the items of the list in a manner consistent with the state of the type attribute of the ol element.</blockquote>
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -16,9 +16,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states:</p>
<blockquote>User agents should render the items of the list in a manner consistent with the state of the type attribute of the ol element.</blockquote>
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -14,8 +14,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states: Numbers less than or equal to zero should always use the decimal system regardless of the type attribute.</p>
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -16,8 +16,6 @@
<body>
<p>This test continues to validate the ol element. This reftest is necessary because the values of the ol's li children as calculated and displayed by the user agent are NOT systematically available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
<p>The spec states: Numbers less than or equal to zero should always use the decimal system regardless of the type attribute.</p>
<p><strong>This reftest passes if each list's items are labelled identically to the horizontal sequence immediately above those list items:</strong></p>
<p>(Note: each list item has no content; only the sequencing should appear.)</p>

View file

@ -230,83 +230,68 @@
// is the number of child li elements otherwise."
// "The start IDL attribute has the same default as its content attribute."
// basic - default should be 1
test(function() {
assert_equals(document.getElementById("basic").start, 1, "no start attribute provided -> 1");
assert_equals(document.getElementById("basic").start, 1);
}, "Default start value for non-reversed list should be 1");
// decimal's first element has value of .5 which should return 1
test(function() {
assert_equals(document.getElementById("decimal").start, 1, "start of .5 -> 1 (default)");
assert_equals(document.getElementById("decimal").start, 1);
}, "IDL and content attribute parse start of '.5' correctly.");
// letter's first element has value of A which should return 1
test(function() {
assert_equals(document.getElementById("letter").start, 1, "start of A -> 1 (default)");
assert_equals(document.getElementById("letter").start, 1);
}, "IDL and content attribute parse start of 'A' correctly.");
// basicRevGoodName - default should be 3
test(function() {
assert_equals(document.getElementById("basicRevGoodName").start, 3, "no start attribute provided -> 3");
}, "Default start value (if none provided) for reversed list = child li elements.");
assert_equals(document.getElementById("basicRevGoodName").start, 1);
}, "Default start value (if none provided) for reversed list = 1.");
// basicRevEmpty - default should be 3
test(function() {
assert_equals(document.getElementById("basicRevEmpty").start, 3, "start of A -> 3 (default)");
}, "Default start value (if failed to parse) for reversed list = child li elements.");
assert_equals(document.getElementById("basicRevEmpty").start, 1);
}, "Default start value (if failed to parse) for reversed list = 1.");
// lots - default should be 3
test(function() {
assert_equals(document.getElementById("lots").start, 3, "no start attribute -> 3 (default)");
}, "Default start value for reversed list = child li elements (even with tons of other child elements).");
assert_equals(document.getElementById("lots").start, 1);
}, "Default start value for reversed list = 1 (even with tons of other child elements).");
// adding child element changes default start value for reversed list
test(function() {
var myList = document.getElementById("basicRevGoodName"), myLI = document.createElement("li");
myList.appendChild(myLI);
assert_equals(document.getElementById("basicRevGoodName").start, 4, "Adding child element to reversed list adds 1 to start value");
}, "Adding child element to reversed list adds 1 to start value");
assert_equals(document.getElementById("basicRevGoodName").start, 1);
}, "Adding child element to reversed list does not change start value");
// removing child element changes default start value for reversed list
test(function() {
var myList = document.getElementById("basicRevTrue");
myList.removeChild(myList.children[0]);
assert_equals(document.getElementById("basicRevTrue").start, 2, "Deleting child element from reversed list reduces start value by 1");
}, "Deleting child element from reversed list reduces start value by 1");
assert_equals(document.getElementById("basicRevTrue").start, 1);
}, "Deleting child element from reversed list does not change start value");
// start2's first element has value of 2
test(function() {
assert_equals(document.getElementById("start2").start, 2, "start of 2 -> 2");
assert_equals(document.getElementById("start2").start, 2);
}, "IDL and content attribute parse start of '2' correctly.");
// negative's first element has value of -10
test(function() {
assert_equals(document.getElementById("negative").start, -10, "start of -10 -> -10");
assert_equals(document.getElementById("negative").start, -10);
}, "IDL and content attribute parse start of '-10' correctly.");
// posFloatDown's first element has value of 4.03 which should return 4
test(function() {
assert_equals(document.getElementById("posFloatDown").start, 4, "start of 4.03 -> 4");
assert_equals(document.getElementById("posFloatDown").start, 4);
}, "IDL and content attribute parse start of '4.03' correctly.");
// negFloatDown's first element has value of -4.03 which should return -4
test(function() {
assert_equals(document.getElementById("negFloatDown").start, -4, "start of -4.03 -> -4");
assert_equals(document.getElementById("negFloatDown").start, -4);
}, "IDL and content attribute parse start of '-4.03' correctly.");
// posFloatUp's first element has value of 4.9 which should return 4
test(function() {
assert_equals(document.getElementById("posFloatUp").start, 4, "start of 4.9 -> 4");
assert_equals(document.getElementById("posFloatUp").start, 4);
}, "IDL and content attribute parse start of '4.9' correctly.");
// negFloatUp's first element has value of -4.9 which should return -4
test(function() {
assert_equals(document.getElementById("negFloatUp").start, -4, "start of -4.9 -> -4");
assert_equals(document.getElementById("negFloatUp").start, -4);
}, "IDL and content attribute parse start of '-4.9' correctly.");
// exponent's first element has value of 7e2 which should return 7
test(function() {
assert_equals(document.getElementById("exponent").start, 7, "start of 7e2 -> 7");
assert_equals(document.getElementById("exponent").start, 7);
}, "IDL and content attribute parse start of '7e2' correctly.");
</script>

View file

@ -18,7 +18,7 @@
<div id='log'></div>
<script>
test(function() {
assert_equals(document.getElementById('ol').start, 3);
assert_equals(document.getElementById('ol').start, 1);
})
</script>
</body>

View file

@ -1,4 +1,8 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>`reversed` should reverse the numbering correctly</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol reversed>
<li>Three</li>
<li>Two</li>

View file

@ -1,4 +1,8 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Dynamically setting `reversed` should update the numbering</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol id="x">
<li>Three</li>
<li>Two</li>

View file

@ -1,4 +1,8 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Reversed numbering should update on dynamic addition of child nodes</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol id="x" reversed>
<li>Three</li>
<li>Two</li>

View file

@ -0,0 +1,12 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Reverse numbering should not be affected by nested div</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol reversed>
<li>Three</li>
<div>
<li>Two</li>
<li>One</li>
</div>
</ol>

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<meta charset=utf-8>
<title>Reverse numbering should not count display:none elements</title>
<link rel=match href="reversed-1-ref.html">
<link rel=help href="https://html.spec.whatwg.org/#attr-ol-reversed">
<ol reversed>
<li>Three</li>
<li style="display:none">Three</li>
<li>Two</li>
<li>One</li>
</ol>