summaryrefslogtreecommitdiff
path: root/dom/tests/mochitest/localstorage/frameAppIsolation.html
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2014-05-21 11:38:25 +0200
committerwolfbeast <mcwerewolf@gmail.com>2014-05-21 11:38:25 +0200
commitd25ba7d760b017b038e5aa6c0a605b4a330eb68d (patch)
tree16ec27edc7d5f83986f16236d3a36a2682a0f37e /dom/tests/mochitest/localstorage/frameAppIsolation.html
parenta942906574671868daf122284a9c4689e6924f74 (diff)
downloadpalemoon-gre-d25ba7d760b017b038e5aa6c0a605b4a330eb68d.tar.gz
Recommit working copy to repo with proper line endings.
Diffstat (limited to 'dom/tests/mochitest/localstorage/frameAppIsolation.html')
-rw-r--r--dom/tests/mochitest/localstorage/frameAppIsolation.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/dom/tests/mochitest/localstorage/frameAppIsolation.html b/dom/tests/mochitest/localstorage/frameAppIsolation.html
new file mode 100644
index 000000000..d627058cd
--- /dev/null
+++ b/dom/tests/mochitest/localstorage/frameAppIsolation.html
@@ -0,0 +1,35 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>slave for app isolation test</title>
+ <script type="text/javascript">
+ var success = false;
+
+ var action = window.location.search.substring(1);
+
+ switch (action) {
+ case "read-no":
+ if (localStorage.getItem("0") == null) {
+ success = true;
+ }
+ break;
+ case "write":
+ localStorage.setItem("0", "foo");
+ success = true;
+ break;
+ case "read-yes":
+ if (localStorage.getItem("0") == "foo") {
+ success = true;
+ }
+ break;
+ case "clear":
+ localStorage.clear();
+ success = true;
+ break;
+ }
+ success ? alert("success") : alert("failure");
+ </script>
+</head>
+
+<body>
+</body>
+</html>