| OLD | NEW |
| 1 This tests element.dataset for XHTML. | 1 This tests element.dataset for XHTML. |
| 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 |
| 11 PASS testGet('data-', '') is true | 11 PASS testGet('data-', '') is true |
| 12 PASS testGet('data-à', 'à') is true | 12 PASS testGet('data-à', 'à') is true |
| 13 | 13 |
| 14 PASS matchesNothingInDataset('dataFoo') is true | 14 PASS matchesNothingInDataset('dataFoo') is true |
| 15 PASS matchesNothingInDataset('data-Foo') is true | 15 PASS matchesNothingInDataset('data-Foo') is true |
| 16 | 16 |
| 17 PASS testSet('foo', 'data-foo') is true | 17 PASS testSet('foo', 'data-foo') is true |
| 18 PASS testSet('fooBar', 'data-foo-bar') is true | 18 PASS testSet('fooBar', 'data-foo-bar') is true |
| 19 PASS testSet('-', 'data--') is true | 19 PASS testSet('-', 'data--') is true |
| 20 PASS testSet('Foo', 'data--foo') is true | 20 PASS testSet('Foo', 'data--foo') is true |
| 21 PASS testSet('-Foo', 'data---foo') is true | 21 PASS testSet('-Foo', 'data---foo') is true |
| 22 PASS testSet('', 'data-') is true | 22 PASS testSet('', 'data-') is true |
| 23 PASS testSet('à', 'data-à') is true | 23 PASS testSet('à', 'data-à') is true |
| 24 | 24 |
| 25 PASS testSet('-foo', 'dummy') threw exception SyntaxError: Failed to set the '-f
oo' property on 'DOMStringMap': '-foo' is not a valid property name.. | 25 PASS testSet('-foo', 'dummy') threw exception SyntaxError: Failed to set the '-f
oo' property on 'DOMStringMap': '-foo' is not a valid property name.. |
| 26 PASS testSet('foo ', 'dummy') threw exception InvalidCharacterError: 'data-foo '
is not a valid attribute name.. | 26 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.. |
| 27 PASS testSet('foo豈', 'dummy') threw exception InvalidCharacterError: 'data-foo豈'
is not a valid attribute name.. | 27 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.. |
| 28 | 28 |
| 29 PASS testDelete('data-foo', 'foo') is true | 29 PASS testDelete('data-foo', 'foo') is true |
| 30 PASS testDelete('data-foo-bar', 'fooBar') is true | 30 PASS testDelete('data-foo-bar', 'fooBar') is true |
| 31 PASS testDelete('data--', '-') is true | 31 PASS testDelete('data--', '-') is true |
| 32 PASS testDelete('data--foo', 'Foo') is true | 32 PASS testDelete('data--foo', 'Foo') is true |
| 33 PASS testDelete('data---foo', '-Foo') is true | 33 PASS testDelete('data---foo', '-Foo') is true |
| 34 PASS testDelete('data-', '') is true | 34 PASS testDelete('data-', '') is true |
| 35 PASS testDelete('data-à', 'à') is true | 35 PASS testDelete('data-à', 'à') is true |
| 36 | 36 |
| 37 PASS testDelete('dummy', '-foo') is false | 37 PASS testDelete('dummy', '-foo') is false |
| 38 | 38 |
| 39 PASS testForIn(['data-foo', 'data-bar', 'data-baz']) is 3 | 39 PASS testForIn(['data-foo', 'data-bar', 'data-baz']) is 3 |
| 40 PASS testForIn(['data-foo', 'data-bar', 'dataFoo']) is 2 | 40 PASS testForIn(['data-foo', 'data-bar', 'dataFoo']) is 2 |
| 41 PASS testForIn(['data-foo', 'data-bar', 'style']) is 2 | 41 PASS testForIn(['data-foo', 'data-bar', 'style']) is 2 |
| 42 PASS testForIn(['data-foo', 'data-bar', 'data-']) is 3 | 42 PASS testForIn(['data-foo', 'data-bar', 'data-']) is 3 |
| 43 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
| 44 | 44 |
| 45 TEST COMPLETE | 45 TEST COMPLETE |
| 46 | 46 |
| OLD | NEW |