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

Unified Diff: chrome/test/data/extensions/api_test/runtime/uninstall_url/test.js

Issue 1282263002: Restrict chrome.runtime.setUninstallURL to http(s) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small cleanup Created 5 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 | « no previous file | extensions/browser/api/runtime/runtime_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/runtime/uninstall_url/test.js
diff --git a/chrome/test/data/extensions/api_test/runtime/uninstall_url/test.js b/chrome/test/data/extensions/api_test/runtime/uninstall_url/test.js
index 5d42e56f4e14c739ed9649fc5320fee0779e5900..2d203b90c84d477d76b05883deb3da092256c746 100644
--- a/chrome/test/data/extensions/api_test/runtime/uninstall_url/test.js
+++ b/chrome/test/data/extensions/api_test/runtime/uninstall_url/test.js
@@ -28,5 +28,17 @@ chrome.test.runTests([
}
chrome.test.assertTrue(uninstalled);
});
+ },
+ function setEmptyUrl() {
+ chrome.runtime.setUninstallURL('', function() {
+ chrome.test.assertNoLastError();
+ chrome.test.succeed();
+ });
+ },
+ function uninstallInvalidURLNonHttpOrHttps() {
+ chrome.runtime.setUninstallURL('chrome://newtab', function() {
+ chrome.test.assertLastError('Invalid URL: "chrome://newtab".');
+ chrome.test.succeed();
+ });
}
]);
« no previous file with comments | « no previous file | extensions/browser/api/runtime/runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698