Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / ping-attribute-dom-binding.html
blobb49b846c52d3b7b3dfff7f5bf3b00e6f5cf1086f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
9 description('Tests the DOM bindings for the ping attribute');
11 var anchor = document.createElement('a');
12 shouldBeEqualToString('anchor.ping', '');
13 anchor.setAttribute('ping', 'p1');
14 shouldBeEqualToString('anchor.ping', 'p1');
15 anchor.ping = 'p2';
16 shouldBeEqualToString('anchor.getAttribute("ping")', 'p2');
17 anchor.ping = null;
18 shouldBeEqualToString('anchor.getAttribute("ping")', 'null');
19 shouldBeEqualToString('anchor.ping', 'null');
21 var area = document.createElement('area');
22 shouldBeEqualToString('area.ping', '');
23 area.setAttribute('ping', 'p1');
24 shouldBeEqualToString('area.ping', 'p1');
25 area.ping = 'p2';
26 shouldBeEqualToString('area.getAttribute("ping")', 'p2');
27 area.ping = null;
28 shouldBeEqualToString('area.getAttribute("ping")', 'null');
29 shouldBeEqualToString('area.ping', 'null');
31 </script>
32 </body>
33 </html>