| Auto-Submit | +1 |
Brian or Brandon PTAL; my goal is to request a merge of this once it gets into Canary.
Iker FYI
private void sendScreenTapToXrSession(These three methods are lifted from WebXrVrCardboardInputTest.java; as a followup I'll merge these into something on the XrTestFramework, but I'd like to keep this change reasonably scoped as I attempt to merge it back.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
LGTM % comments
Tests that AR hit test results are available in rAF as soon as hit test source is available.Comment needs to be updated?
hitTestSource = hts;Nit: Either use `hts` or name the parameter `hitTestSource` instead of taking `hts` and immediately renaming it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
Tests that AR hit test results are available in rAF as soon as hit test source is available.Comment needs to be updated?
Done
Nit: Either use `hts` or name the parameter `hitTestSource` instead of taking `hts` and immediately renaming it.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
3 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: chrome/test/data/xr/e2e_test_files/html/test_webxr_transient_hit_test_click.html
Insertions: 2, Deletions: 3.
@@ -1,5 +1,5 @@
<!--
-Tests that AR hit test results are available in rAF as soon as hit test source is available.
+Tests that AR transient hit test results are available in click event handlers.
-->
<html>
<head>
@@ -49,9 +49,8 @@
console.log('Requesting hit test source');
sessionInfo.currentSession.requestHitTestSourceForTransientInput({
profile: "generic-touchscreen"
- }).then((hts) => {
+ }).then((hitTestSource) => {
console.log('Got hit test source');
- hitTestSource = hts;
session.addEventListener('selectstart', (event) => {
if (hitTestSource && testState != TestState.Done) {
// This returns an array of results—one for each active touch point
```
Ensure that WebXR world state is updated for input events
Ensures that the WebXR frame has finished being processed before calling
any methods that potentially send out events to the page. This could
cause pages to operate on an old world state for the click and never get
the actual state of things. This was particularly true for transient hit
tests where the actual results are only present for the single frame and
therefore should be present in the click event that is causing there to
be a transient hit test result.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |