AC_CONFIG_FILES([Makefile \
dnd/Makefile \
+dnd/w3c/Makefile \
+dnd/images/Makefile \
common/Makefile resources/Makefile testkit/Makefile])
AC_OUTPUT
+SUBDIRS = w3c images
DnD_SCRIPTS = *
DnDdir = /opt/tct-dnd-html5-tests/dnd
EXTRA_DIST = $(DnD_SCRIPTS)
--- /dev/null
+The blue.png file under this folder come from https://github.com/w3c/web-platform-tests/tree/master/old-tests/submission/Microsoft/images/ without any modification.
+
+The blue.png file is copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
+
--- /dev/null
+dndimages_SCRIPTS = *
+dndimagesdir = /opt/tct-dnd-html5-tests/dnd/images
+EXTRA_DIST = $(dndimages_SCRIPTS)
--- /dev/null
+This test suite comes from
+https://github.com/w3c/web-platform-tests
+without any modification except necessary adjustment on reference path
+to test harness.
+
+These tests are copyright by W3C and/or the author listed in the test
+file. The tests are dual-licensed under the W3C Test Suite License:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-license
+and the BSD 3-clause License:
+http://www.w3.org/Consortium/Legal/2008/03-bsd-license
+under W3C's test suite licensing policy:
+http://www.w3.org/Consortium/Legal/2008/04-testsuite-copyright
--- /dev/null
+DnDw3c_SCRIPTS = *
+DnDw3cdir = /opt/tct-dnd-html5-tests/dnd/w3c
+EXTRA_DIST = $(DnDw3c_SCRIPTS)
--- /dev/null
+<!doctype html>
+<html>
+ <head>
+ <title>HTML5 Drag and Drop: Auto state of draggable attribute for 'a' element</title>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/"/>
+ <link rel="help" href="http://dev.w3.org/html5/spec/dnd.html#the-draggable-attribute"/>
+ <meta name="assert" content="Auto state of draggable attribute for 'a' element"/>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <div id=log></div>
+ <a href="#" style="display:none" id="target">Drag this</a>
+ <script type="text/javascript">
+ test(function() {assert_true(document.getElementById("target").draggable)}, "Auto state of draggable attribute for 'a' element");
+ </script>
+ </body>
+</html>
--- /dev/null
+<!doctype html>
+<html>
+ <head>
+ <title>HTML5 Drag and Drop: Auto state of draggable attribute for div element</title>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/"/>
+ <link rel="help" href="http://dev.w3.org/html5/spec/dnd.html#the-draggable-attribute"/>
+ <meta name="assert" content="Auto state of draggable attribute for div element"/>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <div id=log></div>
+ <div style="border:2px red solid; width:200px; height:50px; display:none;" id="target">SampleText</div>
+ <script type="text/javascript">
+ test(function() {assert_false(document.getElementById("target").draggable)}, "Auto state of draggable attribute for div element");
+ </script>
+ </body>
+</html>
--- /dev/null
+<!doctype html>
+<html>
+ <head>
+ <title>HTML5 Drag and Drop: Auto state of draggable attribute for img element</title>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/"/>
+ <link rel="help" href="http://dev.w3.org/html5/spec/dnd.html#the-draggable-attribute"/>
+ <meta name="assert" content="Auto state of draggable attribute for img element"/>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <div id=log></div>
+ <img style="width:200px; height:100px; display:none;" id="target"/>
+ <script type="text/javascript">
+ test(function() {assert_true(document.getElementById("target").draggable)}, "Auto state of draggable attribute for img element");
+ </script>
+ </body>
+</html>
--- /dev/null
+<!doctype html>
+<html>
+ <head>
+ <title>HTML5 Drag and Drop: False state of draggable attribute</title>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/"/>
+ <link rel="help" href="http://dev.w3.org/html5/spec/dnd.html#the-draggable-attribute"/>
+ <meta name="assert" content="False state of draggable attribute"/>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <div id=log></div>
+ <a href="#" style="display:none" id="target" draggable="false">Drag this</a>
+ <script type="text/javascript">
+ test(function() {assert_false(document.getElementById("target").draggable)}, "False state of draggable attribute");
+ </script>
+ </body>
+</html>
--- /dev/null
+<!doctype html>
+<html>
+ <head>
+ <title>HTML5 Drag and Drop: True state of draggable attribute</title>
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
+ <link rel="author" title="Microsoft" href="http://www.microsoft.com/"/>
+ <link rel="help" href="http://dev.w3.org/html5/spec/dnd.html#the-draggable-attribute"/>
+ <meta name="assert" content="True state of draggable attribute"/>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ </head>
+ <body>
+ <div id=log></div>
+ <a href="#" style="display:none" id="target" draggable="true">Drag this</a>
+ <script type="text/javascript">
+ test(function() {assert_true(document.getElementById("target").draggable)}, "True state of draggable attribute");
+ </script>
+ </body>
+</html>
--- /dev/null
+function AddEventListenersForElement(evt, callback, capture, element)
+{
+ element.addEventListener(evt, callback, capture);
+}
+
+function LogTestResult(result)
+{
+ document.getElementById("test_result").firstChild.data = result;
+}
</spec>
</specs>
</testcase>
+ <testcase purpose="Check false state of draggable attribute" type="compliance" status="approved" component="WebAPI/UI/HTML5 Drag and drop" execution_type="auto" priority="P2" id="dragdrop_007">
+ <description>
+ <pre_condition/>
+ <post_condition/>
+ <steps>
+ <step order="1">
+ <step_desc>Please refer to DnD/README</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_007.htm</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion element_type="attribute" element_name="draggable" interface="HTMLElement" specification="HTML5 Drag and drop" section="UI" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check true state of draggable attribute" type="compliance" status="approved" component="WebAPI/UI/HTML5 Drag and drop" execution_type="auto" priority="P2" id="dragdrop_008">
+ <description>
+ <pre_condition/>
+ <post_condition/>
+ <steps>
+ <step order="1">
+ <step_desc>Please refer to DnD/README</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_008.htm</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion element_type="attribute" element_name="draggable" interface="HTMLElement" specification="HTML5 Drag and drop" section="UI" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check auto state of draggable attribute for 'a' element" type="compliance" status="approved" component="WebAPI/UI/HTML5 Drag and drop" execution_type="auto" priority="P3" id="dragdrop_004">
+ <description>
+ <pre_condition/>
+ <post_condition/>
+ <steps>
+ <step order="1">
+ <step_desc>Please refer to DnD/README</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_004.htm</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 Drag and drop" section="UI" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check auto state of draggable attribute for div element" type="compliance" status="approved" component="WebAPI/UI/HTML5 Drag and drop" execution_type="auto" priority="P3" id="dragdrop_005">
+ <description>
+ <pre_condition/>
+ <post_condition/>
+ <steps>
+ <step order="1">
+ <step_desc>Please refer to DnD/README</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_005.htm</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 Drag and drop" section="UI" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
+ <testcase purpose="Check auto state of draggable attribute for img element" type="compliance" status="approved" component="WebAPI/UI/HTML5 Drag and drop" execution_type="auto" priority="P3" id="dragdrop_006">
+ <description>
+ <pre_condition/>
+ <post_condition/>
+ <steps>
+ <step order="1">
+ <step_desc>Please refer to DnD/README</step_desc>
+ <expected>Pass</expected>
+ </step>
+ </steps>
+ <test_script_entry>/opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_006.htm</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion usage="true" interface="HTMLElement" specification="HTML5 Drag and drop" section="UI" category="Tizen W3C API Specifications"/>
+ <spec_url>http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
</set>
</suite>
</test_definition>