mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 958782 - 3/3: fix test cases. r=gene,khuey
This commit is contained in:
parent
4109543e62
commit
41d4f81e02
@ -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,
|
||||
|
@ -21,7 +21,7 @@ var gData = [
|
||||
perm: ["sms"],
|
||||
needParentPerm: true,
|
||||
obj: "mozMobileMessage",
|
||||
idl: "nsIDOMMozMobileMessageManager",
|
||||
webidl: "MozMobileMessageManager",
|
||||
settings: [["dom.sms.enabled", true]],
|
||||
},
|
||||
]
|
||||
|
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user