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

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

Issue 384823002: Introduce a stable set of errors for inline install (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace printf with vlog(1) in unrelated code so it passes presubmit 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/api_test/webstore_inline_install/install_not_supported.html
diff --git a/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html b/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html
index f86fc40636cb17f32269587c7a868b9d0e8b3f1e..df51eba66a2c87dfd0ce2f05df7cd0950aa88fd4 100644
--- a/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html
+++ b/chrome/test/data/extensions/api_test/webstore_inline_install/install_not_supported.html
@@ -22,8 +22,9 @@
console.log('did not expect install success');
window.domAutomationController.send(false);
},
- function(error) {
- if (error.indexOf('not supported') != -1) {
+ function(error, errorCode) {
+ if (error.indexOf('not supported') != -1 &&
+ errorCode == 'notPermitted') {
console.log('Ran test, sending response');
window.domAutomationController.send(true);
console.log('Test complete');

Powered by Google App Engine
This is Rietveld 408576698