-<!DOCTYPE html>
-<!--
-Copyright (c) 2014 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Md. Samsuddin Alam <ss.alam@samsung.com>
-
--->
-<html>
-<head>
-<title>SpeechSynthesis_cancel</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body bgcolor="FFFFFF">
-<div id="log"></div>
-<script>
-//==== TEST: SpeechSynthesis_cancel
-//==== LABEL Check if SpeechSynthesis::cancel() method works properly
-//==== PRIORITY P1
-//==== ONLOAD_DELAY 90
-//==== SPEC Tizen Web API:TBD:Speech:SpeechSynthesis:cancel M
-//==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
-//==== TEST_CRITERIA MR MNAST
-
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), speechMessage, speechMessage1, speechMessage2, returnValue;
-
-t.step(function () {
- speechMessage = new SpeechSynthesisUtterance("this is test");
-
- speechMessage.onend = function (event) {
- assert_false(speechSynthesis.pending);
- t.done();
- };
-
- window.speechSynthesis.speak(speechMessage);
- speechMessage1 = new SpeechSynthesisUtterance("this is test 1");
- window.speechSynthesis.speak(speechMessage1);
- speechMessage2 = new SpeechSynthesisUtterance("this is test 2");
- window.speechSynthesis.speak(speechMessage2);
- returnValue = window.speechSynthesis.cancel();
- assert_false(window.speechSynthesis.pending);
- assert_equals(returnValue, undefined, "returnValue should be undefined");
-});
-
-</script>
-</body>
+<!DOCTYPE html>\r
+<!--\r
+Copyright (c) 2014 Samsung Electronics Co., Ltd.\r
+\r
+Licensed under the Apache License, Version 2.0 (the License);\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+limitations under the License.\r
+\r
+Authors:\r
+ Md. Samsuddin Alam <ss.alam@samsung.com>\r
+\r
+-->\r
+<html>\r
+\r
+<head>\r
+<title>SpeechSynthesis_cancel</title>\r
+<meta charset="utf-8" />\r
+<script src="support/unitcommon.js"></script>\r
+</head>\r
+\r
+<body bgcolor="FFFFFF">\r
+<div id="log"></div>\r
+<script>\r
+//==== TEST: SpeechSynthesis_cancel\r
+//==== LABEL Check if SpeechSynthesis::cancel() method works properly\r
+//==== PRIORITY P1\r
+//==== ONLOAD_DELAY 90\r
+//==== SPEC Tizen Web API:TBD:Speech:SpeechSynthesis:cancel M\r
+//==== SPEC_URL https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html\r
+//==== TEST_CRITERIA MR MNAST\r
+\r
+setup({ timeout: 90000 });\r
+\r
+var t = async_test(document.title, { timeout: 90000 }), speechMessage, speechMessage1, speechMessage2, returnValue;\r
+\r
+t.step(function () {\r
+ speechMessage = new SpeechSynthesisUtterance("this is test");\r
+\r
+ speechMessage.onerror = function (event) {\r
+ if (event.error == 'canceled' || event.error == 'interrupted') {\r
+ assert_false(speechSynthesis.pending);\r
+ t.done();\r
+ }\r
+ }\r
+\r
+ window.speechSynthesis.speak(speechMessage);\r
+ speechMessage1 = new SpeechSynthesisUtterance("this is test 1");\r
+ window.speechSynthesis.speak(speechMessage1);\r
+ speechMessage2 = new SpeechSynthesisUtterance("this is test 2");\r
+ window.speechSynthesis.speak(speechMessage2);\r
+ returnValue = window.speechSynthesis.cancel();\r
+ assert_false(window.speechSynthesis.pending);\r
+ assert_equals(returnValue, undefined, "returnValue should be undefined");\r
+});\r
+\r
+</script>\r
+</body>\r
+\r
</html>
\ No newline at end of file