var t = async_test(document.title, {timeout: 5000}), speechMessage, returnValue;
t.step(function () {
+ speechSynthesis.cancel();
speechMessage = new SpeechSynthesisUtterance();
speechMessage.text = "test is goin on test is goin on test is goin on";
speechMessage.onpause = t.step_func(function () {
assert_equals(returnValue, undefined, "returnValue should be undefined");
assert_equals(window.speechSynthesis.paused, true, "paused should be true");
+ speechSynthesis.cancel();
t.done();
});
var t = async_test(document.title, {timeout: 5000}), speechMessage, returnValue;
t.step(function () {
+ speechSynthesis.cancel();
speechMessage = new SpeechSynthesisUtterance();
speechMessage.text = "test is going on";
speechMessage.onresume = t.step_func(function () {
assert_equals(returnValue, undefined, "returnValue should be undefined");
assert_equals(window.speechSynthesis.speaking, true, "speaking should be true");
+ speechSynthesis.cancel();
t.done();
});
<capabilities>
<capability name="http://tizen.org/feature/speech.synthesis"/>
</capabilities>
+ <testcase purpose="Check if SpeechSynthesisUtterance::onpause eventHandler can be fired properly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onpause">
+ <description>
+ <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onpause.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if SpeechSynthesis::resume() method works properly" onload_delay="5" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesis_resume">
+ <description>
+ <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_resume.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if SpeechSynthesis::pause() method works properly" onload_delay="5" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesis_pause">
+ <description>
+ <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_pause.html</test_script_entry>
+ </description>
+ </testcase>
+ <testcase purpose="Check if SpeechSynthesisUtterance::onresume eventHandler can be fired properly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onresume">
+ <description>
+ <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onresume.html</test_script_entry>
+ </description>
+ </testcase>
<testcase purpose="Check if SpeechSynthesisEvent::charIndex exists, has type unsigned long and is readonly" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisEvent_charIndex_attribute">
<description>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisEvent_charIndex_attribute.html</test_script_entry>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onend.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Test whether SpeechSynthesisUtterance::onerror is called with argument of proper type" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onerror">
- <description>
- <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onerror.html</test_script_entry>
- </description>
- </testcase>
<!-- <testcase purpose="Check if SpeechSynthesisUtterance::onmark eventHandler can be fired properly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onmark">
<description>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onmark.html</test_script_entry>
</description>
</testcase> -->
- <testcase purpose="Check if SpeechSynthesisUtterance::onpause eventHandler can be fired properly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onpause">
- <description>
- <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onpause.html</test_script_entry>
- </description>
- </testcase>
- <testcase purpose="Check if SpeechSynthesisUtterance::onresume eventHandler can be fired properly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onresume">
- <description>
- <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onresume.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if SpeechSynthesisUtterance::onstart eventHandler can be fired properly" onload_delay="90" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onstart">
<description>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onstart.html</test_script_entry>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_onvoiceschanged_attibute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if SpeechSynthesis::pause() method works properly" onload_delay="5" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesis_pause">
- <description>
- <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_pause.html</test_script_entry>
- </description>
- </testcase>
+
<testcase purpose="Check if SpeechSynthesis::pause() method exists" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesis_pause_exist">
<description>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_pause_exist.html</test_script_entry>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_pending_attibute.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if SpeechSynthesis::resume() method works properly" onload_delay="5" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesis_resume">
- <description>
- <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_resume.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if SpeechSynthesis::resume() method exists" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesis_resume_exist">
<description>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_resume_exist.html</test_script_entry>
<test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesis_speaking_attibute.html</test_script_entry>
</description>
</testcase>
+ <testcase purpose="Test whether SpeechSynthesisUtterance::onerror is called with argument of proper type" component="W3C_HTML5 APIs/TBD/Speech" execution_type="auto" id="SpeechSynthesisUtterance_onerror">
+ <description>
+ <test_script_entry>/opt/tct-speech-w3c-tests/speech/SpeechSynthesisUtterance_onerror.html</test_script_entry>
+ </description>
+ </testcase>
</set>
</suite>
</test_definition>