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

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

Issue 2616403002: Revert of Add more WebVR layout tests, adjust test format (Closed)
Patch Set: Created 3 years, 11 months 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/getLayers_notpresenting.html
diff --git a/third_party/WebKit/LayoutTests/vr/getLayers_notpresenting.html b/third_party/WebKit/LayoutTests/vr/getLayers_notpresenting.html
deleted file mode 100644
index 0e576be83592893dcd94d25c8d4e645335b2eb41..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/vr/getLayers_notpresenting.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="../resources/mojo-helpers.js"></script>
-<script src="resources/fake-vr-displays.js"></script>
-<script src="resources/mock-vr-service.js"></script>
-<canvas id="webgl-canvas"></canvas>
-<script src="resources/presentation-setup.js"></script>
-<script>
-let fakeDisplays = fakeVRDisplays();
-
-vr_test( (t) => {
- return navigator.getVRDisplays().then( (displays) => {
- var display = displays[0];
-
- t.step( () => {
- assert_equals(display.getLayers().length, 0);
- }, "No layers initially returned");
-
- runWithUserGesture( () => {
- display.requestPresent([{ source : webglCanvas }]).then( () => {
- display.exitPresent().then( () => {
- t.step( () => {
- assert_equals(display.getLayers().length, 0);
- }, "No layers returned after exiting");
- }, (err) => {
- t.step( () => {
- assert_unreached();
- }, "exitPresent failed");
- });
- }, (err) => {
- t.step( () => {
- assert_unreached();
- }, "requestPresent failed");
- }).then( () => {
- t.done();
- });
- });
- }, (err) => {
- t.step( () => {
- assert_unreached();
- }, "getVRDisplays rejected");
- t.done();
- });
-}, [fakeDisplays["Pixel"]],
-"Test getLayers returns an empty array when not presenting");
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698