Update asyoutypeformatter_test.js
authorhagbard <david.beaumont+github@gmail.com>
Wed, 1 Apr 2015 13:50:34 +0000 (15:50 +0200)
committerYoungjae Shin <yj99.shin@samsung.com>
Tue, 9 Jun 2015 11:43:27 +0000 (20:43 +0900)
javascript/i18n/phonenumbers/asyoutypeformatter_test.js

index f892c51..1b70b28 100644 (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.