Bug 1229481 - Part 2: Remove assert_true be more flexible in VRSimluationDisplay.js draft
authorDaosheng Mu <daoshengmu@gmail.com>
Fri, 05 May 2017 18:54:37 +0800
changeset 574178 5fe906d018a97edd36ee0c4955c294bd0f5bce7c
parent 574177 db8d004d17d13a86042d45af7fed130e5100ca18
child 574179 e86cec6b4f96c824f3745c186aab02f5c649d810
child 574183 954c6b4be7b71ae4a456066342527b1d25f3381e
push id57594
push userbmo:dmu@mozilla.com
push dateMon, 08 May 2017 11:11:54 +0000
bugs1229481
milestone55.0a1
Bug 1229481 - Part 2: Remove assert_true be more flexible in VRSimluationDisplay.js MozReview-Commit-ID: 3AVacImUFKC
dom/vr/test/mochitest/VRSimulationDriver.js
--- a/dom/vr/test/mochitest/VRSimulationDriver.js
+++ b/dom/vr/test/mochitest/VRSimulationDriver.js
@@ -3,17 +3,16 @@ var VRServiceTest;
 var vrMockDisplay;
 
 var VRSimulationDriver = (function() {
 "use strict";
 
 var AttachWebVRDisplay = function() {
   var promise = VRServiceTest.attachVRDisplay("VRDisplayTest");
   promise.then(function (display) {
-    assert_true(display != null, "AttachWebVRDisplay should success.");
     vrMockDisplay = display;
   });
 
   return promise;
 };
 
 var SetVRDisplayPose = function(position,
                                 linearVelocity, linearAcceleration,