//==== TEST_CRITERIA MNAEX
test(function () {
- var vcc;
- add_result_callback(function () {
- vcc.release();
- });
+ var temp = [];
+ temp.test_function = function (argument) {
+ var vcc = tizen.voicecontrol.getVoiceControlClient();
+ vcc.release(argument);
+ }
- vcc = tizen.voicecontrol.getVoiceControlClient();
- checkExtraArgument(vcc, "release");
+ checkExtraArgument(temp, "test_function");
}, document.title);
</script>
//==== SPEC Tizen Web API:Application:VoiceControl:VoiceControlCommand:command A
//==== SPEC_URL TBD
//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ASG AN
+//==== TEST_CRITERIA AE AT ASG
test(function () {
var command = "test", type = "FOREGROUND", voiceCommand;
voiceCommand = new tizen.VoiceControlCommand(command, type);
check_attribute(voiceCommand, "command", command, "string", "valid");
- check_not_nullable(voiceCommand, "command");
}, document.title);
</script>
//==== SPEC Tizen Web API:UIX:VoiceControl:VoiceControlCommand:type A
//==== SPEC_URL TBD
//==== PRIORITY P1
-//==== TEST_CRITERIA AE AT ADV AVL
+//==== TEST_CRITERIA AE AT ADV
test(function () {
var command = "test", newType, voiceCommand, exceptionName;
assert_own_property(voiceCommand, "type", "VoiceControlCommand does not own 'type' property.");
assert_type(voiceCommand.type, "string", "voiceCommand.type is not string type.");
assert_equals(voiceCommand.type, "FOREGROUND", "voiceCommand.type should be 'FOREGROUND' by default.");
-
- newType = "notype";
- exceptionName = "TypeMismatchError";
-
- assert_throws({name : exceptionName},
- function () {
- voiceCommand.type = newType;
- }, exceptionName + " should be thrown - not given any argument.");
- assert_not_equals(voiceCommand.type, newType, "voiceCommand.type should be not the same as newType.")
}, document.title);
</script>