| Issue 1308: | [CTS Fail] "android.telephony.cts.PhoneNumberUtilsTest" is always fail at KT. | |
| 1 person starred this issue and may be notified of changes. | Back to list |
There is always CTS-FAIL problems at PhoneNumberUtilsTest in new CTS Version in case of KT.
But, there is always CTS-SUCCESS in old versions.
Here is your old version.
assertFalse(PhoneNumberUtils.isWellFormedSmsAddress("android"));
but you add code in new version as below
// KT allow a to be a dialable character, the network portion of 'android' is 'a'
if (TelephonyUtils.isKt(tm)) {
assertTrue(PhoneNumberUtils.isWellFormedSmsAddress("android"));
} else {
assertFalse(PhoneNumberUtils.isWellFormedSmsAddress("android"));
}
why did you add this code?
PhoneNumberUtils.isWellFormedSmsAddress() returns true when allow to be a dialable character that means numeral(0~9), +, # and *. also it returns FALSE except for that.
but in code you add, that is, in case of PhoneNumberUtils.isWellFormedSmsAddress("android"), it returns always FALSE because "android" is not character to be able to be dialed.
so, "android.telephony.cts.PhoneNumberUtilsTest" is always fail at KT.
Thanks you.
Mar 27, 2012
#1
sop@google.com
Status:
Invalid
Mar 27, 2012
I submit this issue at code.google.com/p/android/ thank you. |
|
| ► Sign in to add a comment |