From: tangkaiyuan Date: Wed, 30 Mar 2022 10:56:55 +0000 (+0800) Subject: [common][speech][DPTTIZEN-3238 change to legacy method with webkit prefix] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d251256a892fe7be66a8554bc371d6ae536edb5e;p=test%2Ftct%2Fweb%2Fapi.git [common][speech][DPTTIZEN-3238 change to legacy method with webkit prefix] Change-Id: I54d46dcb53a1a0317e70cee3f50bcc2bb7b58197 Signed-off-by: tangkaiyuan --- diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString.html index 031273c81..2bb3eada5 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString.html @@ -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"); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_exist.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_exist.html index 9f3e6bbf6..a1dccb111 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_exist.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_misarg.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_misarg.html index 2dee94524..1c363ab21 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_misarg.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_misarg.html @@ -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(); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_with_weight.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_with_weight.html index 889223316..bb984c384 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_with_weight.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromString_with_weight.html @@ -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"); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri.html index fd88ede54..790d18ac7 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri.html @@ -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"); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_exist.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_exist.html index 7d7164646..6a08eeb74 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_exist.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_misarg.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_misarg.html index e00e0772f..cbca2b420 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_misarg.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_misarg.html @@ -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(); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_with_weight.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_with_weight.html index b5830d16d..5167ffb33 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_with_weight.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_addFromUri_with_weight.html @@ -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"); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_constructor.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_constructor.html index b22f3b791..c33bcddcb 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_constructor.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_constructor.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_exist.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_exist.html index de503f26e..dbcdd93a3 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_exist.html @@ -35,7 +35,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { - check_constructor("SpeechGrammarList", window); + check_constructor("webkitSpeechGrammarList", window); }, document.title); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_extend.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_extend.html index a39b83d4e..fc70b5a60 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_extend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_extend.html @@ -35,6 +35,7 @@ Authors: //==== TEST_CRITERIA OBX test(function () { + var SpeechGrammarList = SpeechGrammarList || webkitSpeechGrammarList; var grammarList = new SpeechGrammarList(); check_extensibility(grammarList); }, document.title); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item.html index 946e18a3f..0df3f705f 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_exist.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_exist.html index dab2688bb..5612d3227 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_exist.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_misarg.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_misarg.html index 8d56e037f..f0b7d467d 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_misarg.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_item_misarg.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_length_attibute.html b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_length_attibute.html index a67f7ef6a..89883254a 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammarList_length_attibute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammarList_length_attibute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammar_constructor.html b/common/tct-speech-w3c-tests/speech/SpeechGrammar_constructor.html index 5253a2488..0905ffee9 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammar_constructor.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammar_constructor.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammar_exist.html b/common/tct-speech-w3c-tests/speech/SpeechGrammar_exist.html index 62626737e..f0749ac87 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammar_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammar_exist.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammar_extend.html b/common/tct-speech-w3c-tests/speech/SpeechGrammar_extend.html index ce2caabfe..5c10a5cee 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammar_extend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammar_extend.html @@ -35,6 +35,7 @@ Authors: //==== TEST_CRITERIA OBX test(function () { + var SpeechGrammar = SpeechGrammar || webkitSpeechGrammar; var grammar = new SpeechGrammar(); check_extensibility(grammar); }, document.title); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammar_src_attibute.html b/common/tct-speech-w3c-tests/speech/SpeechGrammar_src_attibute.html index c3a404563..a81871476 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammar_src_attibute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammar_src_attibute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechGrammar_weight_attibute.html b/common/tct-speech-w3c-tests/speech/SpeechGrammar_weight_attibute.html index 3de0ce63d..83661108d 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechGrammar_weight_attibute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechGrammar_weight_attibute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_confidence_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_confidence_attribute.html index 2c0f5eb10..17ec8b16f 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_confidence_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_confidence_attribute.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_extend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_extend.html index b91303c0b..f81ff1abc 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_extend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_extend.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_transcript_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_transcript_attribute.html index c6635f439..8e5624d09 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_transcript_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionAlternative_transcript_attribute.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_error_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_error_attribute.html index 3233f6f44..1808a53c3 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_error_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_error_attribute.html @@ -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) { diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_extend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_extend.html index 1a3e051fa..3e30a960f 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_extend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_extend.html @@ -35,6 +35,7 @@ Authors: //==== TEST_CRITERIA OBX test(function () { + var SpeechRecognitionError = SpeechRecognitionError || webkitSpeechRecognitionError; var recognitionError = new SpeechRecognitionError("network"); check_extensibility(recognitionError); }, document.title); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_language-not-supported.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_language-not-supported.html index 2141c2309..3d0b9a0d4 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_language-not-supported.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_language-not-supported.html @@ -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"; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_message_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_message_attribute.html index 16763c750..5ba840562 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_message_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_message_attribute.html @@ -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) { diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_no-speech.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_no-speech.html index 25bab7f3b..8aeff99ba 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_no-speech.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionError_no-speech.html @@ -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"); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognitionEvent_extend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognitionEvent_extend.html index 12d91bb32..a5a1c1342 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognitionEvent_extend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognitionEvent_extend.html @@ -35,6 +35,7 @@ Authors: //==== TEST_CRITERIA OBX test(function () { + var SpeechRecognitionEvent = SpeechRecognitionEvent || webkitSpeechRecognitionEvent; var recognitionEvent = new SpeechRecognitionEvent("result"); check_extensibility(recognitionEvent); }, document.title); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort.html index 1b2860907..bbc6bf3b3 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_exist.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_exist.html index 11dd45c7a..5e27ea3a1 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_exist.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_extra_argument.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_extra_argument.html index f59edd1b5..7de964fa7 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_extra_argument.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_abort_extra_argument.html @@ -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) { diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_constructor.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_constructor.html index 66baebdbb..c7eec9a37 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_constructor.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_constructor.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_continuous_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_continuous_attribute.html index 32f4c1354..0dbd627f2 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_continuous_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_continuous_attribute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_exist.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_exist.html index c932fc117..718b035b5 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_exist.html @@ -35,7 +35,7 @@ Authors: //==== TEST_CRITERIA CONSTRF test(function () { - check_constructor("SpeechRecognition", window); + check_constructor("webkitSpeechRecognition", window); }, document.title); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_extend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_extend.html index d23932601..226245a60 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_extend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_extend.html @@ -35,6 +35,7 @@ Authors: //==== TEST_CRITERIA OBX test(function () { + var SpeechRecognition = SpeechRecognition || webkitSpeechRecognition; var recognition = new SpeechRecognition(); check_extensibility(recognition); }, document.title); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_grammars_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_grammars_attribute.html index bad8bc79a..5c0db9c7a 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_grammars_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_grammars_attribute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_interimResults_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_interimResults_attribute.html index 7f59214c9..8cbc3df05 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_interimResults_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_interimResults_attribute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_lang_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_lang_attribute.html index 47f6fd200..7305e082a 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_lang_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_lang_attribute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_maxAlternatives_attribute.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_maxAlternatives_attribute.html index 3a1a749e8..a6a4bf12f 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_maxAlternatives_attribute.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_maxAlternatives_attribute.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudioend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudioend.html index c94b951ce..d1a158c9b 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudioend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudioend.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudiostart.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudiostart.html index c4ebdd066..083add9d9 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudiostart.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onaudiostart.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onend.html index 1c354b90c..086e5fe1a 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onend.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundend.html index a884f7b21..28bef05cf 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundend.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundstart.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundstart.html index 72c9d8d30..5e0d8353a 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundstart.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onsoundstart.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechend.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechend.html index 79e2e4ffd..200591a2c 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechend.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechend.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechstart.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechstart.html index 4b30d091a..aa221e4ba 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechstart.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onspeechstart.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onstart.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onstart.html index 8ce9a098f..b45dca5dc 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_onstart.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_onstart.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_start.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_start.html index b123765d0..44f479467 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_start.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_start.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_exist.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_exist.html index b324fadbe..7ba48ea83 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_exist.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_extra_argument.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_extra_argument.html index 6b03f3b41..5c64fd691 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_extra_argument.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_start_extra_argument.html @@ -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) { diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop.html index a64651591..3e493e1cb 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop.html @@ -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; diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_exist.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_exist.html index debe965f3..37380b381 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_exist.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_exist.html @@ -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); diff --git a/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_extra_argument.html b/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_extra_argument.html index 5f943c978..e5981daf6 100755 --- a/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_extra_argument.html +++ b/common/tct-speech-w3c-tests/speech/SpeechRecognition_stop_extra_argument.html @@ -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) {