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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/DOMTokenList.html

Issue 2446483002: Import wpt@c5a14f553cba5f197743b9af605a84eddd8692a2 (Closed)
Patch Set: Created 4 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: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/DOMTokenList.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/DOMTokenList.html b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/DOMTokenList.html
index 38006d3e77d9e8eab734754332f8a603bf88d99b..e8c26df498ffafc473ce90dfb86ec6cd23651305 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/DOMTokenList.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/DOMTokenList.html
@@ -89,8 +89,10 @@ test(function () {
instance.setAttribute('class', 'hello world');
assert_array_equals(element.takeLog().types(), ['constructed', 'attributeChanged']);
instance.classList.remove('foo');
- assert_array_equals(element.takeLog().types(), []);
-}, 'remove on DOMTokenList must not enqueue an attributeChanged reaction when removing a non-existent value from an attribute');
+ var logEntries = element.takeLog();
+ assert_array_equals(logEntries.types(), ['attributeChanged']);
+ assert_attribute_log_entry(logEntries.last(), {name: 'class', oldValue: 'hello world', newValue: 'hello world', namespace: null});
+}, 'remove on DOMTokenList must enqueue an attributeChanged reaction even when removing a non-existent value from an attribute');
test(function () {
var element = define_new_custom_element(['title']);

Powered by Google App Engine
This is Rietveld 408576698