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(''); |