| OLD | NEW |
| 1 description('Tests the classList attribute and its properties.'); | 1 description('Tests the classList attribute and its properties.'); |
| 2 | 2 |
| 3 var element; | 3 var element; |
| 4 | 4 |
| 5 function createElement(className) | 5 function createElement(className) |
| 6 { | 6 { |
| 7 element = document.createElement('p'); | 7 element = document.createElement('p'); |
| 8 element.className = className; | 8 element.className = className; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 element.classList.remove('a', 'c'); | 368 element.classList.remove('a', 'c'); |
| 369 shouldBe('observer.takeRecords().length', '1'); | 369 shouldBe('observer.takeRecords().length', '1'); |
| 370 | 370 |
| 371 // iterable<DOMString>; | 371 // iterable<DOMString>; |
| 372 createElement('a b c'); | 372 createElement('a b c'); |
| 373 var seen = []; | 373 var seen = []; |
| 374 for (var t of element.classList) { | 374 for (var t of element.classList) { |
| 375 seen.push(t); | 375 seen.push(t); |
| 376 } | 376 } |
| 377 shouldBeTrue("areArraysEqual(seen, ['a', 'b', 'c'])"); | 377 shouldBeTrue("areArraysEqual(seen, ['a', 'b', 'c'])"); |
| OLD | NEW |