-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playwright Test Suite: realtime-sine (MVP) #372
Conversation
…-test # Conflicts: # src/tests/playwright/pages/realtime-sine.html
Co-authored-by: terryzfeng <[email protected]>
…ffline audio buffer comparison Co-authored-by: kizjkre <[email protected]>
feat: add beCloseTo impl feat: impl buffer comparison and graph evaluation refactor: realtimeSine test, recorder-main, etc. test: add dsp graph eval test
remove: unnecessary run.py
Co-authord-by: Kizjkre <[email protected]>
Co-authored-by: Kizjkre <[email protected]>
Co-authored-by: terryzfeng <[email protected]>
Co-authored-by: terryzfeng <[email protected]>
…samples into playwright-mvp
Co-authored-by: terryzfeng <[email protected]>
We will cut down the tests to only |
Thanks for the updates and clear communication! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great!
My comments are mostly for style and naming. It should be trivial to address them.
A few general suggestions on some important terms:
- buffer - AudioBuffer, float32array - ChannelData
- length - discrete size (e.g. buffer size, sample count), duration - time (e.g. seconds)
I think this principal generally works consistently in this repo and Chromium WebAudio WPTs. Of course we can have a discussion on this topic because the most of convention is something I created over time.
Co-authored-by: terryzfeng <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My focus is to make the future maintenance easier by clarifying names and adding comments. We are very close to landing this - thanks for your patience!
Co-authored-by: Kizjkre <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with a nit - you don't need another review. Just fix the nit and merge the PR.
Thanks for being patient and I am happy to see the team work in this PR! :)
Co-authored-by: terryzfeng <[email protected]>
Co-authored-by: terryzfeng <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed! @hoch, can you merge if you see fit?
Done! Thanks for working on this @Kizjkre and @terryzfeng! 🚀 |
This PR Implements the "realtime-sine" test with basic infrastructure/framework.
Instruction for local testing
npm install
npx playwright install
npm run test
ornpm run test-live
npm run test
for Playwright tests.npm run test-live
for live suite; after the comment, open up a browser and go tolocalhost:8080
.The test result looks like this for

npm run test
:The test result looks like this for

npm run test-live
: