1 <html manifest="resources/empty.manifest"> 2 3 <div>This tests that the cached event gets sent even if the manifest is empty.</div> 4 <div id="result">FAILURE</div> 5 6 <script> 7 if (window.layoutTestController) { 8 layoutTestController.dumpAsText() 9 layoutTestController.waitUntilDone(); 10 } 11 12 function cached() 13 { 14 document.getElementById('result').innerHTML = 'SUCCESS'; 15 16 if (window.layoutTestController) 17 layoutTestController.notifyDone(); 18 } 19 20 applicationCache.addEventListener('cached', cached, false); 21 22 </script> 23 </html> 24