Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / appcache / exceptions.html
blob2ba16e3c45a5b2d78f5ccff7d021b5f1047829a3
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <script src="/js-test-resources/js-test.js"></script>
7 <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."');
13 </script>
14 </body>
15 </html>