Bug 838096 - Part 5: Modify test_update_network_name. r=allstars.chh
authorEdgar Chen <echen@mozilla.com>
Wed, 06 Feb 2013 17:42:10 +0800
changeset 131012 868939d72f574cd8bc00df250cb3b92308b4d411
parent 131011 581ef9ed708d47aa28d6950d37e72a4bdd075e5c
child 131013 3fbeb63f145750178c51b5d65b7045c54a7d54c0
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersallstars
bugs838096
milestone21.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 838096 - Part 5: Modify test_update_network_name. r=allstars.chh
dom/system/gonk/tests/test_ril_worker_icc.js
--- a/dom/system/gonk/tests/test_ril_worker_icc.js
+++ b/dom/system/gonk/tests/test_ril_worker_icc.js
@@ -1161,18 +1161,18 @@ add_test(function test_update_network_na
   }
 
   function testNetworkName(operatorMcc, operatorMnc,
                             expectedLongName, expectedShortName) {
     RIL.operator.mcc = operatorMcc;
     RIL.operator.mnc = operatorMnc;
     let result = RIL.updateNetworkName();
 
-    do_check_eq(result[0], expectedLongName);
-    do_check_eq(result[1], expectedShortName);
+    do_check_eq(result.fullName, expectedLongName);
+    do_check_eq(result.shortName, expectedShortName);
   }
 
   // Before EF_OPL and EF_PNN have been loaded.
   do_check_eq(RIL.updateNetworkName(), null);
 
   // Set HPLMN
   RIL.iccInfo.mcc = 123;
   RIL.iccInfo.mnc = 456;