blob: 0702a99fea49ea448703655b3dc4d073d4d791a9 [file] [log] [blame]
Test null handling of several Document attributes
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
* cookie attribute
PASS document.cookie is ""
document.cookie = 'key=value'
PASS document.cookie is "key=value"
document.cookie = null
PASS document.cookie.indexOf('key=value') != -1 is true
PASS document.cookie.indexOf('null=') != -1 is true
* title attribute
PASS document.title is ""
document.title = null
PASS document.title is "null"
* domain attribute
PASS document.domain is "127.0.0.1"
PASS document.domain = null threw exception SecurityError: Attempted to use a non-registrable domain..
PASS document.domain is "127.0.0.1"
PASS successfullyParsed is true
TEST COMPLETE