| Index: chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| diff --git a/chrome/test/data/extensions/api_test/permissions/optional/background.js b/chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| index 2bf1e17b254872dd0f2489ead96c4565b05c9347..956b655aea1ce3234f9bce4c93246237fa61b0c6 100644
|
| --- a/chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| +++ b/chrome/test/data/extensions/api_test/permissions/optional/background.js
|
| @@ -196,9 +196,13 @@ chrome.test.getConfig(function(config) {
|
| }));
|
| assertTrue(typeof chrome.bookmarks == 'object' &&
|
| chrome.bookmarks != null);
|
| - assertThrows(
|
| - chrome.bookmarks.getTree, [function(){}],
|
| - "'bookmarks' requires a different Feature that is not present.");
|
| + var nativeBindingsError =
|
| + "'bookmarks.getTree' is not available in this context.";
|
| + var jsBindingsError =
|
| + "'bookmarks' requires a different Feature that is not present.";
|
| + var regexp =
|
| + new RegExp(nativeBindingsError + '|' + jsBindingsError);
|
| + assertThrows(chrome.bookmarks.getTree, [function(){}], regexp);
|
| }
|
| ));
|
| },
|
| @@ -295,9 +299,12 @@ chrome.test.getConfig(function(config) {
|
| function(permissions) {
|
| assertTrue(typeof chrome.bookmarks == 'object' &&
|
| chrome.bookmarks != null);
|
| - assertThrows(
|
| - chrome.bookmarks.getTree, [function(){}],
|
| - "'bookmarks' requires a different Feature that is not present.");
|
| + var nativeBindingsError =
|
| + "'bookmarks.getTree' is not available in this context.";
|
| + var jsBindingsError =
|
| + "'bookmarks' requires a different Feature that is not present.";
|
| + var regexp = new RegExp(nativeBindingsError + '|' + jsBindingsError);
|
| + assertThrows(chrome.bookmarks.getTree, [function(){}], regexp);
|
| });
|
|
|
| chrome.permissions.request(
|
|
|