https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 89a7b39d4c0b8c2b2339fd26fa39ab802b6980f1 authored by Rune Lillesveen on 23 March 2018, 14:59:20 UTC
Don't skip display:none options finding selectable options.
Tip revision: 89a7b39
application-cache-dedicated.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>
back to top