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

Unified Diff: chrome/test/data/extensions/management/uninstall_extension/background.js

Issue 10382149: Refactor the various ways to control what users can do to extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/management/uninstall_extension/background.js
===================================================================
--- chrome/test/data/extensions/management/uninstall_extension/background.js (revision 140193)
+++ chrome/test/data/extensions/management/uninstall_extension/background.js (working copy)
@@ -3,7 +3,7 @@
// found in the LICENSE file.
// The name of the extension to uninstall, from manifest.json.
-var EXPECTED_NAME = "Auto-Update Test";
+var EXPECTED_NAME = 'Auto-Update Test';
chrome.management.getAll(function(items) {
for (var i = 0; i < items.length; i++) {
@@ -13,9 +13,9 @@
chrome.test.assertEq(false, item.mayDisable);
chrome.management.uninstall(id, function() {
// Check that the right error occured.
- var expectedError = "Extension " + id + " can not be disabled by user";
+ var expectedError = 'Extension ' + id + ' cannot be modified by user';
chrome.test.assertEq(expectedError, chrome.extension.lastError.message);
- chrome.test.sendMessage("ready");
+ chrome.test.sendMessage('ready');
});
}
});

Powered by Google App Engine
This is Rietveld 408576698