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

Side by Side Diff: chrome/test/data/extensions/api_test/webstore_private/common.js

Issue 7529011: Add a flag that lets the webstore show a different UI on app install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed files added in separate CL (r95432) Created 9 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 | « chrome/test/data/extensions/api_test/webstore_private/app_install_bubble.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The id of the extension we're using for install tests. 5 // The id of an extension we're using for install tests.
6 var extensionId = "enfkhcelefdadlmkffamgdlgplcionje"; 6 var extensionId = "enfkhcelefdadlmkffamgdlgplcionje";
7 7
8 // The id of an app we're using for install tests.
9 var appId = "iladmdjkfniedhfhcfoefgojhgaiaccc";
10
8 var assertEq = chrome.test.assertEq; 11 var assertEq = chrome.test.assertEq;
9 var assertNoLastError = chrome.test.assertNoLastError; 12 var assertNoLastError = chrome.test.assertNoLastError;
10 var callbackFail = chrome.test.callbackFail; 13 var callbackFail = chrome.test.callbackFail;
11 var callbackPass = chrome.test.callbackPass; 14 var callbackPass = chrome.test.callbackPass;
12 var listenOnce = chrome.test.listenOnce; 15 var listenOnce = chrome.test.listenOnce;
13 var runTests = chrome.test.runTests; 16 var runTests = chrome.test.runTests;
14 var succeed = chrome.test.succeed; 17 var succeed = chrome.test.succeed;
15 18
16 // Calls |callback| with true/false indicating whether an item with an id of 19 // Calls |callback| with true/false indicating whether an item with an id of
17 // extensionId is installed. 20 // extensionId is installed.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 return cachedManifest; 59 return cachedManifest;
57 60
58 // Do a synchronous XHR to get the manifest. 61 // Do a synchronous XHR to get the manifest.
59 var xhr = new XMLHttpRequest(); 62 var xhr = new XMLHttpRequest();
60 xhr.open("GET", 63 xhr.open("GET",
61 alternativePath ? alternativePath : "extension/manifest.json", 64 alternativePath ? alternativePath : "extension/manifest.json",
62 false); 65 false);
63 xhr.send(null); 66 xhr.send(null);
64 return xhr.responseText; 67 return xhr.responseText;
65 } 68 }
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/webstore_private/app_install_bubble.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698