Bug 905007 - Fix test_ril_worker_buf.js. r=vicamo

This commit is contained in:
Szu-Yu Chen [:aknow] 2013-08-14 16:45:27 +08:00
Родитель 71b08ea4dd
Коммит 66866967d3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -27,7 +27,7 @@ function add_test_incoming_parcel(parcel, handler) {
if (!parcel) { if (!parcel) {
parcel = newIncomingParcel(-1, parcel = newIncomingParcel(-1,
worker.RESPONSE_TYPE_UNSOLICITED, worker.RESPONSE_TYPE_UNSOLICITED,
worker.REQUEST_REGISTRATION_STATE, worker.REQUEST_VOICE_REGISTRATION_STATE,
[0, 0, 0, 0]); [0, 0, 0, 0]);
} }
@ -106,7 +106,7 @@ add_test(function test_incoming_parcel_buffer_overwritten() {
} }
// Do nothing in handleParcel(). // Do nothing in handleParcel().
let request = worker.REQUEST_REGISTRATION_STATE; let request = worker.REQUEST_VOICE_REGISTRATION_STATE;
worker.RIL[request] = null; worker.RIL[request] = null;
// Prepare two parcels, whose sizes are both smaller than the incoming buffer // Prepare two parcels, whose sizes are both smaller than the incoming buffer