Skip to content

Commit

Permalink
fixup! Add tests to confirm document/window location getters are null…
Browse files Browse the repository at this point in the history
… outside of browser context.
  • Loading branch information
Ms2ger committed Oct 4, 2017
1 parent bf042ca commit 83f3600
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
assert_not_equals(win.location, null);
assert_equals(win.location, win.document.location);
document.body.removeChild(iframe);
assert_equals(win.location, null);
assert_not_equals(win.location, null);
assert_equals(typeof win.location, "object");
assert_equals(win.document.location, null);
}, "location getter");
</script>
Expand Down

0 comments on commit 83f3600

Please sign in to comment.