| OLD | NEW |
| 1 This tests element.dataset. | 1 This tests element.dataset. |
| 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 PASS testGet('data-foo', 'foo') is true | 6 PASS testGet('data-foo', 'foo') is true |
| 7 PASS testGet('data-foo-bar', 'fooBar') is true | 7 PASS testGet('data-foo-bar', 'fooBar') is true |
| 8 PASS testGet('data--', '-') is true | 8 PASS testGet('data--', '-') is true |
| 9 PASS testGet('data--foo', 'Foo') is true | 9 PASS testGet('data--foo', 'Foo') is true |
| 10 PASS testGet('data---foo', '-Foo') is true | 10 PASS testGet('data---foo', '-Foo') is true |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 PASS testSet('i18n', 'data-i18n') is true | 40 PASS testSet('i18n', 'data-i18n') is true |
| 41 PASS testSet('d2', 'data-d2') is true | 41 PASS testSet('d2', 'data-d2') is true |
| 42 PASS testSet('2d', 'data-2d') is true | 42 PASS testSet('2d', 'data-2d') is true |
| 43 PASS testSet('d-2', 'data-d-2') is true | 43 PASS testSet('d-2', 'data-d-2') is true |
| 44 PASS testSet('A--S', 'data--a---s') is true | 44 PASS testSet('A--S', 'data--a---s') is true |
| 45 | 45 |
| 46 PASS testIsNull('0123', 'data-123') is true | 46 PASS testIsNull('0123', 'data-123') is true |
| 47 PASS testIsNull('123', 'data-0123') is true | 47 PASS testIsNull('123', 'data-0123') is true |
| 48 | 48 |
| 49 PASS testSet('-foo', 'dummy') threw exception SyntaxError: Failed to set the '-f
oo' property on 'DOMStringMap': '-foo' is not a valid property name.. | 49 PASS testSet('-foo', 'dummy') threw exception SyntaxError: Failed to set the '-f
oo' property on 'DOMStringMap': '-foo' is not a valid property name.. |
| 50 PASS testSet('foo ', 'dummy') threw exception InvalidCharacterError: 'data-foo '
is not a valid attribute name.. | 50 PASS testSet('foo ', 'dummy') threw exception InvalidCharacterError: Failed to s
et the 'foo ' property on 'DOMStringMap': 'data-foo ' is not a valid attribute n
ame.. |
| 51 PASS testSet('foo豈', 'dummy') threw exception InvalidCharacterError: 'data-foo豈'
is not a valid attribute name.. | 51 FAIL testSet('foo豈', 'dummy') should throw InvalidCharacterError: Failed to set
the 'foo豈' property on 'DOMStringMap': 'data-foo豈' is not a valid attribute name
.. Threw exception InvalidCharacterError: Failed to set the 'fooï¤' property on
'DOMStringMap': 'data-foo豈' is not a valid attribute name.. |
| 52 | 52 |
| 53 PASS testDelete('data-foo', 'foo') is true | 53 PASS testDelete('data-foo', 'foo') is true |
| 54 PASS testDelete('data-foo-bar', 'fooBar') is true | 54 PASS testDelete('data-foo-bar', 'fooBar') is true |
| 55 PASS testDelete('data--', '-') is true | 55 PASS testDelete('data--', '-') is true |
| 56 PASS testDelete('data--foo', 'Foo') is true | 56 PASS testDelete('data--foo', 'Foo') is true |
| 57 PASS testDelete('data---foo', '-Foo') is true | 57 PASS testDelete('data---foo', '-Foo') is true |
| 58 PASS testDelete('data-', '') is true | 58 PASS testDelete('data-', '') is true |
| 59 PASS testDelete('data-à', 'à') is true | 59 PASS testDelete('data-à', 'à') is true |
| 60 PASS testDelete('data-33', '33') is true | 60 PASS testDelete('data-33', '33') is true |
| 61 PASS testDelete('data-00033', '00033') is true | 61 PASS testDelete('data-00033', '00033') is true |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 PASS div.dataset['a-500k'] = 'updated'; div.dataset['a-500k'] is 'updated' | 120 PASS div.dataset['a-500k'] = 'updated'; div.dataset['a-500k'] is 'updated' |
| 121 PASS div.getAttribute('data-a-500k') is 'updated' | 121 PASS div.getAttribute('data-a-500k') is 'updated' |
| 122 | 122 |
| 123 Set null: | 123 Set null: |
| 124 PASS d.dataset.foo is 'null' | 124 PASS d.dataset.foo is 'null' |
| 125 | 125 |
| 126 PASS successfullyParsed is true | 126 PASS successfullyParsed is true |
| 127 | 127 |
| 128 TEST COMPLETE | 128 TEST COMPLETE |
| 129 | 129 |
| OLD | NEW |