| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html manifest="../resources/manifest/clock.manifest"> | 2 <html manifest="./non-existent-file.manifest"> |
| 3 <head> | 3 <head> |
| 4 <title>Offline Application Cache - API_update_error</title> | 4 <title>Offline Application Cache - API_update_error</title> |
| 5 <script src="/resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="/resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <ol> | |
| 10 <li>Remove the manifest file (manifest/clock.manifest) from the server.</l
i> | |
| 11 <li>Refresh the page, then calling update() will throw InvalidStateError e
xception.</li> | |
| 12 </ol> | |
| 13 | |
| 14 <div id="log"></div> | 9 <div id="log"></div> |
| 15 | 10 |
| 16 <script> | 11 <script> |
| 17 var cache = window.applicationCache; | 12 var cache = window.applicationCache; |
| 18 test(function() { | 13 test(function() { |
| 19 assert_throws("INVALID_STATE_ERR", function(){cache.update();}); | 14 assert_throws("INVALID_STATE_ERR", function(){cache.update();}); |
| 20 }, "INVALID_STATE_ERR error test") | 15 }, "INVALID_STATE_ERR error test") |
| 21 </script> | 16 </script> |
| 22 | 17 |
| 23 </body> | 18 </body> |
| 24 </html> | 19 </html> |
| OLD | NEW |