Bug 859200 - Part 2 : update xpcshell tests. r=vicamo

This commit is contained in:
Yoshi Huang 2013-04-09 14:00:58 +08:00
parent 087d551937
commit a2a2b75830

View File

@ -522,7 +522,7 @@ add_test(function test_icc_get_card_lock_fdn() {
this.readUint32();
// String Array Length.
do_check_eq(this.readUint32(), 4);
do_check_eq(this.readUint32(), worker.RILQUIRKS_V5_LEGACY ? 3 : 4);
// Facility.
do_check_eq(this.readString(), ICC_CB_FACILITY_FDN);
@ -535,8 +535,10 @@ add_test(function test_icc_get_card_lock_fdn() {
ICC_SERVICE_CLASS_DATA |
ICC_SERVICE_CLASS_FAX).toString());
// AID. Ignore because it's from modem.
this.readUint32();
if (!worker.RILQUIRKS_V5_LEGACY) {
// AID. Ignore because it's from modem.
this.readUint32();
}
run_next_test();
};
@ -1931,8 +1933,10 @@ add_test(function test_update_adn_like() {
do_check_eq(this.readString(), "1111");
}
// AID. Ignore because it's from modem.
this.readUint32();
if (!worker.RILQUIRKS_V5_LEGACY) {
// AID. Ignore because it's from modem.
this.readUint32();
}
if (fileId == ICC_EF_FDN) {
run_next_test();