| Index: third_party/WebKit/LayoutTests/external/wpt/html/browsers/offline/application-cache-api/api_update.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/offline/application-cache-api/api_update.html b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/offline/application-cache-api/api_update.html
|
| index 452daa711dfe032deae77ef0af0c850293590abb..0cb281fba5682e57de968ec77fba84e0212f7de1 100644
|
| --- a/third_party/WebKit/LayoutTests/external/wpt/html/browsers/offline/application-cache-api/api_update.html
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/html/browsers/offline/application-cache-api/api_update.html
|
| @@ -11,12 +11,19 @@
|
| <script>
|
| var cache = window.applicationCache;
|
|
|
| - test(function() {
|
| - try {
|
| + async_test(function(t) {
|
| + var next = t.step_func(function() {
|
| + cache.onnoupdate = cache.oncached = null;
|
| +
|
| cache.update()
|
| - assert_true(true, "update method test")
|
| - } catch (e) {
|
| - assert_unreached("update method failed.");
|
| +
|
| + t.done();
|
| + });
|
| +
|
| + if (cache.status === cache.IDLE) {
|
| + next();
|
| + } else {
|
| + cache.onnoupdate = cache.oncached = next;
|
| }
|
| });
|
| </script>
|
|
|