Skip to content

Cleanup/shared #513

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

flashdesignory
Copy link
Contributor

Cleanup as a result from comments in this pr: #509

resources/shared/helpers.mjs:

  • update descriptions
  • rename getParent to recursivelyQuerySelector

resources/shared/test-invoker.mjs:

  • move start method into TestInvoker and remove BaseRAFTestInvoker class

resources/shared/benchmark.mjs

  • rename runAndRecord, to be more specific
  • rename BenchmarkSuite.tests to BenchmarkSuite.steps

Open discussion:
resources/shared/benchmark.mjs - forward url params (current implementation), or grab from top.location.search?

pros: nicer to debug, since you can see the full url of the workload (including params)
cons: we have to propagate and forward the query string from the main document

Follow up:
run build scripts of postmessage enabled workloads

Copy link

netlify bot commented May 23, 2025

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit 67d1e56
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/6830e1a0c79ac8000829156c
😎 Deploy Preview https://deploy-preview-513--webkit-speedometer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@julienw julienw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't tried to run it but this looks reasonable

@@ -13,7 +13,7 @@ export class BenchmarkStep {
this.run = run;
}

async runAndRecord(params, suite, test, callback) {
async runAndRecordStep(params, suite, test, callback) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this one be "Test" instead of "Step"??

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the new comments, that's super useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants