[common][voicecontrol][modify test condition] 61/151161/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Wed, 20 Sep 2017 05:38:12 +0000 (14:38 +0900)
committerJihun Park <jihun87.park@samsung.com>
Thu, 21 Sep 2017 01:37:48 +0000 (01:37 +0000)
Change-Id: Ib044557c24c36638c889664148346c0c0412214b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tct-voicecontrol-tizen-tests/voicecontrol/VoiceControlClient_addLanguageChangeListener_listener_TypeMisMatch.html
common/tct-voicecontrol-tizen-tests/voicecontrol/VoiceControlClient_release_extra_argument.html
common/tct-voicecontrol-tizen-tests/voicecontrol/VoiceControlCommand_command_attribute.html
common/tct-voicecontrol-tizen-tests/voicecontrol/VoiceControlCommand_type_attribute.html

index b250bedb023de2835baadc3ff49a3e169c6465fb..cf718ae56b6e543a3d7572201b07ffb4bc62b5ae 100755 (executable)
@@ -52,7 +52,6 @@ test(function () {
     checkTypeMismatch("functionObject", false, function (argumentToCheck) {
         vcc.addLanguageChangeListener(argumentToCheck);
     });
-    vcc.release();
 }, document.title);
 
 </script>
index 89115e5551504e46396f16d7056681cb7c4e9454..0da2eb5bc1e1fbd10aebe953f088a7ac3d6e5526 100755 (executable)
@@ -43,13 +43,13 @@ Authors:
 //==== 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>
index 063a8ee3c815aae40eb4aa326aef6ea341665c13..82fc955d0dd1b835ae26567f93de503eac335c06 100755 (executable)
@@ -40,13 +40,12 @@ Authors:
 //==== 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>
index e4065d3b215bdeac8c5e0add656c89edc8b24943..f62f4f6e834fafbb860a09ca54ce077cbd983beb 100755 (executable)
@@ -40,7 +40,7 @@ Authors:
 //==== 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;
@@ -48,15 +48,6 @@ test(function () {
     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>