Bustage fix from bug 1074688 part 3, conflicting with another patch. Fix the mocking of the tests to fix stubbing. rs+a=bustage-fix
authorMark Banner <standard8@mozilla.com>
Thu, 06 Nov 2014 21:41:47 +0000
changeset 214475 b82e0ba1f833d0880fe7f8ac50ae176530abd773
parent 214474 85786620f4af73e074858da7cb03eeaae2e33f96
child 214476 8094e9f641e3940b9e45df2802625367ece3acd4
push id51494
push userkwierso@gmail.com
push dateFri, 07 Nov 2014 03:08:20 +0000
treeherdermozilla-inbound@c4b831696f15 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1074688
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bustage fix from bug 1074688 part 3, conflicting with another patch. Fix the mocking of the tests to fix stubbing. rs+a=bustage-fix
browser/components/loop/test/desktop-local/roomViews_test.js
--- a/browser/components/loop/test/desktop-local/roomViews_test.js
+++ b/browser/components/loop/test/desktop-local/roomViews_test.js
@@ -7,17 +7,24 @@ describe("loop.roomViews", function () {
 
   var sandbox, dispatcher, roomStore, activeRoomStore, fakeWindow;
 
   beforeEach(function() {
     sandbox = sinon.sandbox.create();
 
     dispatcher = new loop.Dispatcher();
 
-    fakeWindow = { document: {} };
+    fakeWindow = {
+      document: {},
+      navigator: {
+        mozLoop: {
+          getAudioBlob: sinon.stub()
+        }
+      }
+    };
     loop.shared.mixins.setRootObject(fakeWindow);
 
     // XXX These stubs should be hoisted in a common file
     // Bug 1040968
     sandbox.stub(document.mozL10n, "get", function(x) {
       return x;
     });