| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 62 PASS testDelete('data-r2', 'r2') is true | 62 PASS testDelete('data-r2', 'r2') is true |
| 63 PASS testDelete('data-2r', '2r') is true | 63 PASS testDelete('data-2r', '2r') is true |
| 64 PASS testDelete('data-r-2', 'r-2') is true | 64 PASS testDelete('data-r-2', 'r-2') is true |
| 65 PASS testDelete('data--r-2-', 'R-2-') is true | 65 PASS testDelete('data--r-2-', 'R-2-') is true |
| 66 PASS testDelete('data--r-2r', 'R-2r') is true | 66 PASS testDelete('data--r-2r', 'R-2r') is true |
| 67 PASS testDelete('data--r-2-----r', 'R-2----R') is true | 67 PASS testDelete('data--r-2-----r', 'R-2----R') is true |
| 68 PASS testNativeDelete('-r-2-', false) is true |
| 69 PASS testNativeDelete('foo', true) is true |
| 68 | 70 |
| 69 PASS testDelete('dummy', '-foo') is false | 71 PASS testDelete('dummy', '-foo') is false |
| 70 | 72 |
| 71 PASS testForIn(['data-foo', 'data-bar', 'data-baz']) is 3 | 73 PASS testForIn(['data-foo', 'data-bar', 'data-baz']) is 3 |
| 72 PASS testForIn(['data-foo', 'data-bar', 'dataFoo']) is 2 | 74 PASS testForIn(['data-foo', 'data-bar', 'dataFoo']) is 2 |
| 73 PASS testForIn(['data-foo', 'data-bar', 'style']) is 2 | 75 PASS testForIn(['data-foo', 'data-bar', 'style']) is 2 |
| 74 PASS testForIn(['data-foo', 'data-bar', 'data-']) is 3 | 76 PASS testForIn(['data-foo', 'data-bar', 'data-']) is 3 |
| 75 PASS testForIn(['data-foo', 'data-bar', 'data-43']) is 3 | 77 PASS testForIn(['data-foo', 'data-bar', 'data-43']) is 3 |
| 76 PASS testForIn(['data-foo', 'data-oric1', 'data-bar']) is 3 | 78 PASS testForIn(['data-foo', 'data-oric1', 'data-bar']) is 3 |
| 77 PASS testForIn(['data-foo', 'data-oric-1', 'data-bar']) is 3 | 79 PASS testForIn(['data-foo', 'data-oric-1', 'data-bar']) is 3 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 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' |
| 119 PASS div.getAttribute('data-a-500k') is 'updated' | 121 PASS div.getAttribute('data-a-500k') is 'updated' |
| 120 | 122 |
| 121 Set null: | 123 Set null: |
| 122 PASS d.dataset.foo is 'null' | 124 PASS d.dataset.foo is 'null' |
| 123 | 125 |
| 124 PASS successfullyParsed is true | 126 PASS successfullyParsed is true |
| 125 | 127 |
| 126 TEST COMPLETE | 128 TEST COMPLETE |
| 127 | 129 |
| OLD | NEW |