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

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/filesystem/shared_worker/single/embedder.js

Issue 338353007: Implementation of shared worker code path for WebView file system permission. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_sharedworker
Patch Set: Small changes are made. Created 6 years, 5 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/extensions/platform_apps/web_view/filesystem/shared_worker/single/embedder.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/filesystem/main/embedder.js b/chrome/test/data/extensions/platform_apps/web_view/filesystem/shared_worker/single/embedder.js
similarity index 89%
copy from chrome/test/data/extensions/platform_apps/web_view/filesystem/main/embedder.js
copy to chrome/test/data/extensions/platform_apps/web_view/filesystem/shared_worker/single/embedder.js
index 901678faad9e6bc9112de374869ae258ea2afe00..db2b92f3686eae4666c9b8a2ffdb303efbe5fe16 100644
--- a/chrome/test/data/extensions/platform_apps/web_view/filesystem/main/embedder.js
+++ b/chrome/test/data/extensions/platform_apps/web_view/filesystem/shared_worker/single/embedder.js
@@ -24,8 +24,8 @@ window.runTest = function(testName) {
embedder.setUp_ = function(config) {
embedder.baseGuestURL = 'http://localhost:' + config.testServer.port;
embedder.guestURL = embedder.baseGuestURL +
- '/extensions/platform_apps/web_view/filesystem/main' +
- '/guest_main.html';
+ '/extensions/platform_apps/web_view/filesystem/shared_worker/single' +
+ '/guest_shared_worker.html';
chrome.test.log('Guest url is: ' + embedder.guestURL);
};
@@ -116,8 +116,8 @@ embedder.assertCorrectEvent_ = function(e) {
// The embedder has to initiate a post message so that the guest can get a
// reference to embedder to send the reply back.
-// Loads a guest which requests filesystem. The embedder explicitly
-// allows acccess to filesystem for the guest.
+// Loads a guest which create a shared worker to request filesystem. The
+// embedder explicitly allows acccess to filesystem for the guest.
function testAllow() {
var webview = embedder.setUpGuest_();
@@ -133,8 +133,8 @@ function testAllow() {
webview, ['test1', 'access-granted']);
}
-// Loads a guest which requests filesystem. The embedder explicitly
-// denies access to filesystem for the guest.
+// Loads a guest which creates a shared worker to request filesystem. The
+// embedder explicitly denies access to filesystem for the guest.
function testDeny() {
var webview = embedder.setUpGuest_();
@@ -150,9 +150,9 @@ function testDeny() {
webview, ['test2', 'access-denied']);
}
-// Loads a guest which requests filesystem. The embedder does not
-// perform an explicit action, and the default permission according
-// to cookie setting is allowed.
+// Loads a guest which creates a shared worker to request filesystem. The
+// embedder does not perform an explicit action, and the default permission
+// according to cookie setting is allowed.
function testDefaultAllow() {
var webview = embedder.setUpGuest_();

Powered by Google App Engine
This is Rietveld 408576698