OLD | NEW |
1 Tests the htmlFor attribute and its properties. | 1 Tests the htmlFor attribute and its properties. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 - Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/ | 6 - Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/ |
7 PASS element.htmlFor.value is "x" | 7 PASS element.htmlFor.value is "x" |
8 PASS String(element.htmlFor) is "x" | 8 PASS String(element.htmlFor) is "x" |
9 PASS element.htmlFor.value is "y" | 9 PASS element.htmlFor.value is "y" |
10 PASS String(element.htmlFor) is "y" | 10 PASS String(element.htmlFor) is "y" |
(...skipping 14 matching lines...) Expand all Loading... |
25 PASS list.value is "" | 25 PASS list.value is "" |
26 PASS element.htmlFor.contains('x') is false | 26 PASS element.htmlFor.contains('x') is false |
27 PASS element.htmlFor[1] is undefined. | 27 PASS element.htmlFor[1] is undefined. |
28 PASS element.htmlFor.contains('x') is true | 28 PASS element.htmlFor.contains('x') is true |
29 PASS element.htmlFor[1] is undefined. | 29 PASS element.htmlFor[1] is undefined. |
30 - Testing add in presence of trailing white spaces. | 30 - Testing add in presence of trailing white spaces. |
31 PASS element.htmlFor.toString() is "x y" | 31 PASS element.htmlFor.toString() is "x y" |
32 PASS element.htmlFor.toString() is "x\ty" | 32 PASS element.htmlFor.toString() is "x\ty" |
33 PASS element.htmlFor.toString() is " y" | 33 PASS element.htmlFor.toString() is " y" |
34 - Test invalid tokens | 34 - Test invalid tokens |
35 PASS element.htmlFor.contains('') threw expected DOMException with code 12 | 35 PASS element.htmlFor.contains("") did not throw exception. |
36 PASS element.htmlFor.contains('x y') threw expected DOMException with code 5 | 36 PASS element.htmlFor.contains("x y") did not throw exception. |
37 PASS element.htmlFor.add('') threw expected DOMException with code 12 | 37 PASS element.htmlFor.add('') threw expected DOMException with code 12 |
38 PASS element.htmlFor.add('x y') threw expected DOMException with code 5 | 38 PASS element.htmlFor.add('x y') threw expected DOMException with code 5 |
39 PASS element.htmlFor.remove('') threw expected DOMException with code 12 | 39 PASS element.htmlFor.remove('') threw expected DOMException with code 12 |
40 PASS element.htmlFor.remove('x y') threw expected DOMException with code 5 | 40 PASS element.htmlFor.remove('x y') threw expected DOMException with code 5 |
41 PASS element.htmlFor.toggle('') threw expected DOMException with code 12 | 41 PASS element.htmlFor.toggle('') threw expected DOMException with code 12 |
42 PASS element.htmlFor.toggle('x y') threw expected DOMException with code 5 | 42 PASS element.htmlFor.toggle('x y') threw expected DOMException with code 5 |
43 - Indexing | 43 - Indexing |
44 PASS element.htmlFor[0] is "x" | 44 PASS element.htmlFor[0] is "x" |
45 PASS element.htmlFor.item(0) is "x" | 45 PASS element.htmlFor.item(0) is "x" |
46 PASS element.htmlFor[1] is "x" | 46 PASS element.htmlFor[1] is "x" |
(...skipping 22 matching lines...) Expand all Loading... |
69 - DOMTokenList presence and type | 69 - DOMTokenList presence and type |
70 PASS 'undefined' != typeof DOMTokenList is true | 70 PASS 'undefined' != typeof DOMTokenList is true |
71 PASS typeof DOMTokenList.prototype is "object" | 71 PASS typeof DOMTokenList.prototype is "object" |
72 PASS typeof element.htmlFor is "object" | 72 PASS typeof element.htmlFor is "object" |
73 PASS element.htmlFor.constructor is DOMTokenList | 73 PASS element.htmlFor.constructor is DOMTokenList |
74 PASS element.htmlFor === element.htmlFor is true | 74 PASS element.htmlFor === element.htmlFor is true |
75 PASS successfullyParsed is true | 75 PASS successfullyParsed is true |
76 | 76 |
77 TEST COMPLETE | 77 TEST COMPLETE |
78 | 78 |
OLD | NEW |