Bug 1222935 - Support REQUEST_SEND_USSD command. r=hsinyi

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2015-11-26 20:32:51 +08:00
parent b641f1b5c5
commit 9ca7c16f52
2 changed files with 3 additions and 4 deletions

View File

@ -48,6 +48,7 @@ disabled = Bug 1214537
[test_mmi_unlock_puk.js]
[test_mmi_unlock_puk2.js]
[test_mmi_ussd.js]
skip-if = android_version < '19'
[test_modem_switch_tech.js]
[test_multiple_hold.js]
[test_outgoing_already_held.js]

View File

@ -8,11 +8,9 @@ function testUSSD() {
log("Test *#1234# ...");
return gSendMMI("*#1234#").then(aResult => {
// Since emulator doesn't support sending USSD, so we expect the result is
// always failed.
ok(!aResult.success, "Check success");
ok(aResult.success, "Check success");
is(aResult.serviceCode, "scUssd", "Check serviceCode");
is(aResult.statusMessage, "RequestNotSupported", "Check statusMessage");
is(aResult.statusMessage, "", "Check statusMessage");
is(aResult.additionalInformation, undefined, "No additional information");
});
}