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

Unified Diff: chrome/test/data/durable/durability-permissions.html

Issue 1294913009: Durable Storage: Add "deny" test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/durable/durability-permissions.html
diff --git a/chrome/test/data/durable/durability-window1.html b/chrome/test/data/durable/durability-permissions.html
similarity index 55%
rename from chrome/test/data/durable/durability-window1.html
rename to chrome/test/data/durable/durability-permissions.html
index 55c3f5d0aaf31e7af846267a9e9a8e60ba58990c..7bbd6737d50977de8d2ed8bcc9eae15faf70ab03 100644
--- a/chrome/test/data/durable/durability-window1.html
+++ b/chrome/test/data/durable/durability-permissions.html
@@ -7,4 +7,9 @@ function checkPermission() {
});
}
+function requestPermission() {
+ navigator.storage.requestPersistent().then(function(permission) {
jsbell 2015/08/19 21:21:55 nit: I guess this should be 'persistent' not 'perm
+ window.domAutomationController.send(permission);
+ });
+}
</script>
« no previous file with comments | « chrome/browser/storage/durable_storage_browsertest.cc ('k') | chrome/test/data/durable/durability-window1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698