From: hagbard Date: Wed, 1 Apr 2015 13:50:34 +0000 (+0200) Subject: Update asyoutypeformatter_test.js X-Git-Tag: upstream/7.0.6~14 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Flibphonenumber.git;a=commitdiff_plain;h=4924f38ead0418829be4292b15d9ffa3e67a1e5a Update asyoutypeformatter_test.js --- 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.