Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12727 from etiennesegonzac/bug-924233-dialer-part
Browse files Browse the repository at this point in the history
Bug 924233 - Fixing a test failure when TelephonyHelperTest was run alone. r=Rik
  • Loading branch information
etiennesegonzac committed Oct 11, 2013
2 parents eb969da + 7bde975 commit ee8bf97
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/communications/dialer/test/unit/telephony_helper_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ suite('telephony helper', function() {
var subject;
var realMozTelephony;
var realMozMobileConnection;
var realMozL10n;
var spyConfirmShow;
var mockTelephony;

Expand All @@ -38,11 +39,15 @@ suite('telephony helper', function() {

realMozMobileConnection = navigator.mozMobileConnection;
navigator.mozMobileConnection = MockMozMobileConnection;

realMozL10n = navigator.mozL10n;
navigator.mozL10n = MockMozL10n;
});

suiteTeardown(function() {
navigator.mozTelephony = realMozTelephony;
navigator.mozMobileConnection = realMozMobileConnection;
navigator.mozL10n = realMozL10n;
});

setup(function() {
Expand Down

0 comments on commit ee8bf97

Please sign in to comment.