[common][speech][DPTTIZEN-3238 change to legacy method with webkit prefix] 85/273085/1
authortangkaiyuan <kaiyuan.tang@samsung.com>
Wed, 30 Mar 2022 10:56:55 +0000 (18:56 +0800)
committertangkaiyuan <kaiyuan.tang@samsung.com>
Wed, 30 Mar 2022 10:57:07 +0000 (18:57 +0800)
Change-Id: I54d46dcb53a1a0317e70cee3f50bcc2bb7b58197
Signed-off-by: tangkaiyuan <kaiyuan.tang@samsung.com>
54 files changed:
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_exist.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_misarg.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_with_weight.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_exist.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_misarg.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_with_weight.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_constructor.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_exist.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_extend.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_item.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_exist.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_misarg.html
common/tct-speech-w3c-tests/speech/SpeechGrammarList_length_attibute.html
common/tct-speech-w3c-tests/speech/SpeechGrammar_constructor.html
common/tct-speech-w3c-tests/speech/SpeechGrammar_exist.html
common/tct-speech-w3c-tests/speech/SpeechGrammar_extend.html
common/tct-speech-w3c-tests/speech/SpeechGrammar_src_attibute.html
common/tct-speech-w3c-tests/speech/SpeechGrammar_weight_attibute.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_confidence_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_extend.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_transcript_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionError_error_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionError_extend.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionError_language-not-supported.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionError_message_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionError_no-speech.html
common/tct-speech-w3c-tests/speech/SpeechRecognitionEvent_extend.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_abort.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_exist.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_extra_argument.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_constructor.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_continuous_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_exist.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_extend.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_grammars_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_interimResults_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_lang_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_maxAlternatives_attribute.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudioend.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudiostart.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onend.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundend.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundstart.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechend.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechstart.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_onstart.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_start.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_start_exist.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_start_extra_argument.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_stop.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_exist.html
common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_extra_argument.html

index 031273c81c50ebbb1f26313cff62a39cc49a3c72..2bb3eada5dbb495b33c06cfc9d09f110feac7e80 100755 (executable)
@@ -35,7 +35,8 @@ Authors:
 //==== TEST_CRITERIA MR MMINA
 
 test(function () {
-    var grammarList, returnValue;
+    var SpeechGrammarList, grammarList, returnValue;
+    SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     grammarList = new SpeechGrammarList();
     returnValue = grammarList.addFromString("grammar1");
     assert_equals(returnValue, undefined, "returnValue should be undefined");
index 9f3e6bbf64183e139cd22557585636a8d4a51053..a1dccb11115585ef9f39d9241acaa8e13736fb9d 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var grammarList = new SpeechGrammarList();
     check_method_exists(grammarList, "addFromString");
 }, document.title);
index 2dee94524780b25d20706f8e1df3e15912414b3b..1c363ab21950d1c39dfd1bda21df3ce7bd2703ea 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA MMA
 
 test(function () {
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var grammarList = new SpeechGrammarList();
     assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         grammarList.addFromString();
index 8892233169977233064c0b8c2915a989e5b6c726..bb984c3842c09a9e4a36fbdeaf3bec04d470f816 100755 (executable)
@@ -35,7 +35,8 @@ Authors:
 //==== TEST_CRITERIA MR MOA
 
 test(function () {
-    var grammarList, returnValue;
+    var SpeechGrammarList, grammarList, returnValue;
+    SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     grammarList = new SpeechGrammarList();
     returnValue = grammarList.addFromString("grammar", 2.0);
     assert_equals(returnValue, undefined, "returnValue should be undefined");
index fd88ede54d325253c9c5dcbba587138e4535bc23..790d18ac725248f3244d4b4cc9b37055caf645c9 100755 (executable)
@@ -35,7 +35,8 @@ Authors:
 //==== TEST_CRITERIA MR MMINA
 
 test(function () {
-    var grammarList, returnValue;
+    var SpeechGrammarList, grammarList, returnValue;
+    SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     grammarList = new SpeechGrammarList();
     returnValue = grammarList.addFromUri("data:application/xml,grammar");
     assert_equals(returnValue, undefined, "returnValue should be undefined");
index 7d716464640f7685798b3f5f3274c09b12054419..6a08eeb74e14e0311143e65fc922d13a3f911cfc 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var grammarList = new SpeechGrammarList();
     check_method_exists(grammarList, "addFromUri");
 }, document.title);
index e00e0772f624350ffaa4cbd974bf54f19cf0bcfd..cbca2b420dc09bfd64567b7e27c455cb0e5cc433 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA MMA
 
 test(function () {
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var grammarList = new SpeechGrammarList();
     assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         grammarList.addFromUri();
index b5830d16d927c9aab86457a88f215141deea699c..5167ffb332b883acfc32ba1ebb064d2cbc8091b1 100755 (executable)
@@ -35,7 +35,8 @@ Authors:
 //==== TEST_CRITERIA MR MOA
 
 test(function () {
-    var grammarList, returnValue;
+    var SpeechGrammarList, grammarList, returnValue;
+    SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     grammarList = new SpeechGrammarList();
     returnValue = grammarList.addFromUri("data:application/xml,grammar", 2.0);
     assert_equals(returnValue, undefined, "returnValue should be undefined");
index b22f3b791227350416d085473fa859bf55b22c7e..c33bcddcb9e92d126e209cc4181bd458a588fd12 100755 (executable)
@@ -35,8 +35,9 @@ Authors:
 //==== TEST_CRITERIA CONSTRM
 
 test(function () {
-    var grammerList = new SpeechGrammarList();
-    assert_true(grammerList instanceof SpeechGrammarList, "Object was not created properly");
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
+    var grammarList = new SpeechGrammarList();
+    assert_true(grammarList instanceof SpeechGrammarList, "Object was not created properly");
 }, document.title);
 
 </script>
index de503f26e5847588193a6dcb0508b49e876f0ba2..dbcdd93a305dd134fd90bf85a0de239c2f0491e8 100755 (executable)
@@ -35,7 +35,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 
 test(function () {
-    check_constructor("SpeechGrammarList", window);
+    check_constructor("webkitSpeechGrammarList", window);
 }, document.title);
 
 </script>
index a39b83d4ee77c81fcbf59e8b08abf008b816ef55..fc70b5a6093ac3e8eedf76266a9dbe249c717e26 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA OBX
 
 test(function () {
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var grammarList = new SpeechGrammarList();
     check_extensibility(grammarList);
 }, document.title);
index 946e18a3fe5d549f4fbd9bc440dd88f1bad4b572..0df3f705f7b99711ade2264e13c93415a9183da6 100755 (executable)
@@ -35,7 +35,8 @@ Authors:
 //==== TEST_CRITERIA MR
 
 test(function () {
-    var grammarList, returnValue;
+    var SpeechGrammarList, grammarList, returnValue;
+    SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     grammarList = new SpeechGrammarList();
     grammarList.addFromString("grammar", 2.0);
     returnValue = grammarList.item(0);
index dab2688bb196d893ba4b9066152a2d0a68cf9553..5612d3227f78b9760e1d932fd30195fe5658752a 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var grammarList = new SpeechGrammarList();
     check_method_exists(grammarList, "item");
 }, document.title);
index 8d56e037fd36f4cd3e3cdf33f6a65cbaf0b3929e..f0b7d467d72112318b692c0b1727ead16b925c67 100755 (executable)
@@ -35,9 +35,10 @@ Authors:
 //==== TEST_CRITERIA MMA
 
 test(function () {
-    var grammerList = new SpeechGrammarList();
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
+    var grammarList = new SpeechGrammarList();
     assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
-        grammerList.item();
+        grammarList.item();
     }, "TYPE_MISMATCH_EXCEPTION should be thrown");
 }, document.title);
 
index a67f7ef6ad88ca1ed3ccac3f62aa4c185852c936..89883254aa786d9d30c47640689d856da7716026 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ARO
 
 test(function () {
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var grammarList = new SpeechGrammarList();
     check_readonly(grammarList, "length", grammarList.length, "unsigned long", 100);
 }, document.title);
index 5253a2488bb4b473f806225f4e814ed3ae90f7b6..0905ffee942313ca9c60a5521c057c3d2782db57 100755 (executable)
@@ -35,7 +35,9 @@ Authors:
 //==== TEST_CRITERIA CONSTRM
 
 test(function () {
-    check_constructor("SpeechGrammar", window);
+    var SpeechGrammar = SpeechGrammar || webkitSpeechGrammar;
+    var grammar = new SpeechGrammar();
+    assert_true(grammar instanceof SpeechGrammar, "Object was not created properly");
 }, document.title);
 
 </script>
index 62626737ea369f03eca0aa8ed9dbb96d2ce609ea..f0749ac87dd145125a230a300130921a75175a8e 100755 (executable)
@@ -35,8 +35,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 
 test(function () {
-    var grammar = new SpeechGrammar();
-    assert_true(grammar instanceof SpeechGrammar, "Object was not created properly");
+    check_constructor("webkitSpeechGrammar", window);
 }, document.title);
 </script>
 </body>
index ce2caabfe9ff8716edc15042c48340999a5979c9..5c10a5cee4bc80378092d83d3596546443730a81 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA OBX
 
 test(function () {
+    var SpeechGrammar = SpeechGrammar || webkitSpeechGrammar;
     var grammar = new SpeechGrammar();
     check_extensibility(grammar);
 }, document.title);
index c3a404563ea06b8db8d1b2111f3dc9bbf0a9c739..a81871476281df5d98bf55a0fbad789ae1cbb6f1 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG
 
 test(function () {
+    var SpeechGrammar = SpeechGrammar || webkitSpeechGrammar;
     var grammar = new SpeechGrammar();
     check_attribute(grammar, "src", grammar.src, "string", "file://opt/usr/");
 }, document.title);
index 3de0ce63dbf748e6fb297c9dd10c249e0ce7f596..83661108d7cd66356242f52755a71ed394cfd01d 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG ADV
 
 test(function () {
+    var SpeechGrammar = SpeechGrammar || webkitSpeechGrammar;
     var grammar = new SpeechGrammar();
     check_attribute(grammar, "weight", grammar.weight, "float", 2.0);
 }, document.title);
index 2c0f5eb10ea0d338ba6025d4e91a2025fa4450fa..17ec8b16f9b083693022777e1ef80dec3494b6fc 100755 (executable)
@@ -48,8 +48,9 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechRecognitionAlternative
 //==== TEST_CRITERIA AE AT ARO
 
-var testResult, temp, speechAlternative, recognition;
+var testResult, temp, speechAlternative, recognition, SpeechRecognition;
 testResult = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = true;
 recognition.interimResults = true;
index b91303c0b208f962a1028d56d1e2b2540361b643..f81ff1abca1347851308a30457713b77a3e8f10f 100755 (executable)
@@ -47,8 +47,9 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechRecognitionAlternative
 //==== TEST_CRITERIA OBX
 
-var testResult, recognition, resultListItem, dummyAttribute, dummyMethodResult;
+var testResult, recognition, SpeechRecognition, resultListItem, dummyAttribute, dummyMethodResult;
 testResult = "Not Run";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = false;
 recognition.interimResults = true;
index c6635f439e4edfd26eac99a04f1dad4e433d74e8..8e5624d09209ea7857efe106f324afd610c4189f 100755 (executable)
@@ -48,8 +48,9 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechRecognitionAlternative
 //==== TEST_CRITERIA AE AT ARO
 
-var testResult, temp, speechAlternative, recognition;
+var testResult, temp, speechAlternative, recognition, SpeechRecognition;
 testResult = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = true;
 recognition.interimResults = true;
index 3233f6f44e127f0ac6cd0c49eaaf1aeedee418bc..1808a53c39b5d9ae64a6b7f681c3ec17ec04e980 100755 (executable)
@@ -37,9 +37,10 @@ Authors:
 
 setup ({timeout: 5000});
 
-var t = async_test(document.title, {timeout: 5000}), speechReco;
+var t = async_test(document.title, {timeout: 5000}), speechReco, SpeechRecognition;
 
 t.step(function () {
+    SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     speechReco = new SpeechRecognition();
 
     speechReco.onerror = t.step_func(function (err) {
index 1a3e051fa54b8fc6901449e8730594548aa47aaf..3e30a960f398667b9790f406303ff9074dc09e27 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA OBX
 
 test(function () {
+    var SpeechRecognitionError = SpeechRecognitionError || webkitSpeechRecognitionError;
     var recognitionError = new SpeechRecognitionError("network");
     check_extensibility(recognitionError);
 }, document.title);
index 2141c230995637f7f6476e91d98a3b9f0f6aea1c..3d0b9a0d4e2150dc1ca344c8f76f01f117205db4 100755 (executable)
@@ -36,9 +36,10 @@ Authors:
 
 setup({timeout: 5000});
 
-var t = async_test("Test that language-not-supported of SpeechRecognitionError occurs", {timeout: 5000}), speechReco;
+var t = async_test("Test that language-not-supported of SpeechRecognitionError occurs", {timeout: 5000}), speechReco, SpeechRecognition;
 
 t.step(function () {
+    SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     speechReco = new SpeechRecognition();
     speechReco.lang = "wrong language";
 
index 16763c750a3d9a46b64eddeb0e13733f0dbacec4..5ba840562e6eb53f3fc3fbba423b7902086740e3 100755 (executable)
@@ -37,9 +37,10 @@ Authors:
 
 setup ({timeout: 5000});
 
-var t = async_test(document.title, {timeout: 5000}), speechReco;
+var t = async_test(document.title, {timeout: 5000}), speechReco, SpeechRecognition;
 
 t.step(function () {
+    SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     speechReco = new SpeechRecognition();
 
     speechReco.onerror = t.step_func(function (err) {
index 25bab7f3b0e984dfe605f63fabee27eac3be3876..8aeff99ba26ed31aeb63603c77a5fc05adb0d927 100755 (executable)
@@ -39,9 +39,10 @@ Authors:
 
 setup({timeout: 5000});
 
-var t = async_test("Test that no-speech of SpeechRecognitionError occurs", {timeout: 10000}), speechReco;
+var t = async_test("Test that no-speech of SpeechRecognitionError occurs", {timeout: 10000}), speechReco, SpeechRecognition;
 
 t.step(function () {
+    SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     speechReco = new SpeechRecognition();
     speechReco.onerror = t.step_func(function (evt) {
         assert_equals(evt.error, "no-speech");
index 12d91bb322286953ccfa9e1271dc384af0f26f3a..a5a1c1342ac84591b387bb12757c9f6bee9571a8 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA OBX
 
 test(function () {
+    var SpeechRecognitionEvent = SpeechRecognitionEvent || webkitSpeechRecognitionEvent;
     var recognitionEvent = new SpeechRecognitionEvent("result");
     check_extensibility(recognitionEvent);
 }, document.title);
index 1b28609071640a91d4c25e9bbbeb7dced032eab7..bbc6bf3b380f9d47274dd15536c7b67f99d5af4d 100755 (executable)
@@ -43,9 +43,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA MR MNA MNAST
 
-var finalText, interimText, recognition,i;
+var finalText, interimText, recognition, SpeechRecognition, i;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = true;
 recognition.interimResults = true;
index 11dd45c7aad0d0622752a64274c8038a3151b426..5e27ea3a1726b465b7d719b2f3854607ae6d862c 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     check_method_exists(recognition, "abort");
 }, document.title);
index f59edd1b528ba905f9542a53f336737efc882f75..7de964fa7706088279931bfc28c748a2549f939c 100755 (executable)
@@ -36,6 +36,7 @@ Authors:
 
 test(function () {
     var recognition, extraArgument, i;
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     recognition = new SpeechRecognition();
     extraArgument = [null, undefined, "Tizen", 1, false, ["one", "two"], {argument: 1}, function () {}];
  recognition.onstart = function(event) {
index 66baebdbb9d2c010ed68b608ca665ffaa40d6b61..c7eec9a378bcec5f279cfc836e6f82992f6cb693 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRM
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     assert_true(recognition instanceof SpeechRecognition, "Object was not created properly");
 }, document.title);
index 32f4c1354018c27088823c73f83dd2b20970fd8a..0dbd627f2a9ebbdc8412fe5aa23d1d87ba70a08d 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ADV ASG
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     assert_equals(recognition.continuous, false, "default value of continuous should be false but found " + recognition.continuous);
     check_attribute(recognition, "continuous", recognition.continuous, "boolean", true);
index c932fc11714cb818ca980f06f5d61291b184a693..718b035b54cbd464d2c6169fd335debbccf7ebf4 100755 (executable)
@@ -35,7 +35,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 
 test(function () {
-    check_constructor("SpeechRecognition", window);
+    check_constructor("webkitSpeechRecognition", window);
 }, document.title);
 
 </script>
index d239326016144aca17b661b448a6ba6777da56a2..226245a609497b25542bb31fc0d00d0a3715ecac 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA OBX
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     check_extensibility(recognition);
 }, document.title);
index bad8bc79a136f067a6499a253fec6637b36d573f..5c0db9c7ab6052c653783f2af3c239548bfe295e 100755 (executable)
@@ -35,6 +35,8 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
+    var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList;
     var recognition = new SpeechRecognition();
     check_attribute(recognition, "grammars", recognition.grammars, "object", new SpeechGrammarList());
 }, document.title);
index 7f59214c9daaf5f0522eea3ded0d90eb83d9e695..8cbc3df0504be236d74aa22e3bedf7282d9273fc 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ADV ASG
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     assert_equals(recognition.interimResults, false, "Default value of recognition.interimResults should be false");
     check_attribute(recognition, "interimResults", recognition.interimResults, "boolean", true);
index 47f6fd20016ee6887bd164836e9a9664beaa86af..7305e082ad3deeaec0bb2060e6a55b799b4e5642 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     check_attribute(recognition, "lang", recognition.lang, "string", "english");
 }, document.title);
index 3a1a749e82e602817bdc498a03270d2f4623b811..a6a4bf12fae349834ee0f071c8a53230e6744e97 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ASG ADV
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     assert_equals(recognition.maxAlternatives, 1, "Default value of maxAlternatives should be 1");
     check_attribute(recognition, "maxAlternatives", recognition.maxAlternatives, "unsigned long", 2);
index c94b951ce89389a7546b60723c11f8b80b566596..d1a158c9b0246734d0c166bb8e2b87ead6bb9f0c 100755 (executable)
@@ -41,9 +41,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var finalText, interimText, recognition, i;
+var finalText, interimText, recognition, i, SpeechRecognition;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = true;
 recognition.interimResults = true;
index c4ebdd066bfcde177b0f9af0d8e80c2c3d99bc50..083add9d98954264b77aac40eb3a8647a22989de 100755 (executable)
@@ -39,7 +39,8 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var recognition;
+var recognition, SpeechRecognition;
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = true;
 recognition.interimResults = true;
index 1c354b90cc9c0368b4b3b38701c32504ff3f45e5..086e5fe1afc1700bd2751ccc21e090149a131460 100755 (executable)
@@ -41,9 +41,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var finalText, interimText, recognition, i;
+var finalText, interimText, recognition, i, SpeechRecognition;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = false;
 recognition.interimResults = true;
index a884f7b210b07f49c1c50f7cdb6a72fae69ca0b3..28bef05cfb64958d056360d466aa447879d028fc 100755 (executable)
@@ -41,9 +41,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var finalText, interimText, recognition;
+var finalText, interimText, recognition, SpeechRecognition;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = true;
 recognition.interimResults = true;
index 72c9d8d30d3110a95d903e541d8fe87ec0e27dd4..5e0d8353af5a5eb11e75a167cbddd271d7ac5736 100755 (executable)
@@ -39,7 +39,8 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var recognition;
+var recognition, SpeechRecognition;
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = false;
 recognition.interimResults = true;
index 79e2e4ffd47f048db1434d4911eecb346e22c2dd..200591a2c14b86e0e8a3b4c67a48951041e9d92f 100755 (executable)
@@ -41,9 +41,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var finalText, interimText, recognition;
+var finalText, interimText, recognition, SpeechRecognition;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = true;
 recognition.interimResults = true;
index 4b30d091a32a0e640f893151534ad75b8b6eddb9..aa221e4ba54eb3ac984fe2dbd1e05589a7b9b535 100755 (executable)
@@ -39,7 +39,8 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var recognition;
+var recognition, SpeechRecognition;
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = false;
 recognition.interimResults = true;
index 8ce9a098feae7c02e369390b0f437e80fdca1497..b45dca5dc1f510493e95053fb2efb85e474c122e 100755 (executable)
@@ -41,9 +41,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA CBOA CBT
 
-var finalText, interimText, recognition;
+var finalText, interimText, recognition, SpeechRecognition;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = false;
 recognition.interimResults = true;
index b123765d0cd2e1ad7b67b639fedfbea5d867048a..44f479467328fad3dfed29744e892067b3c7f9ab 100755 (executable)
@@ -41,9 +41,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA MR MNA MNAST
 
-var finalText, interimText, recognition;
+var finalText, interimText, recognition, SpeechRecognition;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = false;
 recognition.interimResults = true;
index b324fadbe7d6a7b00b1bd83e7a6249fdfa2603ac..7ba48ea839d9ef2ce6ad37a66f284e821f9ec68d 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     check_method_exists(recognition, "start");
 }, document.title);
index 6b03f3b41bd1d58f7f90d67fa00d6f59cab0ccf0..5c64fd69189f5699246e47fbd4ab7a61a5ee3199 100755 (executable)
@@ -35,7 +35,8 @@ Authors:
 //==== TEST_CRITERIA MNAEX
 
 test(function () {
-    var recognition, extraArgument, i;
+    var recognition, SpeechRecognition, extraArgument, i;
+    SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     recognition = new SpeechRecognition();
     extraArgument = [null, undefined, "Tizen", 1, false, ["one", "two"], {argument: 1}, function () {}];
  recognition.onstart = function(event) {
index a64651591107bb1cc3ad06037cb794e0b210b921..3e493e1cb2e566ed6667157a7475cb34f3ef652e 100755 (executable)
@@ -41,9 +41,10 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
 //==== TEST_CRITERIA MR MNA MNAST
 
-var finalText, interimText, recognition;
+var finalText, interimText, recognition, SpeechRecognition;
 interimText = "";
 finalText = "";
+SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
 recognition = new SpeechRecognition();
 recognition.continuous = false;
 recognition.interimResults = true;
index debe965f305563788f45755bbca4c115f58355f1..37380b381eace36d3d85842f810249731b370404 100755 (executable)
@@ -35,6 +35,7 @@ Authors:
 //==== TEST_CRITERIA ME
 
 test(function () {
+    var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     var recognition = new SpeechRecognition();
     check_method_exists(recognition, "stop");
 }, document.title);
index 5f943c9786af355d2d9062fe53a8419eb31d0866..e5981daf601e439725d4ad39a3c1b41b3cd5c7e1 100755 (executable)
@@ -35,7 +35,8 @@ Authors:
 //==== TEST_CRITERIA MNAEX
 
 test(function () {
-    var recognition, extraArgument, i;
+    var recognition, extraArgument, i, SpeechRecognition;
+    SpeechRecognition = SpeechRecognition || webkitSpeechRecognition;
     recognition = new SpeechRecognition();
     extraArgument = [null, undefined, "Tizen", 1, false, ["one", "two"], {argument: 1}, function () {}];
  recognition.onstart = function(event) {