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

Unified Diff: chrome/test/data/extensions/api_test/webstore_inline_install/find_link.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
Index: chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html
diff --git a/chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html b/chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html
index 32efae4a5bb34f8b17ed712e18990f7ee98d3552..95710d2613cf4937097941608b0453ae7579549d 100644
--- a/chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html
+++ b/chrome/test/data/extensions/api_test/webstore_inline_install/find_link.html
@@ -21,7 +21,7 @@
}
}
- function runTest() {
+ function runTest(galleryUrl) {
// Definitely no link.
checkNoLinkFound(NO_LINK_EXCEPTION);
@@ -32,7 +32,7 @@
// Wrong type, right URL.
linkNode.rel = 'stylesheet';
- linkNode.href = 'http://cws.com/detail/mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm';
+ linkNode.href = galleryUrl + '/detail/mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm';
checkNoLinkFound(NO_LINK_EXCEPTION);
// Right type, wrong URL.
@@ -42,17 +42,17 @@
// Non-item CWS URL
linkNode.href =
- 'http://cws.com/someotherpage/mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm';
+ galleryUrl + '/someotherpage/mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm';
checkNoLinkFound(INVALID_URL_EXCEPTION);
// Invalid ID
linkNode.rel = 'chrome-webstore-item';
- linkNode.href = 'http://cws.com/detail/abc';
+ linkNode.href = galleryUrl + '/detail/abc';
checkNoLinkFound(INVALID_URL_EXCEPTION);
// Extra CWS URL parameters
linkNode.href =
- 'http://cws.com/detail/mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm?foo=bar';
+ galleryUrl + '/detail/mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm?foo=bar';
checkNoLinkFound(INVALID_URL_EXCEPTION);
// Successful installation is tested elsewhere

Powered by Google App Engine
This is Rietveld 408576698