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

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

Issue 2895903002: DOMTokenList: Update serialization algorithm on add()/remove() (Closed)
Patch Set: Apply review comments Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
index b207e35f35cd746424d2f95aac69d9975b431a08..2b423a30e232450800a14f96bf1506380c032481 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/resources/class-list.js
@@ -49,7 +49,7 @@ shouldBeEqualToString('element.className', 'x');
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/007.htm
createElement('x x');
element.classList.add('x');
-shouldBeEqualToString('element.className', 'x x');
+shouldBeEqualToString('element.className', 'x x');
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/008.htm
createElement('y');
@@ -120,11 +120,11 @@ shouldBeEqualToString('element.className', 'x y');
createElement('x\t');
element.classList.add('y');
-shouldBeEqualToString('element.className', 'x\ty');
+shouldBeEqualToString('element.className', 'x y');
createElement(' ');
element.classList.add('y');
-shouldBeEqualToString('element.className', ' y');
+shouldBeEqualToString('element.className', 'y');
debug('Test invalid tokens');

Powered by Google App Engine
This is Rietveld 408576698