mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,21 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue