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

Unified Diff: chrome/test/data/extensions/platform_apps/ephemeral_launcher/webstore_launch_app.js

Issue 1395043002: Remove ability for users to launch ephemeral apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/ephemeral_launcher/webstore_launch_app.js
diff --git a/chrome/test/data/extensions/platform_apps/ephemeral_launcher/webstore_launch_app.js b/chrome/test/data/extensions/platform_apps/ephemeral_launcher/webstore_launch_app.js
deleted file mode 100644
index 0c08950c1f5086f882ad32c6ec440b4b2fa7ac39..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/platform_apps/ephemeral_launcher/webstore_launch_app.js
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-var tests = [
-
- // Verifies that getEphemeralAppsEnabled() will return true.
- function canLaunchEphemeralApp() {
- chrome.webstorePrivate.getEphemeralAppsEnabled(
- callbackPass(function(isEnabled) {
- assertTrue(isEnabled);
- }));
- },
-
- // Verifies that launchEphemeralApp() will fail without a user gesture.
- function noUserGesture() {
- chrome.webstorePrivate.launchEphemeralApp(
- kDefaultAppId,
- callbackFail(kFeatureUserGestureError, function(result) {
- assertEq(kFeatureUserGestureCode, result);
- }));
- },
-
- // Test an attempt to launch an extension.
- function launchExtension() {
- chrome.test.runWithUserGesture(function() {
- chrome.webstorePrivate.launchEphemeralApp(
- kExtensionId,
- callbackFail(kUnsupportedExtensionTypeError, function(result) {
- assertEq(kUnsupportedExtensionTypeCode, result);
- }));
- });
- },
-
- // Test a successful ephemeral install and launch.
- function launchSuccess() {
- chrome.test.runWithUserGesture(function() {
- chrome.webstorePrivate.launchEphemeralApp(
- kDefaultAppId,
- callbackPass(function(result) {
- assertEq("success", result);
- }));
- });
- },
-
- // Verifies that launchEphemeralApp() will fail if a full install is in
- // progress.
- function pendingInstall() {
- // First initiate a full install of the app.
- var manifest = getManifest(kAppWithPermissionsManifestPath);
- chrome.webstorePrivate.beginInstallWithManifest3(
- { "id": kAppWithPermissionsId, "manifest": manifest },
- callbackPass(function(result) {
- assertEq(result, "");
-
- // Attempt to launch the app ephemerally.
- chrome.test.runWithUserGesture(function() {
- chrome.webstorePrivate.launchEphemeralApp(
- kAppWithPermissionsId,
- callbackFail(kInstallInProgressError, function(result) {
- assertEq(kInstallInProgressCode, result);
- }));
- });
- }));
- }
-
-];
-
-chrome.test.runTests(tests);

Powered by Google App Engine
This is Rietveld 408576698