summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/dom-level0/file_location.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/tests/mochitest/dom-level0/file_location.html')
-rw-r--r--dom/tests/mochitest/dom-level0/file_location.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/tests/mochitest/dom-level0/file_location.html b/dom/tests/mochitest/dom-level0/file_location.html
new file mode 100644
index 000000000..3a74b32d1
--- /dev/null
+++ b/dom/tests/mochitest/dom-level0/file_location.html
@@ -0,0 +1,10 @@
+<html>
+ <script>
+ try {
+ parent.SimpleTest.ok(!("existingprop" in location), "got a new location object in the iframe");
+ } catch (e) {
+ }
+
+ location.iframeprop = 42;
+ </script>
+</html>