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

Unified Diff: chrome/test/data/extensions/api_test/webstore_inline_install/install.html

Issue 7741037: Add WebstoreInlineInstaller (downloads store data, shows the install UI, and starts the install). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put webstore response in the right directory. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/webstore_inline_install/install.html
diff --git a/chrome/test/data/extensions/api_test/webstore_inline_install/install.html b/chrome/test/data/extensions/api_test/webstore_inline_install/install.html
index 2c7278baebee179993cfb0c023f7a8ab935100b1..73121f222f8c0b2e130951fb9cc575e9765ca077 100644
--- a/chrome/test/data/extensions/api_test/webstore_inline_install/install.html
+++ b/chrome/test/data/extensions/api_test/webstore_inline_install/install.html
@@ -1,12 +1,22 @@
<!DOCTYPE html>
<html>
<head>
- <link rel="chrome-webstore-item" href="http://cws.com/detail/mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm">
+ <link rel="chrome-webstore-item">
</head>
<body>
<script>
- function runTest() {
- chrome.webstore.install();
+ function runTest(galleryUrl) {
+ // Link URL has to be generated dynamically in order to include the right
+ // port number. The ID corresponds to the data in the "extension" directory.
+ document.getElementsByTagName('link')[0].href =
+ galleryUrl + '/detail/ecglahbcnmdpdciemllbhojghbkagdje';
+
+ try {
+ chrome.webstore.install();
+ } catch (e) {
+ window.domAutomationController.send(false);
+ throw e;
+ }
window.domAutomationController.send(true);
}
</script>
« no previous file with comments | « chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698