mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
36 lines
725 B
HTML
36 lines
725 B
HTML
<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>
|