зеркало из https://github.com/mozilla/gecko-dev.git
Bustage fix from bug 1074688 part 3, conflicting with another patch. Fix the mocking of the tests to fix stubbing. rs+a=bustage-fix
This commit is contained in:
Родитель
df283f208a
Коммит
d30c5fd387
|
@ -12,7 +12,14 @@ describe("loop.roomViews", function () {
|
|||
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче