Blame dom/bindings/test/test_unforgeablesonexpando.html

Packit f0b94e
Packit f0b94e
<meta charset=utf-8>
Packit f0b94e
<title>Test for making sure named getters don't override the unforgeable location on HTMLDocument</title>
Packit f0b94e
<script src="/resources/testharness.js"></script>
Packit f0b94e
<script src="/resources/testharnessreport.js"></script>
Packit f0b94e
Packit f0b94e
Packit f0b94e
<script>
Packit f0b94e
test(function() {
Packit f0b94e
  assert_equals(document.location, window.location,
Packit f0b94e
                'The  should not override the location getter');
Packit f0b94e
}, "document.location is the right thing");
Packit f0b94e
test(function() {
Packit f0b94e
  var doc = new DOMParser().parseFromString("", "text/html");
Packit f0b94e
  assert_equals(doc.location, null,
Packit f0b94e
                'The  should not override the location getter on a data document');
Packit f0b94e
}, "document.location is the right thing on non-rendered document");
Packit f0b94e
</script>