Bug 938466 - Part 3: Modify xpcshell BIP test case. r=yoshi
☠☠ backed out by 9dac35f8c17a ☠ ☠
authorGeorgia Wang <gwang@mozilla.com>
Thu, 14 Nov 2013 11:31:50 +0800
changeset 157743 abf315caa163cc34afe5158aa905ccca70f1524b
parent 157742 8ef36d96a366802261cb4982cf8ed3fb43163f5a
child 157744 274255d4107d6b75825bd981a692b97b84b84b02
push id25722
push useremorley@mozilla.com
push dateWed, 27 Nov 2013 16:45:44 +0000
treeherdermozilla-central@5eb1c89fc2bc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyoshi
bugs938466
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 938466 - Part 3: Modify xpcshell BIP test case. r=yoshi
dom/system/gonk/tests/test_ril_worker_stk.js
--- a/dom/system/gonk/tests/test_ril_worker_stk.js
+++ b/dom/system/gonk/tests/test_ril_worker_stk.js
@@ -812,17 +812,17 @@ add_test(function test_stk_proactive_com
   let pduHelper = worker.GsmPDUHelper;
   let berHelper = worker.BerTlvHelper;
   let stkHelper = worker.StkProactiveCmdHelper;
 
   // Open Channel
   let open_channel = [
     0xD0,
     0x0F,
-    0x81, 0x03, 0x01, 0x16, 0x00,
+    0x81, 0x03, 0x01, 0x40, 0x00,
     0x82, 0x02, 0x81, 0x82,
     0x85, 0x04, 0x4F, 0x70, 0x65, 0x6E //alpha id: "Open"
   ];
 
   for (let i = 0; i < open_channel.length; i++) {
     pduHelper.writeHexOctet(open_channel[i]);
   }
 
@@ -835,17 +835,17 @@ add_test(function test_stk_proactive_com
 
   tlv = stkHelper.searchForTag(COMPREHENSIONTLV_TAG_ALPHA_ID, ctlvs);
   do_check_eq(tlv.value.identifier, "Open");
 
   // Close Channel
   let close_channel = [
     0xD0,
     0x10,
-    0x81, 0x03, 0x01, 0x17, 0x00,
+    0x81, 0x03, 0x01, 0x41, 0x00,
     0x82, 0x02, 0x81, 0x82,
     0x85, 0x05, 0x43, 0x6C, 0x6F, 0x73, 0x65 //alpha id: "Close"
   ];
 
   for (let i = 0; i < close_channel.length; i++) {
     pduHelper.writeHexOctet(close_channel[i]);
   }
 
@@ -858,17 +858,17 @@ add_test(function test_stk_proactive_com
 
   tlv = stkHelper.searchForTag(COMPREHENSIONTLV_TAG_ALPHA_ID, ctlvs);
   do_check_eq(tlv.value.identifier, "Close");
 
   // Receive Data
   let receive_data = [
     0XD0,
     0X12,
-    0x81, 0x03, 0x01, 0x18, 0x00,
+    0x81, 0x03, 0x01, 0x42, 0x00,
     0x82, 0x02, 0x81, 0x82,
     0x85, 0x07, 0x52, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65 //alpha id: "Receive"
   ];
 
   for (let i = 0; i < receive_data.length; i++) {
     pduHelper.writeHexOctet(receive_data[i]);
   }
 
@@ -881,17 +881,17 @@ add_test(function test_stk_proactive_com
 
   tlv = stkHelper.searchForTag(COMPREHENSIONTLV_TAG_ALPHA_ID, ctlvs);
   do_check_eq(tlv.value.identifier, "Receive");
 
   // Send Data
   let send_data = [
     0xD0,
     0x0F,
-    0x81, 0x03, 0x01, 0x19, 0x00,
+    0x81, 0x03, 0x01, 0x43, 0x00,
     0x82, 0x02, 0x81, 0x82,
     0x85, 0x04, 0x53, 0x65, 0x6E, 0x64 //alpha id: "Send"
   ];
 
   for (let i = 0; i < send_data.length; i++) {
     pduHelper.writeHexOctet(send_data[i]);
   }