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

Side by Side Diff: LayoutTests/storage/quota/durability-basics.html

Issue 1154573005: Expose Durable Storage API to script (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comment Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | Source/modules/quota/DEPS » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
jsbell 2015/08/03 19:57:41 Since this is not under http/tests this is implici
jsbell 2015/08/03 23:11:16 ... and this can be based on (and live with) the t
dgrogan 2015/08/06 23:52:01 Done.
2 <title>navigator.storage methods return promises that are fulfilled</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <script type="text/javascript">
jsbell 2015/08/03 19:57:41 No need for type here
dgrogan 2015/08/06 23:52:01 Done.
6
7 test(function() { assert_true(!!navigator.storage); }, "These tests requires nav igator.storage");
8
9 promise_test(function() {
10 var promise = navigator.storage.requestPersistent();
11 assert_true(promise instanceof Promise, "navigator.storage.requestPersistent () returned a Promise.")
12 return promise;
jsbell 2015/08/03 19:57:41 This looks like it's missing the test of the promi
dgrogan 2015/08/06 23:52:01 That was intentional, content/shell/browser/layout
13 }, "navigator.storage.requestPersistent returns a promise that resolves.");
14
15 promise_test(function() {
16 var promise = navigator.storage.persistentPermission();
17 assert_true(promise instanceof Promise, "navigator.storage.persistentPermiss ion() returned a Promise.")
18 return promise;
jsbell 2015/08/03 19:57:41 Ditto?
dgrogan 2015/08/06 23:52:01 Acknowledged.
19 }, "navigator.storage.persistentPermission returns a promise that resolves.");
20
21 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | Source/modules/quota/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698