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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/storage/durability-basics.html

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
Index: third_party/WebKit/LayoutTests/http/tests/storage/durability-basics.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/storage/durability-basics.html b/third_party/WebKit/LayoutTests/http/tests/storage/durability-basics.html
deleted file mode 100644
index 00fd1270b80df7bc3bdef836e41e810f350b804d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/storage/durability-basics.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<title>navigator.storage methods return promises that are fulfilled</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script>
-
-test(function() { assert_true(!!navigator.storage); },
- "These tests requires navigator.storage");
-
-promise_test(function() {
- var promise = navigator.storage.persist();
- assert_true(promise instanceof Promise,
- "navigator.storage.persist() 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 boolean");
- });
-}, "navigator.storage.persist returns a promise that resolves.");
-
-promise_test(function() {
- var promise = navigator.storage.persisted();
- assert_true(promise instanceof Promise,
- "navigator.storage.persisted() returned a Promise.");
- return promise.then(function (result) {
- // See comment above about why the result value isn't being tested here.
- assert_equals(typeof result, "boolean", result + " should be boolean");
- });
-}, "navigator.storage.persisted returns a promise that resolves.");
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698