diff options
Diffstat (limited to 'dom/tests/mochitest/localstorage/test_keySync.html')
-rw-r--r-- | dom/tests/mochitest/localstorage/test_keySync.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dom/tests/mochitest/localstorage/test_keySync.html b/dom/tests/mochitest/localstorage/test_keySync.html new file mode 100644 index 000000000..3f23945e2 --- /dev/null +++ b/dom/tests/mochitest/localstorage/test_keySync.html @@ -0,0 +1,33 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<title>localStorage equal origins</title> + +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="interOriginTest2.js"></script> + +<!-- + This test loads two frames from the same origin, clears in one frame, + sets a single key in another and then checks key(0) in the first frame. +--> + +<script type="text/javascript"> + +function startTest() +{ + masterFrameOrigin = "http://example.org:80"; + slaveFrameOrigin = "http://example.org:80"; + + masterFrame.location = masterFrameOrigin + framePath + "frameKeySync.html?1"; + slaveFrame.location = slaveFrameOrigin + framePath + "frameKeySync.html?2"; +} + +</script> + +</head> + +<body onload="startTest();"> + <iframe src="" name="masterFrame"></iframe> + <iframe src="" name="slaveFrame"></iframe> +</body> +</html> |