Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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'])");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698