diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2014-05-21 11:38:25 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2014-05-21 11:38:25 +0200 |
commit | d25ba7d760b017b038e5aa6c0a605b4a330eb68d (patch) | |
tree | 16ec27edc7d5f83986f16236d3a36a2682a0f37e /dom/tests/mochitest/localstorage/frameAppIsolation.html | |
parent | a942906574671868daf122284a9c4689e6924f74 (diff) | |
download | palemoon-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.html | 35 |
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> |