</spec>
</specs>
</testcase>
+ <testcase purpose="Check if MessageChannel interface exists" type="compliance" status="approved" component="WebAPI/Communication/HTML5 Web Messaging" execution_type="auto" priority="P3" id="webmessaging_MessageChannel_exists">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Check if MessageChannel interface exists</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageChannel_exists.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion usage="true" interface="MessageChannel" specification="HTML5 Web Messaging" section="Communication" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2012/CR-webmessaging-20120501/#dom-messagechannel</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if MessageEvent interface exists" type="compliance" status="approved" component="WebAPI/Communication/HTML5 Web Messaging" execution_type="auto" priority="P3" id="webmessaging_MessageEvent_exists">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Check if MessageEvent interface exists</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_exists.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/2012/CR-webmessaging-20120501/#messageeventinit</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if MessagePort interface exists" type="compliance" status="approved" component="WebAPI/Communication/HTML5 Web Messaging" execution_type="auto" priority="P3" id="webmessaging_MessagePort_exists">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Check if MessagePort interface exists</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessagePort_exists.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion usage="true" interface="MessagePort" specification="HTML5 Web Messaging" section="Communication" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2012/CR-webmessaging-20120501/#messageport</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check if document A contains an iframe element that contains document B, and script in document A calls postMessage() on the Window object of document B, a message event will be fired on that object works" type="compliance" status="approved" component="WebAPI/Communication/HTML5 Web Messaging" execution_type="auto" priority="P3" id="webmessaging_MessageEvent_example_message_event_fired">
+ <description>
+ <steps>
+ <step order="1">
+ <step_desc>Check if document A contains an iframe element that contains document B, and script in document A calls postMessage() on the Window object of document B, a message event will be fired on that object works</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>http://127.0.0.1:8080/opt/tct-webmessaging-w3c-tests/webmessaging/webmessaging_MessageEvent_example_message_event_fired.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/2012/CR-webmessaging-20120501/#messageeventinit</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
</set>
</suite>
</test_definition>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+ of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+ Ge, WeiX A <weix.a.ge@intel.com>
+
+-->
+
+<html>
+ <head>
+ <title>WebMessaging Test: webmessaging_MessageChannel_exists</title>
+ <link rel="author" title="Intel" href="http://www.intel.com/" />
+ <link rel="help" href="http://www.w3.org/TR/2012/CR-webmessaging-20120501/#messagechannel" />
+ <meta name="flags" content="" />
+ <meta name="assert" content="Check if MessageChannel interface exists" />
+ <script src="../resources/testharness.js"></script>
+ <script src="../resources/testharnessreport.js"></script>
+ </head>
+
+ <body>
+ <div id="log"></div>
+ <script>
+ test(function(){
+ assert_true("MessageChannel" in window);
+ }, document.title);
+ </script>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+ of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+ Liu, Shilong <shilongx.liu@intel.com>
+ Fan, Weiwei <weiwix.fan@intel.com>
+
+-->
+
+<html>
+ <head>
+ <title>WebMessaging Test: webmessaging_MessageEvent_example_message_event_fired</title>
+ <link rel="author" title="Intel" href="http://www.intel.com" />
+ <link rel="help" href="http://www.w3.org/TR/2012/CR-webmessaging-20120501/#web-messaging" />
+ <meta name="flags" content="" />
+ <meta name="assert" content="Check if document A contains an iframe element that contains document B, and script in document A calls postMessage() on the Window object of document B, a message event will be fired on that object works" />
+ <script src="../resources/testharness.js"></script>
+ <script src="../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <div id="log"></div>
+ <iframe src="./support/message_example_message_event_fired_test.html" frameborder="0" width="0" height="0"></iframe>
+ <script type="text/javascript">
+ var t = async_test(document.title);
+ var msg = "Hello world";
+ var o = document.getElementsByTagName('iframe')[0];
+ o.contentWindow.postMessage(msg, "*");
+
+ o.contentWindow.onmessage = function (e) {
+ assert_equals(e.data, msg);
+ t.done();
+ };
+ </script>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+ of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+ Ge, WeiX A <weix.a.ge@intel.com>
+
+-->
+
+<html>
+ <head>
+ <title>WebMessaging Test: webmessaging_MessageEvent_exists</title>
+ <link rel="author" title="Intel" href="http://www.intel.com/" />
+ <link rel="help" href="http://www.w3.org/TR/2012/CR-webmessaging-20120501/#messageevent" />
+ <meta name="flags" content="" />
+ <meta name="assert" content="Check if MessageEvent interface exists" />
+ <script src="../resources/testharness.js"></script>
+ <script src="../resources/testharnessreport.js"></script>
+ </head>
+
+ <body>
+ <div id="log"></div>
+ <script>
+ test(function(){
+ assert_true("MessageEvent" in window);
+ }, document.title);
+ </script>
+ </body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+ of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+ may be used to endorse or promote products derived from this work without
+ specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+ Ge, WeiX A <weix.a.ge@intel.com>
+
+-->
+
+<html>
+ <head>
+ <title>WebMessaging Test: webmessaging_MessagePort_exists</title>
+ <link rel="author" title="Intel" href="http://www.intel.com/" />
+ <link rel="help" href="http://www.w3.org/TR/2012/CR-webmessaging-20120501/#messageport" />
+ <meta name="flags" content="" />
+ <meta name="assert" content="Check if MessagePort interface exists" />
+ <script src="../resources/testharness.js"></script>
+ <script src="../resources/testharnessreport.js"></script>
+ </head>
+
+ <body>
+ <div id="log"></div>
+ <script>
+ test(function(){
+ assert_true("MessagePort" in window);
+ }, document.title);
+ </script>
+ </body>
+</html>