Chromium Code Reviews| 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..b3a8e81197ef0fc90173aa6573137f3239904eb4 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,15 @@ 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( |
| + e.message == 'Invalid value for argument 2. Property \'frameId\':' + |
|
lazyboy
2017/05/20 01:51:54
Here and below: add a comment saying which binding
Devlin
2017/05/23 22:29:56
Done.
|
| + ' Value must not be less than 0.' || |
| + 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 +373,15 @@ 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( |
| + e.message == 'Invalid value for argument 2. Property \'frameId\':' + |
| + ' Value must not be less than 0.' || |
| + 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(); |
| } |