OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
2 <script src="../../resources/js-test.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
3 <script> | 4 <script> |
4 | 5 |
5 description("Verify WebIDL interface attribute getter/setter function lengths"); | 6 description("Verify WebIDL interface attribute getter/setter function lengths"); |
6 | 7 |
7 // http://heycam.github.io/webidl/#dfn-attribute-getter | 8 // http://heycam.github.io/webidl/#dfn-attribute-getter |
8 // "The attribute getter is a Function object..." | 9 // "The attribute getter is a Function object..." |
9 // "The value of the Function object’s"length" property is the Number value 0." | 10 // "The value of the Function object’s"length" property is the Number value 0." |
10 | 11 |
11 shouldBe("Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'title').get.le
ngth", "0"); | 12 shouldBe("Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'title').get.le
ngth", "0"); |
12 | 13 |
13 // http://heycam.github.io/webidl/#dfn-attribute-setter | 14 // http://heycam.github.io/webidl/#dfn-attribute-setter |
14 // "The attribute setter ... is a Function object..." | 15 // "The attribute setter ... is a Function object..." |
15 // "The value of the Function object’s "length" property is the Number value 1." | 16 // "The value of the Function object’s "length" property is the Number value 1." |
16 | 17 |
17 shouldBe("Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'title').set.le
ngth", "1"); | 18 shouldBe("Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'title').set.le
ngth", "1"); |
18 | 19 |
19 </script> | 20 </script> |
OLD | NEW |