Bug 785072 - Part 3: Marionette unit test. r=marshall_law
authorJose Antonio Olivera Ortega <josea.olivera@gmail.com>
Fri, 14 Sep 2012 12:30:59 +0200
changeset 107097 2de0cda36dae4587f3754429b34cff6cfd4975bb
parent 107096 9935e37117f5929fce34f2881ba2a7cdecbc6640
child 107098 e84c9f521388d672882fa16181d670a4c1fb85d4
push id23470
push userryanvm@gmail.com
push dateSat, 15 Sep 2012 01:09:09 +0000
treeherdermozilla-central@9fff2012b66c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarshall_law
bugs785072
milestone18.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 785072 - Part 3: Marionette unit test. r=marshall_law
dom/network/tests/marionette/test_mobile_iccinfo.js
--- a/dom/network/tests/marionette/test_mobile_iccinfo.js
+++ b/dom/network/tests/marionette/test_mobile_iccinfo.js
@@ -4,15 +4,19 @@
 MARIONETTE_TIMEOUT = 30000;
 
 SpecialPowers.addPermission("mobileconnection", true, document);
 
 let connection = navigator.mozMobileConnection;
 ok(connection instanceof MozMobileConnection,
    "connection is instanceof " + connection.constructor);
 
+// The emulator's hard coded iccid value.
+// See it here {B2G_HOME}/external/qemu/telephony/sim_card.c#L299.
+is(connection.iccInfo.iccid, 89014103211118510720);
+
 // The emulator's hard coded mcc and mnc codes.
 // See it here {B2G_HOME}/external/qemu/telephony/android_modem.c#L2465.
 is(connection.iccInfo.mcc, 310);
 is(connection.iccInfo.mnc, 260);
 
 SpecialPowers.removePermission("mobileconnection", document);
 finish();