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

Unified Diff: LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js

Issue 26693003: Make HTMLOutputElement.htmlFor settable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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: LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js
diff --git a/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js b/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js
index 5cf0439c6b018af9d1b1e3ba7f2fc2f0bb15f1f5..a96c587a9188f4504cf7bf774c113dfafa64d3d5 100644
--- a/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js
+++ b/LayoutTests/fast/dom/HTMLOutputElement/script-tests/dom-settable-token-list.js
@@ -14,10 +14,13 @@ function createElement(tokenList)
debug('- Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/');
-// HTMLOutputElement::htmlFor is readonly attribute.
+// HTMLOutputElement::htmlFor setter is forwarding assignment to DOMSettableTokenList.value attribute.
createElement('x');
-element.htmlFor = 'y';
+shouldBeEqualToString('element.htmlFor.value', 'x');
shouldBeEqualToString('String(element.htmlFor)', 'x');
+element.htmlFor = 'y';
+shouldBeEqualToString('element.htmlFor.value', 'y');
+shouldBeEqualToString('String(element.htmlFor)', 'y');
// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/001.htm
createElement('');
« no previous file with comments | « LayoutTests/fast/dom/HTMLOutputElement/dom-settable-token-list-expected.txt ('k') | Source/core/html/HTMLOutputElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698