Bug 958782 - 3/3: fix test cases. r=gene,khuey

This commit is contained in:
Vicamo Yang 2014-06-23 20:56:01 +08:00
parent 4109543e62
commit 41d4f81e02
3 changed files with 4 additions and 17 deletions

View File

@ -77,21 +77,8 @@ function addTest(text, segments, charsPerSegment, charsAvailableInLastSegment) {
});
}
function addTestThrows(text) {
tasks.push(function() {
log("Testing '" + text + "' ...");
try {
let domRequest = manager.getSegmentInfoForText(text);
ok(false, "Not thrown.");
tasks.finish();
} catch (e) {
tasks.next();
}
});
}
addTestThrows(null);
addTest(null, 1, PDU_MAX_USER_DATA_7BIT,
PDU_MAX_USER_DATA_7BIT - "null".length);
// Testing "undefined".
addTest(undefined, 1, PDU_MAX_USER_DATA_7BIT,

View File

@ -21,7 +21,7 @@ var gData = [
perm: ["sms"],
needParentPerm: true,
obj: "mozMobileMessage",
idl: "nsIDOMMozMobileMessageManager",
webidl: "MozMobileMessageManager",
settings: [["dom.sms.enabled", true]],
},
]

View File

@ -667,7 +667,7 @@ var interfaceNamesInGlobalScope =
// IMPORTANT: Do not change this list without review from a DOM peer!
{name: "MozMobileNetworkInfo", b2g: true, pref: "dom.mobileconnection.enabled"},
// IMPORTANT: Do not change this list without review from a DOM peer!
"MozMobileMessageManager",
{name: "MozMobileMessageManager", b2g: true, pref: "dom.sms.enabled"},
// IMPORTANT: Do not change this list without review from a DOM peer!
"MozMobileMessageThread",
// IMPORTANT: Do not change this list without review from a DOM peer!