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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html

Issue 1666363003: Import web-platform-tests@27e3d93f88a71a249d1df872a5d613b3243b9588 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed win failiure in TestExpectations 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/imported/web-platform-tests/dom/nodes/Element-classlist.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html
index dba18f0f97a5de951679cda82544c2ff98f10cc0..d016d7b45a62b380c2d068b246ae2bb480d245fe 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/nodes/Element-classlist.html
@@ -290,15 +290,13 @@ test(function () {
assert_false(failed,'an error was thrown');
}, 'classList.length must be read-only');
test(function () {
- var failed = false, realList = secondelem.classList;
- try {
- secondelem.classList = '';
- } catch(e) {
- failed = e;
- }
+ var realList = secondelem.classList;
+ secondelem.classList = 'foo bar';
assert_equals(secondelem.classList,realList);
- assert_false(failed,'an error was thrown');
-}, 'classList must be read-only');
+ assert_equals(secondelem.classList.length,2);
+ assert_equals(secondelem.classList[0],'foo');
+ assert_equals(secondelem.classList[1],'bar');
+}, 'classList must have [PutForwards=value]');
</script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698