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> |