[common][speech][call getVoices by getting onvoiceschanged event] 56/254156/1
authorzhaofeng <feng.zhao@samsung.com>
Wed, 24 Feb 2021 06:58:16 +0000 (14:58 +0800)
committerzhaofeng <feng.zhao@samsung.com>
Wed, 24 Feb 2021 06:58:21 +0000 (14:58 +0800)
Change-Id: I7897d05ab2fcffc4b2e7b070cc12e37631f7ae1a
Signed-off-by: zhaofeng <feng.zhao@samsung.com>
common/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_default_attribute.html
common/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_extend.html
common/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_lang_attribute.html
common/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_localService_attribute.html
common/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_name_attribute.html
common/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_voiceURI_attribute.html
common/tct-speech-w3c-tests/tests.full.xml
common/tct-speech-w3c-tests/tests.xml

index 55a789bea8fd31db6da5b127e8f04c31ec822730..13923efd539030ffd62b5da6be516ca0926580fd 100755 (executable)
@@ -34,12 +34,21 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechSynthesisVoice
 //==== TEST_CRITERIA AE AT ARO
 
-test(function () {
+setup ({timeout: 9000});
+
+var t = async_test(document.title, {timeout: 9000})
+
+t.step(function () {
     var speech, voices;
     speech = window.speechSynthesis;
-    voices = speech.getVoices();
-    check_readonly(voices[0], "default", voices[0].default, "boolean", true);
-}, document.title);
+
+    speech.onvoiceschanged = t.step_func(function(e) {
+        voices = speech.getVoices();
+        check_readonly(voices[0], "default", voices[0].default, "boolean", false);
+        t.done();
+    });
+
+});
 
 </script>
 </body>
index 567964dbfb809f3b6641e3b2b643bc23e47eab0b..58fac39017cf83d7d471311cc48ae39757211725 100755 (executable)
@@ -34,12 +34,21 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechSynthesisVoice
 //==== TEST_CRITERIA OBX
 
-test(function () {
+setup ({timeout: 9000});
+
+var t = async_test(document.title, {timeout: 9000})
+
+t.step(function () {
     var speech, voices;
     speech = window.speechSynthesis;
-    voices = speech.getVoices();
-    check_extensibility(voices[0]);
-}, document.title);
+
+    speech.onvoiceschanged = t.step_func(function(e) {
+        voices = speech.getVoices();
+        check_extensibility(voices[0]);
+        t.done();
+    });
+
+});
 
 </script>
 </body>
index 33f00d25a11c7f86f456f79182f69a2a5e1a73a7..ec8c676fbba708c73a272689a3fbb3675b306386 100755 (executable)
@@ -33,13 +33,21 @@ Authors:
 //==== SPEC Tizen Web API:TBD:Speech:SpeechSynthesisVoice:lang A
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechSynthesisVoice
 //==== TEST_CRITERIA AE AT ARO
+setup ({timeout: 9000});
 
-test(function () {
+var t = async_test(document.title, {timeout: 9000})
+
+t.step(function () {
     var speech, voices;
     speech = window.speechSynthesis;
-    voices = speech.getVoices();
-    check_readonly(voices[0], "lang", voices[0].lang, "string", "dummyLang");
-}, document.title);
+
+    speech.onvoiceschanged = t.step_func(function(e) {
+        voices = speech.getVoices();
+        check_readonly(voices[0], "lang", voices[0].lang, "string", "dummyLang");
+        t.done();
+    });
+
+});
 
 </script>
 </body>
index 6d62ded1c04e426217d8debb41d6a21a896b033f..516d301cc91a27c189670b7688f76fcf6c252d65 100755 (executable)
@@ -34,12 +34,21 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechSynthesisVoice
 //==== TEST_CRITERIA AE AT ARO
 
-test(function () {
+setup ({timeout: 9000});
+
+var t = async_test(document.title, {timeout: 9000})
+
+t.step(function () {
     var speech, voices;
     speech = window.speechSynthesis;
-    voices = speech.getVoices();
-    check_readonly(voices[0], "localService", voices[0].localService, "boolean", true);
-}, document.title);
+
+    speech.onvoiceschanged = t.step_func(function(e) {
+        voices = speech.getVoices();
+        check_readonly(voices[0], "localService", voices[0].localService, "boolean", false);
+        t.done();
+    });
+
+});
 
 </script>
 </body>
index 2c2335f48bb1bc16e60182c5eb3df7bf030e2090..532546d005ba6978b31be2fc542e80f228ca2d9d 100755 (executable)
@@ -34,12 +34,21 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechSynthesisVoice
 //==== TEST_CRITERIA AE AT ARO
 
-test(function () {
+setup ({timeout: 9000});
+
+var t = async_test(document.title, {timeout: 9000})
+
+t.step(function () {
     var speech, voices;
     speech = window.speechSynthesis;
-    voices = speech.getVoices();
-    check_readonly(voices[0], "name", voices[0].name, "string", "dummyName");
-}, document.title);
+
+    speech.onvoiceschanged = t.step_func(function(e) {
+        voices = speech.getVoices();
+        check_readonly(voices[0], "name", voices[0].name, "string", "dummyName");
+        t.done();
+    });
+
+});
 
 </script>
 </body>
index 4306311202bc173e30f49a89fa9daa2314b16511..4d1ad0f2feac07b9071995a6040abfca19efa52d 100755 (executable)
@@ -34,12 +34,21 @@ Authors:
 //==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechSynthesisVoice
 //==== TEST_CRITERIA AE AT ARO
 
-test(function () {
+setup ({timeout: 9000});
+
+var t = async_test(document.title, {timeout: 9000})
+
+t.step(function () {
     var speech, voices;
     speech = window.speechSynthesis;
-    voices = speech.getVoices();
-    check_readonly(voices[0], "voiceURI", voices[0].voiceURI, "string", "dummyURI");
-}, document.title);
+
+    speech.onvoiceschanged = t.step_func(function(e) {
+        voices = speech.getVoices();
+        check_readonly(voices[0], "voiceURI", voices[0].voiceURI, "string", "dummyURI");
+        t.done();
+    });
+
+});
 
 </script>
 </body>
index eb60b20ced4d31d995fc254058c12d18213a5cc6..25532fdd98c490cabc305af7581f2f441c03b9c8 100755 (executable)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::default attribute exists, has type boolean and is readonly" type="compliance" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_default_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::default attribute exists, has type boolean and is readonly" type="compliance" onload_delay="90" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_default_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_default_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
-            <spec_assertion interface="SpeechSynthesisVoice" element_type="attribute" element_name="default" specification="Speech" section="TBD" category="Tizen W3C API Specifications"/>
+            <spec_assertion interface="SpeechSynthesisVoice" element_type="attribute" onload_delay="90" element_name="default" specification="Speech" section="TBD" category="Tizen W3C API Specifications"/>
             <spec_url>https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#SpeechSynthesisVoice</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice is extendable" type="compliance" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P3" id="SpeechSynthesisVoice_extend">
+      <testcase purpose="Check if SpeechSynthesisVoice is extendable" type="compliance" onload_delay="90" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P3" id="SpeechSynthesisVoice_extend">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_extend.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::lang attribute exists, has type string and is readonly" type="compliance" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_lang_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::lang attribute exists, has type string and is readonly" type="compliance" onload_delay="90" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_lang_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_lang_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::localService attribute exists, has type boolean and is readonly" type="compliance" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_localService_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::localService attribute exists, has type boolean and is readonly" type="compliance" onload_delay="90" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_localService_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_localService_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::name attribute exists, has type string and is readonly" type="compliance" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_name_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::name attribute exists, has type string and is readonly" type="compliance" onload_delay="90" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_name_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_name_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::voiceURI attribute exists, has type string and is readonly" type="compliance" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_voiceURI_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::voiceURI attribute exists, has type string and is readonly" type="compliance" onload_delay="90" status="approved" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" priority="P1" id="SpeechSynthesisVoice_voiceURI_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_voiceURI_attribute.html</test_script_entry>
         </description>
index 096ec0cd67044f383c6152f10500c1f884c05e41..c2feac26891afb166bb66e73d79d595130cfaa52 100755 (executable)
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_volume_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::default attribute exists, has type boolean and is readonly" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_default_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::default attribute exists, has type boolean and is readonly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_default_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_default_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice is extendable" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_extend">
+      <testcase purpose="Check if SpeechSynthesisVoice is extendable" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_extend">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::lang attribute exists, has type string and is readonly" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_lang_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::lang attribute exists, has type string and is readonly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_lang_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_lang_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::localService attribute exists, has type boolean and is readonly" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_localService_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::localService attribute exists, has type boolean and is readonly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_localService_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_localService_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::name attribute exists, has type string and is readonly" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_name_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::name attribute exists, has type string and is readonly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_name_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_name_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if SpeechSynthesisVoice::voiceURI attribute exists, has type string and is readonly" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_voiceURI_attribute">
+      <testcase purpose="Check if SpeechSynthesisVoice::voiceURI attribute exists, has type string and is readonly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisVoice_voiceURI_attribute">
         <description>
           <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisVoice_voiceURI_attribute.html</test_script_entry>
         </description>