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

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

Issue 1629403003: Merge DOMSettableTokensList into DOMTokensList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar fixed tests Created 4 years, 10 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/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

Powered by Google App Engine
This is Rietveld 408576698