gecko-dev/testing/web-platform/tests/webvr/webvr-supported-by-feature-policy.html
David Dorwin d142205ae3 Bug 1551753 [wpt PR 16722] - Restructure WebXR & WebVR Feature Policy tests, a=testonly
Automatic update from web-platform-tests
Restructure WebXR & WebVR Feature Policy tests

https://crrev.com/c/1387151 added a test to webvr/ that checks for "xr".
The WebVR API is obsolete, and only "vr" was used with it.

This CL copies the test for "xr" to the webxr/ tests and changes the
webvr/ test to check for "vr".

Change-Id: I0481afc1ad0c1445bf744c1b99307e482f2315af
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1600152
Reviewed-by: Ian Clelland <iclelland@chromium.org>
Commit-Queue: David Dorwin <ddorwin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#659077}

--

wpt-commits: 84e3d07c2b75862de916ce2ba3f3d2da659d6873
wpt-pr: 16722
2019-06-19 11:05:11 -07:00

12 lines
553 B
HTML

<!DOCTYPE html>
<title>Test that (obsolete) vr is advertised in the feature list</title>
<!-- Some WebVR implementations used "vr", but this is now obsolete and WebXR is moving in a different direction.-->>
<link rel="help" href="https://github.com/immersive-web/webxr/issues/308">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
assert_in_array('vr', document.featurePolicy.features());
}, 'document.featurePolicy.features should advertise (obsolete) vr.');
</script>