mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
d142205ae3
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
12 lines
553 B
HTML
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>
|