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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html

Issue 2903803002: DOMTokenList should unify duplicated tokens. (Closed)
Patch Set: Update a -expected.txt 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/HTMLOutputElement/dom-token-list.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html
index bd2d549827c3f9635b348b3f62fadfbb43a8c8a0..07ac844c35ffaf600729a62c60848f5d1139c5a5 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/dom-token-list.html
@@ -39,7 +39,7 @@ shouldEvaluateTo('element.htmlFor.length', 1);
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/003.htm
createElement('x x');
-shouldEvaluateTo('element.htmlFor.length', 2);
+shouldEvaluateTo('element.htmlFor.length', 1);
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/004.htm
createElement('x y');
@@ -58,7 +58,7 @@ shouldBeEqualToString('element.htmlFor.toString()', 'x');
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/007.htm
createElement('x x');
element.htmlFor.add('x');
-shouldBeEqualToString('element.htmlFor.toString()', 'x x');
+shouldBeEqualToString('element.htmlFor.toString()', 'x');
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/008.htm
createElement('y');
@@ -78,7 +78,7 @@ shouldBeEqualToString('element.htmlFor.toString()', '');
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/011.htm
createElement(' y x y ');
element.htmlFor.remove('x');
-shouldBeEqualToString('element.htmlFor.toString()', 'y y');
+shouldBeEqualToString('element.htmlFor.toString()', 'y');
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/012.htm
createElement(' x y x ');
@@ -188,8 +188,8 @@ shouldBeEqualToString('element.htmlFor[0]', 'x');
shouldBeEqualToString('element.htmlFor.item(0)', 'x');
createElement('x x');
-shouldBeEqualToString('element.htmlFor[1]', 'x');
-shouldBeEqualToString('element.htmlFor.item(1)', 'x');
+shouldBeUndefined('element.htmlFor[1]');
+shouldBeNull('element.htmlFor.item(1)');
createElement('x y');
shouldBeEqualToString('element.htmlFor[1]', 'y');

Powered by Google App Engine
This is Rietveld 408576698