| Index: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list.js
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list.js b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list.js
|
| index 2b80e4f6f0757ce28c8cd706873a55b1a074fb75..b62810098299e4aee485ba4d2b55b2ef9dd3199d 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list.js
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLElement/script-tests/class-list.js
|
| @@ -10,15 +10,14 @@ function createElement(className)
|
|
|
| debug('Tests from http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/');
|
|
|
| -// http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/setting/001.htm
|
| -// Firefox throws here but WebKit does not throw on setting readonly idl
|
| -// attributes.
|
| +// Even though classList is readonly, PutForwards=value means that its value is forwarded.
|
| createElement('x');
|
| try {
|
| element.classList = 'y';
|
| - shouldBeEqualToString('String(element.classList)', 'x');
|
| + shouldBeEqualToString('String(element.classList)', 'y');
|
| + shouldBeEqualToString('String(element.className)', 'y');
|
| } catch (ex) {
|
| - testPassed('Throwing on set is acceptable');
|
| + testFailed('Throwing on set should not happen');
|
| }
|
|
|
| // http://simon.html5.org/test/html/dom/reflecting/DOMTokenList/getting/001.htm
|
|
|