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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/storage/resources/durability-worker.js

Issue 2805353003: Upstream navigator.storage.persist()/persisted() tests to WPT (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/storage/durability-workers.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/storage/resources/durability-worker.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/storage/resources/durability-worker.js b/third_party/WebKit/LayoutTests/http/tests/storage/resources/durability-worker.js
deleted file mode 100644
index 79224a314d83fd66ab8f686e45d26facdd6c5802..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/storage/resources/durability-worker.js
+++ /dev/null
@@ -1,21 +0,0 @@
-importScripts("/resources/testharness.js");
-
-test(function() { assert_true("storage" in navigator); },
- "These worker tests require navigator.storage");
-
-test(function() { assert_false("persist" in navigator.storage); },
- "navigator.storage.persist should not exist in workers");
-
-promise_test(function() {
- var promise = navigator.storage.persisted();
- assert_true(promise instanceof Promise,
- "navigator.storage.persisted() returned a Promise.");
- return promise.then(function (result) {
- // Layout tests get canned results, not the value per spec. So testing
- // their values here would only be testing our test plumbing. But we can
- // test that the type of the returned value is correct.
- assert_equals(typeof result, "boolean", result + " should be a boolean");
- });
-}, "navigator.storage.persisted returns a promise that resolves.");
-
-done();
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/storage/durability-workers.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698