DescriptionRefactor audio API tests
Instead of using custom messages to send test reuslts from test
app to test runner for tests for API events, use standard
extensions::ResultCatcher to get results - it workss better with
chrome.test.assert methods and produces better failure messages.
Use chrome.test.listenOnce to register event listeners in tests.
Note that there is no need for chrome.test.succeed for test cases
using listenOnce - it will get called once listener is run (unless
listener function asserts, in which case test will fail).
Refactors audio/test.js - added helper methods for testing
relevant properties of devices returned by chrome.audio.getInfo to
make expectations a bit easier to specify/understand.
The refactored test are less dependent on exact order in which
audio devices are reported in device list (as the order is of no
relevance).
Committed: https://crrev.com/65dca4379e4a31128c1328c6d5e6b83840b4f9da
Cr-Commit-Position: refs/heads/master@{#429678}
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : Refactor audio API tests #Patch Set 4 : Refactor audio API tests #Patch Set 5 : . #
Total comments: 2
Patch Set 6 : Refactor audio API tests #
Messages
Total messages: 23 (16 generated)
|