</spec>
</specs>
</testcase>
+ <testcase purpose="check if initMessageEvent throws exception without required argument" type="compliance" status="approved" component="W3C_HTML5 APIs/Communication/HTML5 Web Messaging" execution_type="auto" priority="P2" id="webmessaging_MessageEvent_initMessageEvent_misarg">
+ <description>
+ <test_script_entry>/opt/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_initMessageEvent_misarg.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion usage="true" interface="MessageEvent" specification="HTML5 Web Messaging" section="Communication" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2015/REC-webmessaging-20150519/</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
</set>
</suite>
</test_definition>
<test_script_entry>/opt/tct-webmessaging-w3c-tests/webmessaging/w3c/without-ports/029.html</test_script_entry>
</description>
</testcase>
+ <testcase component="W3C_HTML5 APIs/Communication/HTML5 Web Messaging" execution_type="auto" id="webmessaging_MessageEvent_initMessageEvent_misarg" priority="P2" purpose="check if initMessageEvent throws exception without required argument">
+ <description>
+ <test_script_entry>/opt/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_initMessageEvent_misarg.html</test_script_entry>
+ </description>
+ </testcase>
</set>
</suite>
</test_definition>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2019 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:
+ Zhongyuan Yuan <zy123.yuan@samsung.com>
+
+-->
+<html>
+<head>
+<title>webmessaging_MessageEvent_initMessageEvent_misarg</title>
+<meta charset="utf-8"/>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: webmessaging_MessageEvent_initMessageEvent_misarg
+//==== LABEL check if initMessageEvent throws exception without required argument
+//==== SPEC Tizen Web API Specifications:TBD::MessageEvent:initMessageEvent M
+//==== SPEC_URL http://www.w3.org/TR/2015/REC-webmessaging-20150519/
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function() {
+ var event = new MessageEvent("message");
+ assert_throws(new TypeError(), function() {
+ event.initMessageEvent();
+ }, "Not enough arguments to initMessageEvent");
+}, document.title);
+
+</script>
+</body>
+</html>