Home
last modified time | relevance | path

Searched refs:US_TOLLFREE (Results 1 – 2 of 2) sorted by relevance

/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil_test.js207 var US_TOLLFREE = new i18n.phonenumbers.PhoneNumber(); variable
208 US_TOLLFREE.setCountryCode(1);
209 US_TOLLFREE.setNationalNumber(8002530000);
364 assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(US_TOLLFREE));
399 assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(US_TOLLFREE));
658 assertEquals('800 253 0000', phoneUtil.format(US_TOLLFREE, PNF.NATIONAL));
660 '+1 800 253 0000', phoneUtil.format(US_TOLLFREE, PNF.INTERNATIONAL));
1128 phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.US, true));
1131 phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.CN, true));
1146 US_TOLLFREE, RegionCode.US, false));
[all …]
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java105 private static final PhoneNumber US_TOLLFREE = field in PhoneNumberUtilTest
289 assertEquals(0, phoneUtil.getLengthOfGeographicalAreaCode(US_TOLLFREE)); in testGetLengthOfGeographicalAreaCode()
329 assertEquals(3, phoneUtil.getLengthOfNationalDestinationCode(US_TOLLFREE)); in testGetLengthOfNationalDestinationCode()
494 assertEquals("800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.NATIONAL)); in testFormatUSNumber()
495 assertEquals("+1 800 253 0000", phoneUtil.format(US_TOLLFREE, PhoneNumberFormat.INTERNATIONAL)); in testFormatUSNumber()
827 phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.US, in testFormatNumberForMobileDialing()
829 assertEquals("", phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.CN, true)); in testFormatNumberForMobileDialing()
837 phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.US, in testFormatNumberForMobileDialing()
839 assertEquals("", phoneUtil.formatNumberForMobileDialing(US_TOLLFREE, RegionCode.CN, false)); in testFormatNumberForMobileDialing()
3143 assertFalse(phoneUtil.canBeInternationallyDialled(US_TOLLFREE)); in testCanBeInternationallyDialled()