Bug 935402 - Part 2: Modify xpcshell test for EF_PBR. r=yoshi

This commit is contained in:
Georgia Wang 2013-11-18 15:06:58 +08:00
parent 1f8cf1eb83
commit 141cbf3ec3

View File

@ -937,16 +937,24 @@ add_test(function test_read_pbr() {
let successCb = function successCb(pbrs) {
do_check_eq(pbrs[0].adn.fileId, 0x4f3a);
do_check_eq(pbrs.length, 1);
run_next_test();
};
let errorCb = function errorCb(errorMsg) {
do_print("Reading EF_PBR failed, msg = " + errorMsg);
do_check_true(false);
run_next_test();
};
record.readPBR(successCb, errorCb);
// Check cache pbrs when 2nd call
let ifLoadEF = false;
io.loadLinearFixedEF = function fakeLoadLinearFixedEF(options) {
ifLoadEF = true;
}
record.readPBR(successCb, errorCb);
do_check_false(ifLoadEF);
run_next_test();
});
/**