Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: third_party/WebKit/LayoutTests/vr/no_vrdisplays_test.html

Issue 2599113002: Add the first layout tests for WebVR to test navigator.getVRDisplays with mocked vr_service mojo in… (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/vr/no_vrdisplays_test.html
diff --git a/third_party/WebKit/LayoutTests/vr/no_vrdisplays_test.html b/third_party/WebKit/LayoutTests/vr/no_vrdisplays_test.html
new file mode 100644
index 0000000000000000000000000000000000000000..a104189b40dd3eecd56c3c74e874573e50cde2e2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/vr/no_vrdisplays_test.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../resources/mojo-helpers.js"></script>
+<script src="resources/mock-vr-service.js"></script>
+<script>
+
+vr_test(() => {
+ return navigator.getVRDisplays().then(devices => {
+ assert_true(devices != null);
+ assert_equals(0, devices.length);
+ });
+}, null, 'test no VRDisplay');
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698