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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/ping-attribute-dom-binding.html

Issue 1416043002: Revert "Use DOMSettableTokenList for {HTMLAnchorElement, HTMLAreaElement}.ping." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/fast/dom/ping-attribute-dom-binding.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/ping-attribute-dom-binding.html b/third_party/WebKit/LayoutTests/fast/dom/ping-attribute-dom-binding.html
index 6ef021785b7f9fc85fe478f0b8d3265ed9e7168b..b49b846c52d3b7b3dfff7f5bf3b00e6f5cf1086f 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/ping-attribute-dom-binding.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/ping-attribute-dom-binding.html
@@ -9,38 +9,24 @@
description('Tests the DOM bindings for the ping attribute');
var anchor = document.createElement('a');
-shouldBe('anchor.ping', '[]');
+shouldBeEqualToString('anchor.ping', '');
anchor.setAttribute('ping', 'p1');
-shouldBe('anchor.ping', '["p1"]');
+shouldBeEqualToString('anchor.ping', 'p1');
anchor.ping = 'p2';
shouldBeEqualToString('anchor.getAttribute("ping")', 'p2');
-anchor.ping.add('p3');
-shouldBe('anchor.ping', '["p2","p3"]');
-anchor.ping.add('p3');
-shouldBe('anchor.ping', '["p2","p3"]');
-shouldBeTrue('anchor.ping.contains("p3")');
-anchor.ping.remove('p2');
-shouldBe('anchor.ping', '["p3"]');
anchor.ping = null;
shouldBeEqualToString('anchor.getAttribute("ping")', 'null');
-shouldBe('anchor.ping', '["null"]');
+shouldBeEqualToString('anchor.ping', 'null');
var area = document.createElement('area');
-shouldBe('area.ping', '[]');
+shouldBeEqualToString('area.ping', '');
area.setAttribute('ping', 'p1');
-shouldBe('area.ping', '["p1"]');
+shouldBeEqualToString('area.ping', 'p1');
area.ping = 'p2';
shouldBeEqualToString('area.getAttribute("ping")', 'p2');
-area.ping.add('p3');
-shouldBe('area.ping', '["p2","p3"]');
-area.ping.add('p3');
-shouldBe('area.ping', '["p2","p3"]');
-shouldBeTrue('area.ping.contains("p3")');
-area.ping.remove('p2');
-shouldBe('area.ping', '["p3"]');
area.ping = null;
shouldBeEqualToString('area.getAttribute("ping")', 'null');
-shouldBe('area.ping', '["null"]');
+shouldBeEqualToString('area.ping', 'null');
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698