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(); |
+ }); |
} |
]); |