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

Unified Diff: third_party/WebKit/LayoutTests/vr/exitPresent_resolve.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/exitPresent_resolve.html
diff --git a/third_party/WebKit/LayoutTests/vr/exitPresent_resolve.html b/third_party/WebKit/LayoutTests/vr/exitPresent_resolve.html
deleted file mode 100644
index e0410699dc8c697fe8c8cc636b8a4310b11bd9d0..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/vr/exitPresent_resolve.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) => {
- let display = displays[0];
-
- runWithUserGesture( () => {
- display.requestPresent([{ source : webglCanvas }]).then( () => {
- t.step( () => {
- assert_true(display.isPresenting);
- }, "Present request succeeded");
- }, (err) => {
- t.step( () => {
- assert_unreached(err);
- }, "Present request rejected");
- }).then( () => {
- display.exitPresent().then( () => {
- t.step( () => {
- assert_false(display.isPresenting);
- }, "Display should no longer be presenting");
- }, (err) => {
- t.step( () => {
- assert_unreached(err);
- }, "Should never reach here");
- }).then( () => {
- t.done();
- });
- });
- });
- }, (err) => {
- t.step( () => {
- assert_unreached(err);
- }, "getVRDisplays rejected");
- t.done();
- });
-}, [fakeDisplays["Pixel"]],
-"Test exitPresent resolves");
-
-</script>

Powered by Google App Engine
This is Rietveld 408576698