This CL is very similar to https://crrev.com/c/7021577. Restructuring the overall Promise flow will greatly improve the readability of the test.
await new Promise((resolve, reject) => {
Similar to the other CL we discussed:
```suggestion
const recordingPromise = await new Promise((resolve, reject) => {
```
context.resume().then(() => {
// Start playback after resume
const playPromise = audioElement.play();
```suggestion
await context.resume();
await audioElement.play();
const recordBuffer = await recordingPromise;
// Then do the verification here (L48~L56)
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Similar to the other CL, I don't have anything to add to Hongchan's comments on the Promise flow restructuring.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PTAL
This CL is very similar to https://crrev.com/c/7021577. Restructuring the overall Promise flow will greatly improve the readability of the test.
Acknowledged
await new Promise((resolve, reject) => {
Similar to the other CL we discussed:
```suggestion
const recordingPromise = await new Promise((resolve, reject) => {
```
Done
context.resume().then(() => {
// Start playback after resume
const playPromise = audioElement.play();
```suggestion
await context.resume();
await audioElement.play();
const recordBuffer = await recordingPromise;
// Then do the verification here (L48~L56)
```
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
LGTM with nits
context, `recorder-processor`, {channelCount: 4});
Similar to the other CL, use the template literal only when substitution is necessary.
if (event.data && event.data.type === `recordfinished`) {
Ditto.
assert_true(
channelData.some((v) => v !== 0),
`Recorded channel #${i}`);
}
I think we have implemented `notBeConstantValueOf` in audit-util.js. Can we use that instead?
}, `cross-origin redirect with CORS`);
Ditto.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |