cdumez@apple.com | 0a5cd4e | 2016-02-02 03:47:51 +0000 | [diff] [blame] | 1 | CONSOLE MESSAGE: line 1: [object Object] |
| 2 | CONSOLE MESSAGE: line 1: function nodeType() { |
| 3 | [native code] |
| 4 | } |
| 5 | document.title |
| 6 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title') is not Object.getOwnPropertyDescriptor(Document.prototype, 'title') |
| 7 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get is Object.getOwnPropertyDescriptor(Document.prototype, 'title').get |
| 8 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').set is Object.getOwnPropertyDescriptor(Document.prototype, 'title').set |
| 9 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.toString() is "function title() {\n [native code]\n}" |
| 10 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.length is 0 |
| 11 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').set.toString() is "function title() {\n [native code]\n}" |
| 12 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').set.length is 1 |
| 13 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.call(document) is document.title |
| 14 | PASS document.title is "old title" |
| 15 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.call(document) is "old title" |
| 16 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.call() threw exception TypeError: The Document.title getter can only be used on instances of Document. |
| 17 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.call(null) threw exception TypeError: The Document.title getter can only be used on instances of Document. |
| 18 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.call(document.documentElement) threw exception TypeError: The Document.title getter can only be used on instances of Document. |
| 19 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').set.call(document, 'new title') is undefined. |
| 20 | PASS document.title is "new title" |
| 21 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').get.call(document) is "new title" |
| 22 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').set.call() threw exception TypeError: The Document.title setter can only be used on instances of Document. |
| 23 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').set.call(null) threw exception TypeError: The Document.title setter can only be used on instances of Document. |
| 24 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'title').set.call(document.documentElement) threw exception TypeError: The Document.title setter can only be used on instances of Document. |
| 25 | |
| 26 | document.readyState |
| 27 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'readyState') is not Object.getOwnPropertyDescriptor(Document.prototype, 'readyState') |
| 28 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').get is Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').get |
| 29 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').set is Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').set |
| 30 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').get.toString() is "function readyState() {\n [native code]\n}" |
| 31 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').get.length is 0 |
| 32 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').get.call(document) is document.readyState |
| 33 | PASS Object.getOwnPropertyDescriptor(Document.prototype, 'readyState').set is undefined. |
| 34 | |
| 35 | Node.nodeType |
| 36 | PASS console.log(node_type) did not throw exception. |
| 37 | PASS console.log(getter) did not throw exception. |
| 38 | PASS node_type.get is defined. |
| 39 | PASS node_type.get.call(document.body) is 1 |
| 40 | PASS node_type.enumerable is true |
| 41 | PASS getter === otherGetter is true |
| 42 | PASS successfullyParsed is true |
| 43 | |
| 44 | TEST COMPLETE |
| 45 | |