mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
21 lines
692 B
HTML
21 lines
692 B
HTML
<!doctype html>
|
|
<html manifest=cache.manifest>
|
|
<title>cache manifest</title>
|
|
<p>Script did not run.</p>
|
|
<p>To run this test again, delete private data and then load this test again.</p>
|
|
<script>
|
|
var p = document.querySelector('p');
|
|
if (sessionStorage.testHasBeenLoadedBefore) {
|
|
var worker = new Worker('application-cache-dedicated.js');
|
|
worker.onmessage = function(e) {
|
|
p.textContent = 'PASS';
|
|
}
|
|
setTimeout(function(){
|
|
if (p.textContent != 'PASS')
|
|
p.textContent = 'FAIL (got no message from worker)';
|
|
}, 250);
|
|
} else {
|
|
sessionStorage.testHasBeenLoadedBefore = true;
|
|
p.textContent = 'Enable offline mode and then reload this test. It should say PASS.';
|
|
}
|
|
</script>
|