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

Side by Side Diff: third_party/WebKit/LayoutTests/vr/exitPresent_reject_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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/vr/exitPresent_resolve.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <script src="../resources/mojo-helpers.js"></script>
5 <script src="resources/fake-vr-displays.js"></script>
6 <script src="resources/mock-vr-service.js"></script>
7 <canvas id="webgl-canvas"></canvas>
8 <script src="resources/presentation-setup.js"></script>
9 <script>
10 let fakeDisplays = fakeVRDisplays();
11
12 vr_test( (t) => {
13 return navigator.getVRDisplays().then( (displays) => {
14 var display = displays[0];
15
16 return display.exitPresent().then( () => {
17 t.step( () => {
18 assert_unreached();
19 }, "exitPresent succeeded unexpectedly");
20 }, (err) => {
21 t.step( () => {
22 assert_true(err instanceof DOMException);
23 assert_equals(err.name, "InvalidStateError");
24 assert_false(display.isPresenting);
25 }, "Request rejected properly");
26 }).then( () => {
27 t.done();
28 });
29 }, (err) => {
30 t.step( () => {
31 assert_unreached(err);
32 }, "getVRDisplays rejected");
33 t.done()
34 });
35 }, [fakeDisplays["Pixel"]],
36 "Test exitPresent rejects if not presenting");
37
38 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/vr/exitPresent_resolve.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698