Use HTML content for localstorage test
JS logging is disabled by QtWebKit in private browsing mode
This commit is contained in:
parent
66709ed1b9
commit
424758a6d1
@ -3,16 +3,17 @@
|
|||||||
<head>
|
<head>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function check_storage() {
|
function check_storage() {
|
||||||
|
var elem = document.getElementById("status");
|
||||||
try {
|
try {
|
||||||
localStorage.qute_test = "foo";
|
localStorage.qute_test = "foo";
|
||||||
console.log("localstorage works!");
|
elem.innerHTML = "working";
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("localstorage does not work!");
|
elem.innerHTML = "not working";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body onload="check_storage()">
|
<body onload="check_storage()">
|
||||||
<p>This page checks local storage on load and logs via console.log</p>
|
<p>Local storage status: <span id="status">checking...</span></p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -476,7 +476,7 @@ Feature: Various utility commands.
|
|||||||
Scenario: Private browsing is activated in QtWebKit without restart
|
Scenario: Private browsing is activated in QtWebKit without restart
|
||||||
When I set general -> private-browsing to true
|
When I set general -> private-browsing to true
|
||||||
And I open data/javascript/localstorage.html
|
And I open data/javascript/localstorage.html
|
||||||
Then "localstorage does not work!" should be logged via javascript
|
Then the page should contain the plaintext "Local storage status: not working"
|
||||||
|
|
||||||
Scenario: :repeat-command
|
Scenario: :repeat-command
|
||||||
Given I open data/scroll.html
|
Given I open data/scroll.html
|
||||||
|
Loading…
Reference in New Issue
Block a user