Backed out changeset 29a1c6a34550 (bug 958782) for bustage on a CLOSED TREE

This commit is contained in:
Carsten "Tomcat" Book 2014-06-23 15:36:57 +02:00
parent 3f3edec80b
commit c8e49575e2
3 changed files with 17 additions and 4 deletions

View File

@ -77,8 +77,21 @@ function addTest(text, segments, charsPerSegment, charsAvailableInLastSegment) {
});
}
addTest(null, 1, PDU_MAX_USER_DATA_7BIT,
PDU_MAX_USER_DATA_7BIT - "null".length);
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);
// Testing "undefined".
addTest(undefined, 1, PDU_MAX_USER_DATA_7BIT,

View File

@ -21,7 +21,7 @@ var gData = [
perm: ["sms"],
needParentPerm: true,
obj: "mozMobileMessage",
webidl: "MozMobileMessageManager",
idl: "nsIDOMMozMobileMessageManager",
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!
{name: "MozMobileMessageManager", b2g: true, pref: "dom.sms.enabled"},
"MozMobileMessageManager",
// 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!