qutebrowser/tests/end2end/data/javascript/localstorage.html
Florian Bruhin 424758a6d1 Use HTML content for localstorage test
JS logging is disabled by QtWebKit in private browsing mode
2016-08-02 15:18:25 +02:00

20 lines
537 B
HTML

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function check_storage() {
var elem = document.getElementById("status");
try {
localStorage.qute_test = "foo";
elem.innerHTML = "working";
} catch (e) {
elem.innerHTML = "not working";
}
}
</script>
</head>
<body onload="check_storage()">
<p>Local storage status: <span id="status">checking...</span></p>
</body>
</html>