-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add estimate parameter to update_virtual_pressure_source #51194
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
Add estimate parameter to update_virtual_pressure_source #51194
Conversation
@foolip ptal. |
I think it's just that people are busy and haven't gotten around to reviewing this yet. I will try to get to it before the end of the week if nobody beats me to it. Have you looked at the infrastructure test failures? |
@past I don't see any obvious correlation between the infrastructure test failures and my patch. But I've tested this patch with my upcoming changes on Chromium and it seems to work as intended. I noticed that many other PR are failing on exactly the same infra tests. |
spec PR: w3c/compute-pressure#305 This PR add own pressure estimate parameter to the update_virtual_pressure_source command as specified in https://w3c.github.io/compute-pressure/?experimental=1#update-virtual-pressure-source
There was a clear mistake in updating update_virtual_sensor instead of update_virtual_pressure_source in testdriver-extra.js
d855392
to
455d6bf
Compare
#51306 has exactly the same amount of tests and same failures. |
@past apparently nobody beat you to it. :) |
@@ -468,8 +468,8 @@ | |||
return create_context_action("create_virtual_pressure_source", context, {source_type, metadata}); | |||
}; | |||
|
|||
window.test_driver_internal.update_virtual_pressure_source = function(source_type, sample, context=null) { | |||
return create_context_action("update_virtual_pressure_source", context, {source_type, sample}); | |||
window.test_driver_internal.update_virtual_pressure_source = function(source_type, sample, estimate = -1.0, context=null) { |
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.
Is -1.0 the right default value here? I couldn't tell from the spec why that would be the case.
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.
Agree! I removed it and checked it still works when rolling out in chromium.
Thanks
I agree that the infrastructure test failures are unrelated to this PR. |
…m-tests#51194) * Add estimate parameter to update_virtual_pressure_source spec PR: w3c/compute-pressure#305 This PR add own pressure estimate parameter to the update_virtual_pressure_source command as specified in https://w3c.github.io/compute-pressure/?experimental=1#update-virtual-pressure-source * Fix wrong update between sensor and pressure source There was a clear mistake in updating update_virtual_sensor instead of update_virtual_pressure_source in testdriver-extra.js * remove unnecessary default value * fix closing bracket * Fix wrong indent * remove default value for estimate
spec PR: w3c/compute-pressure#305
This PR add own pressure estimate parameter to the update_virtual_pressure_source command as specified in https://w3c.github.io/compute-pressure/?experimental=1#update-virtual-pressure-source