cdumez@apple.com | c536b80 | 2015-08-11 06:42:09 +0000 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <body> |
| 4 | <script src="../../resources/js-test-pre.js"></script> |
| 5 | <script> |
| 6 | description("The 'prototype' property on interface objects should have attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }"); |
| 7 | |
| 8 | debug("* Event"); |
| 9 | var descriptor = Object.getOwnPropertyDescriptor(Event, "prototype"); |
| 10 | shouldBeFalse("descriptor.writable"); |
| 11 | shouldBeFalse("descriptor.enumerable"); |
| 12 | shouldBeFalse("descriptor.configurable"); |
| 13 | |
| 14 | debug("* Element"); |
| 15 | var descriptor = Object.getOwnPropertyDescriptor(Element, "prototype"); |
| 16 | shouldBeFalse("descriptor.writable"); |
| 17 | shouldBeFalse("descriptor.enumerable"); |
| 18 | shouldBeFalse("descriptor.configurable"); |
| 19 | |
| 20 | debug("* Document"); |
| 21 | var descriptor = Object.getOwnPropertyDescriptor(Document, "prototype"); |
| 22 | shouldBeFalse("descriptor.writable"); |
| 23 | shouldBeFalse("descriptor.enumerable"); |
| 24 | shouldBeFalse("descriptor.configurable"); |
| 25 | |
| 26 | debug("* Window"); |
| 27 | var descriptor = Object.getOwnPropertyDescriptor(Window, "prototype"); |
| 28 | shouldBeFalse("descriptor.writable"); |
| 29 | shouldBeFalse("descriptor.enumerable"); |
| 30 | shouldBeFalse("descriptor.configurable"); |
| 31 | |
| 32 | debug("* HTMLOptionElement"); |
| 33 | var descriptor = Object.getOwnPropertyDescriptor(HTMLOptionElement, "prototype"); |
| 34 | shouldBeFalse("descriptor.writable"); |
| 35 | shouldBeFalse("descriptor.enumerable"); |
| 36 | shouldBeFalse("descriptor.configurable"); |
| 37 | |
| 38 | debug("* Option"); |
| 39 | var descriptor = Object.getOwnPropertyDescriptor(Option, "prototype"); |
| 40 | shouldBeFalse("descriptor.writable"); |
| 41 | shouldBeFalse("descriptor.enumerable"); |
| 42 | shouldBeFalse("descriptor.configurable"); |
| 43 | </script> |
| 44 | <script src="../../resources/js-test-post.js"></script> |
| 45 | </body> |
| 46 | </html> |