- From: Ms2ger <web-platform-tests-notifications@w3.org>
- Date: Mon, 16 Feb 2015 22:46:29 GMT
- To: public-web-platform-tests-notifications@w3.org
For example, you could test:
```js
var doc = document.implementation.createHTMLDocument();
assert_equals(doc.location, null);
```
and
```js
var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
var win = iframe.contentWindow;
assert_not_equals(win.location, null);
assert_equals(win.location, win.document.location);
// ... and test its members
document.body.removeChild(iframe);
assert_equals(win.location, null);
assert_equals(win.document.location, null);
```
View on GitHub: https://github.com/w3c/web-platform-tests/issues/1506#issuecomment-74584341
Received on Monday, 16 February 2015 22:46:36 UTC