Succeed only once in terminal private api settingsTest()
`chrome.test.callbackPass()` call `chrome.test.succeed()` automatically, so `settingsTest()` was actually calling `succeed()` twice. Also, calling `callbackPass()` inside a callback function seems to be a bad idea. For example, the test could succeed prematurely if the callback is not called in time. Change-Id: I6d46337db933e515551a1c172ad072ac92abe9bf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522715 Auto-Submit: Jason Lin <lxj@google.com> Commit-Queue: Joel Hockey <joelhockey@chromium.org> Reviewed-by:Joel Hockey <joelhockey@chromium.org> Cr-Commit-Position: refs/heads/master@{#825223}
Showing
Please register or sign in to comment