6 <script src=
"/js-test-resources/js-test.js"></script>
8 description("This tests that 'ApplicationCache' methods throw exceptions with reasonable messages.");
10 var cache
= window
.applicationCache
;
11 shouldThrow('cache.update()', '"InvalidStateError: Failed to execute \'update\' on \'ApplicationCache\': there is no application cache to update."');
12 shouldThrow('cache.swapCache()', '"InvalidStateError: Failed to execute \'swapCache\' on \'ApplicationCache\': there is no newer application cache to swap to."');