tenfourfox/dom/mobileconnection/tests/marionette/test_mobile_cell_Info_list.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

25 lines
904 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
MARIONETTE_TIMEOUT = 60000;
MARIONETTE_HEAD_JS = "head_chrome.js";
// Start test.
startTestBase(function() {
return getCellInfoList()
.then((aResults) => {
// Cell Info are hard-coded in hardware/ril/reference-ril/reference-ril.c.
is(aResults.length, 1, "Check number of cell Info");
let cell = aResults[0];
is(cell.type, Ci.nsICellInfo.CELL_INFO_TYPE_GSM, "Check cell.type");
is(cell.registered, true, "Check cell.registered");
ok(cell instanceof Ci.nsIGsmCellInfo,
"cell.constructor is " + cell.constructor);
// The data hard-coded in hardware/ril/reference-ril/reference-ril.c
// isn't correct (missing timeStampType), so we skip to check other
// attributes first until we fix it.
});
});