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

Unified Diff: chrome/test/data/extensions/api_test/native_bindings/background.js

Issue 2657613005: [Extensions Bindings] Add chrome.runtime.lastError support (Closed)
Patch Set: . Created 3 years, 11 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/renderer/BUILD.gn » ('j') | extensions/renderer/api_last_error.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/native_bindings/background.js
diff --git a/chrome/test/data/extensions/api_test/native_bindings/background.js b/chrome/test/data/extensions/api_test/native_bindings/background.js
index bf18b8d4eda2823e45f2d3ed2670eff704bedd02..dc230271101baac896d147a23469845becf70cf9 100644
--- a/chrome/test/data/extensions/api_test/native_bindings/background.js
+++ b/chrome/test/data/extensions/api_test/native_bindings/background.js
@@ -86,6 +86,12 @@ var tests = [
tabId = tab.id;
});
},
+ function testLastError() {
+ chrome.runtime.setUninstallURL('chrome://newtab', function() {
+ chrome.test.assertLastError('Invalid URL: "chrome://newtab".');
+ chrome.test.succeed();
+ });
+ },
];
chrome.test.getConfig(config => {
« no previous file with comments | « no previous file | extensions/renderer/BUILD.gn » ('j') | extensions/renderer/api_last_error.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698