| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title>the ol element</title> | 5 <title>the ol element</title> |
| 6 <link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com"> | 6 <link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com"> |
| 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-elemen
t"> | 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-elemen
t"> |
| 8 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
| 9 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
| 10 </head> | 10 </head> |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 // check that prototype matches spec's DOM interface | 163 // check that prototype matches spec's DOM interface |
| 164 test(function () { | 164 test(function () { |
| 165 testList = document.getElementById("basic"); | 165 testList = document.getElementById("basic"); |
| 166 assert_equals(Object.getPrototypeOf(testList), HTMLOListElement.prot
otype, "HTMLOListElement.prototype should be used for OL"); | 166 assert_equals(Object.getPrototypeOf(testList), HTMLOListElement.prot
otype, "HTMLOListElement.prototype should be used for OL"); |
| 167 }, "The prototype for OL is HTMLOListElement.prototype"); | 167 }, "The prototype for OL is HTMLOListElement.prototype"); |
| 168 | 168 |
| 169 // check that "own" properties reversed, start, and type are present | 169 // check that "own" properties reversed, start, and type are present |
| 170 test(function () { | 170 test(function () { |
| 171 testList = document.getElementById("basic"); | 171 testList = document.getElementById("basic"); |
| 172 assert_own_property(testList, "reversed"); | 172 assert_idl_attribute(testList, "reversed"); |
| 173 }, "'reversed' property should be defined on OL."); | 173 }, "'reversed' property should be defined on OL."); |
| 174 | 174 |
| 175 test(function () { | 175 test(function () { |
| 176 testList = document.getElementById("basic"); | 176 testList = document.getElementById("basic"); |
| 177 assert_own_property(testList, "start"); | 177 assert_idl_attribute(testList, "start"); |
| 178 }, "'start' property should be defined on OL."); | 178 }, "'start' property should be defined on OL."); |
| 179 | 179 |
| 180 test(function () { | 180 test(function () { |
| 181 testList = document.getElementById("basic"); | 181 testList = document.getElementById("basic"); |
| 182 assert_own_property(testList, "type"); | 182 assert_idl_attribute(testList, "type"); |
| 183 }, "'type' property should be defined on OL."); | 183 }, "'type' property should be defined on OL."); |
| 184 | 184 |
| 185 // "The reversed, start, and type IDL attributes must reflect the respec
tive content attributes of the same name." | 185 // "The reversed, start, and type IDL attributes must reflect the respec
tive content attributes of the same name." |
| 186 test(function () { | 186 test(function () { |
| 187 testList = document.getElementById("allAtts"); | 187 testList = document.getElementById("allAtts"); |
| 188 assert_true(testList.reversed); | 188 assert_true(testList.reversed); |
| 189 }, "OL's 'reversed' IDL property reflects content attribute."); | 189 }, "OL's 'reversed' IDL property reflects content attribute."); |
| 190 | 190 |
| 191 test(function () { | 191 test(function () { |
| 192 testList = document.getElementById("allAtts"); | 192 testList = document.getElementById("allAtts"); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 }, "IDL and content attribute parse start of '-4.9' correctly."); | 305 }, "IDL and content attribute parse start of '-4.9' correctly."); |
| 306 | 306 |
| 307 // exponent's first element has value of 7e2 which should return 7 | 307 // exponent's first element has value of 7e2 which should return 7 |
| 308 test(function() { | 308 test(function() { |
| 309 assert_equals(document.getElementById("exponent").start, 7, "start o
f 7e2 -> 7"); | 309 assert_equals(document.getElementById("exponent").start, 7, "start o
f 7e2 -> 7"); |
| 310 }, "IDL and content attribute parse start of '7e2' correctly."); | 310 }, "IDL and content attribute parse start of '7e2' correctly."); |
| 311 | 311 |
| 312 </script> | 312 </script> |
| 313 </body> | 313 </body> |
| 314 </html> | 314 </html> |
| OLD | NEW |