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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/storage/storagemanager-persisted.https.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/external/wpt/storage/storagemanager-persisted.https.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/storage/storagemanager-persisted.https.html b/third_party/WebKit/LayoutTests/external/wpt/storage/storagemanager-persisted.https.html
new file mode 100644
index 0000000000000000000000000000000000000000..1d88c11bd8aace12223fb94845f1fb270a7b8877
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/external/wpt/storage/storagemanager-persisted.https.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>StorageManager: persist()</title>
+<meta name="help" href="https://storage.spec.whatwg.org/#dom-storagemanager-persist">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+
+promise_test(function() {
+ var promise = navigator.storage.persisted();
+ assert_true(promise instanceof Promise,
+ 'navigator.storage.persisted() returned a Promise.');
+ return promise.then(function (result) {
+ 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