| Index: chrome/test/data/extensions/api_test/executescript/frame_id/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/executescript/frame_id/test.js b/chrome/test/data/extensions/api_test/executescript/frame_id/test.js
|
| index 6fa3f36ce8f0abde9a9b3527e90384f0bd02293b..46a1a5987b1b4645cadfa4d6c832a1013756343f 100644
|
| --- a/chrome/test/data/extensions/api_test/executescript/frame_id/test.js
|
| +++ b/chrome/test/data/extensions/api_test/executescript/frame_id/test.js
|
| @@ -244,9 +244,17 @@ function runTests(config) {
|
| 'executeScript should never have been executed!');
|
| });
|
| } catch (e) {
|
| - assertEq(
|
| - 'Invalid value for argument 2. Property \'frameId\': ' +
|
| - 'Value must not be less than 0.',
|
| + assertTrue(
|
| + // JS-based bindings.
|
| + e.message == 'Invalid value for argument 2. Property \'frameId\':' +
|
| + ' Value must not be less than 0.' ||
|
| + // Native bindings.
|
| + e.message == 'Error in invocation of tabs.executeScript(' +
|
| + 'optional integer tabId, ' +
|
| + 'extensionTypes.InjectDetails details, ' +
|
| + 'optional function callback): Error at parameter ' +
|
| + '\'details\': Error at property \'frameId\': ' +
|
| + 'Value must be at least 0.',
|
| e.message);
|
| chrome.test.succeed();
|
| }
|
| @@ -367,9 +375,17 @@ function runTests(config) {
|
| chrome.test.fail('insertCSS should never have been executed!');
|
| });
|
| } catch (e) {
|
| - assertEq(
|
| - 'Invalid value for argument 2. Property \'frameId\': ' +
|
| - 'Value must not be less than 0.',
|
| + assertTrue(
|
| + // JS-based bindings.
|
| + e.message == 'Invalid value for argument 2. Property \'frameId\':' +
|
| + ' Value must not be less than 0.' ||
|
| + // Native bindings.
|
| + e.message == 'Error in invocation of tabs.insertCSS(' +
|
| + 'optional integer tabId, ' +
|
| + 'extensionTypes.InjectDetails details, ' +
|
| + 'optional function callback): Error at parameter ' +
|
| + '\'details\': Error at property \'frameId\': ' +
|
| + 'Value must be at least 0.',
|
| e.message);
|
| chrome.test.succeed();
|
| }
|
|
|