From 4924f38ead0418829be4292b15d9ffa3e67a1e5a Mon Sep 17 00:00:00 2001 From: hagbard Date: Wed, 1 Apr 2015 15:50:34 +0200 Subject: [PATCH] Update asyoutypeformatter_test.js --- javascript/i18n/phonenumbers/asyoutypeformatter_test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/javascript/i18n/phonenumbers/asyoutypeformatter_test.js b/javascript/i18n/phonenumbers/asyoutypeformatter_test.js index f892c51..1b70b28 100644 --- a/javascript/i18n/phonenumbers/asyoutypeformatter_test.js +++ b/javascript/i18n/phonenumbers/asyoutypeformatter_test.js @@ -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. -- 2.7.4