4 <script src=
"../../resources/js-test.js"></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');
16 shouldBeEqualToString('anchor.getAttribute("ping")', 'p2');
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');
26 shouldBeEqualToString('area.getAttribute("ping")', 'p2');
28 shouldBeEqualToString('area.getAttribute("ping")', 'null');
29 shouldBeEqualToString('area.ping', 'null');