Browse Source

Update asyoutypeformatter_test.js

pull/659/head
hagbard 11 years ago
parent
commit
d1a023e99b
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      javascript/i18n/phonenumbers/asyoutypeformatter_test.js

+ 4
- 2
javascript/i18n/phonenumbers/asyoutypeformatter_test.js View File

@ -1159,9 +1159,11 @@ function testAYTFClearNDDAfterIddExtraction() {
assertEquals('007', f.inputDigit('7'));
assertEquals('0070', f.inputDigit('0'));
assertEquals('00700', f.inputDigit('0'));
// NDD should be '0' at this stage.
// NDD is '0' at this stage (the first '0' in '00700') because it's not
// clear if the number is a national number or using the IDD to dial out.
assertEquals('00700 1 ', f.inputDigit('1'));
// NDD should be cleared here because IDD '1' was extracted.
// NDD should be cleared here because IDD '00700' was extracted after the
// country calling code '1' (US) was entered.
assertEquals('00700 1 2', f.inputDigit('2'));
// The remaining long sequence of inputs is because the original bug that
// this test if for only triggered after a lot of subsequent inputs.


Loading…
Cancel
Save