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

Unified Diff: chrome/test/data/extensions/api_test/management/test/basics.js

Issue 980353003: Extensions: Switch to new permission message system, part I (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 years, 9 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/management/test/basics.js
diff --git a/chrome/test/data/extensions/api_test/management/test/basics.js b/chrome/test/data/extensions/api_test/management/test/basics.js
index e86378fba509827fbe83414703c5eb3724dafb2c..d9ccf31db9cbcddc27d222aaf16950d0d90a5e3e 100644
--- a/chrome/test/data/extensions/api_test/management/test/basics.js
+++ b/chrome/test/data/extensions/api_test/management/test/basics.js
@@ -109,13 +109,15 @@ var tests = [
manifest_str, callback(function(warnings) {
// Warning for "tabs" is suppressed by "history" permission.
chrome.test.assertEq(4, warnings.length);
- chrome.test.assertEq(
- "Read and change your data on all flickr.com sites and api.flickr.com",
- warnings[0]);
- chrome.test.assertEq("Read and change your bookmarks", warnings[1]);
- chrome.test.assertEq("Detect your physical location", warnings[2]);
- chrome.test.assertEq("Read and change your browsing history",
- warnings[3]);
+ chrome.test.assertTrue(warnings.indexOf(
+ "Read and change your data on all flickr.com sites and api.flickr.com")
+ != -1);
+ chrome.test.assertTrue(warnings.indexOf(
+ "Read and change your bookmarks") != -1);
+ chrome.test.assertTrue(warnings.indexOf(
+ "Detect your physical location") != -1);
+ chrome.test.assertTrue(
+ warnings.indexOf("Read and change your browsing history") != -1);
}));
chrome.management.getAll(callback(function(items) {

Powered by Google App Engine
This is Rietveld 408576698