Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/browsers/offline/application-cache-api/api_update.html

Issue 2711183003: Import wpt@a7e9c2abcf65b78fcf1c246fec6681c74e1bc352 (Closed)
Patch Set: Update test expectations and baselines. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698