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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset=utf-8>
3 <title>StorageManager: persist()</title>
4 <meta name="help" href="https://storage.spec.whatwg.org/#dom-storagemanager-pers ist">
5 <script src="/resources/testharness.js"></script>
6 <script src="/resources/testharnessreport.js"></script>
7 <script>
8
9 promise_test(function() {
10 var promise = navigator.storage.persisted();
11 assert_true(promise instanceof Promise,
12 'navigator.storage.persisted() returned a Promise.');
13 return promise.then(function (result) {
14 assert_equals(typeof result, 'boolean', result + ' should be boolean');
15 });
16 }, 'navigator.storage.persisted() returns a promise that resolves.');
17
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698