Bug 917630 - Allow unlimited keypresses when on a call

On Fri, Jun 13, 2014 at 5:45 AM, Etienne Segonzac <notifications@github.com>
wrote:

> In apps/communications/dialer/test/unit/keypad_test.js:
>
> > @@ -174,6 +174,29 @@ suite('dialer/keypad', function() {
> >        assert.equal(subject._phoneNumber, recentCall.number);
> >      });
> >
> > +    test('Dialer is limited to 50 digits', function() {
> > +      var digits = '111111111122222222223333333333
> 444444444455555555556';
> > +      var fakeEvent = {
> > +        target: {
> > +          dataset: {
> > +            value: null
> > +          }
> > +        },
> > +      stopPropagation: function() {},
> > +      type: null
> > +      };
> > +
> > +      subject._phoneNumber = '';
>
> do you really need this?
> (it should be empty at the beginning of the test or something isn't tear
> down properly)
>
Without it, it the '6666666666' number from the previous test is still part
of _phoneNumber, though perhaps it won't be necessary with checking
phoneNumberView.value (but see below...)