Bug 1013153 - Part 2: test cases for mvno type 'spn'. r=hsinyi
authorJessica Jong <jjong@mozilla.com>
Tue, 01 Jul 2014 02:10:00 +0200
changeset 191891 92e92c0cd9876ffe009645bf9fe8b92cc64f1996
parent 191890 e71a17dfed283edbf39e5c2af287742bb6ae6c87
child 191892 1056a35af1c4ad2608f998917c72417bb743c09d
push id45685
push usercbook@mozilla.com
push dateWed, 02 Jul 2014 13:09:48 +0000
treeherdermozilla-inbound@60133a85f8ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1013153
milestone33.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 1013153 - Part 2: test cases for mvno type 'spn'. r=hsinyi
dom/icc/tests/marionette/test_icc_match_mvno.js
--- a/dom/icc/tests/marionette/test_icc_match_mvno.js
+++ b/dom/icc/tests/marionette/test_icc_match_mvno.js
@@ -12,18 +12,21 @@ let testCases = [
   ["imsi", "31026xx0",           true, true               ],
   ["imsi", "310260x0x",          true, true               ],
   ["imsi", "310260X00",          true, true               ],
   ["imsi", "310260XX1",          true, false              ],
   ["imsi", "31026012",           true, false              ],
   ["imsi", "310260000000000",    true, true               ],
   ["imsi", "310260000000000123", true, false              ],
   ["imsi", "",                   false, "InvalidParameter"],
-  // Currently we only support imsi match.
-  ["spn",  "Android",            false, "ModeNotSupported"]
+  ["spn",  "Android",            true, true               ],
+  ["spn",  "",                   false, "InvalidParameter"],
+  ["spn",  "OneTwoThree",        true, false              ],
+  // mvno type gid is not supported yet.
+  ["gid",  "A1",                 false, "ModeNotSupported"]
 ];
 
 function matchMvno(mvnoType, mvnoData, success, expectedResult) {
   log("matchMvno: " + mvnoType + ", " + mvnoData);
   let request = icc.matchMvno(mvnoType, mvnoData);
   request.onsuccess = function onsuccess() {
     log("onsuccess: " + request.result);
     ok(success, "onsuccess while error expected");