From: Liu, Xin Date: Wed, 14 Aug 2013 12:00:53 +0000 (+0800) Subject: Fixed TTS-1875 by moving dnd 5 TCs from delta to tct-dnd-html5-tests X-Git-Tag: 2.2.1_release~281^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77f34de898d2faf82a7af722d81465b266f20f46;p=test%2Ftct%2Fweb%2Fapi.git Fixed TTS-1875 by moving dnd 5 TCs from delta to tct-dnd-html5-tests Signed-off-by: Liu, Xin --- diff --git a/tct-dnd-html5-tests/configure.ac b/tct-dnd-html5-tests/configure.ac index 341160591..8b1a90103 100644 --- a/tct-dnd-html5-tests/configure.ac +++ b/tct-dnd-html5-tests/configure.ac @@ -3,5 +3,7 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign]) AC_CONFIG_FILES([Makefile \ dnd/Makefile \ +dnd/w3c/Makefile \ +dnd/images/Makefile \ common/Makefile resources/Makefile testkit/Makefile]) AC_OUTPUT diff --git a/tct-dnd-html5-tests/dnd/Makefile.am b/tct-dnd-html5-tests/dnd/Makefile.am index 06891ac5a..f8517398b 100644 --- a/tct-dnd-html5-tests/dnd/Makefile.am +++ b/tct-dnd-html5-tests/dnd/Makefile.am @@ -1,3 +1,4 @@ +SUBDIRS = w3c images DnD_SCRIPTS = * DnDdir = /opt/tct-dnd-html5-tests/dnd EXTRA_DIST = $(DnD_SCRIPTS) diff --git a/tct-dnd-html5-tests/dnd/images/COPYING b/tct-dnd-html5-tests/dnd/images/COPYING new file mode 100644 index 000000000..de0ccf6a9 --- /dev/null +++ b/tct-dnd-html5-tests/dnd/images/COPYING @@ -0,0 +1,10 @@ +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 + diff --git a/tct-dnd-html5-tests/dnd/images/Makefile.am b/tct-dnd-html5-tests/dnd/images/Makefile.am new file mode 100644 index 000000000..bfb5717fb --- /dev/null +++ b/tct-dnd-html5-tests/dnd/images/Makefile.am @@ -0,0 +1,3 @@ +dndimages_SCRIPTS = * +dndimagesdir = /opt/tct-dnd-html5-tests/dnd/images +EXTRA_DIST = $(dndimages_SCRIPTS) diff --git a/tct-dnd-html5-tests/dnd/images/blue.png b/tct-dnd-html5-tests/dnd/images/blue.png new file mode 100644 index 000000000..4498dd258 Binary files /dev/null and b/tct-dnd-html5-tests/dnd/images/blue.png differ diff --git a/tct-dnd-html5-tests/dnd/w3c/COPYING b/tct-dnd-html5-tests/dnd/w3c/COPYING new file mode 100644 index 000000000..6232633bc --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/COPYING @@ -0,0 +1,12 @@ +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 diff --git a/tct-dnd-html5-tests/dnd/w3c/Makefile.am b/tct-dnd-html5-tests/dnd/w3c/Makefile.am new file mode 100644 index 000000000..9bb1da2b1 --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/Makefile.am @@ -0,0 +1,3 @@ +DnDw3c_SCRIPTS = * +DnDw3cdir = /opt/tct-dnd-html5-tests/dnd/w3c +EXTRA_DIST = $(DnDw3c_SCRIPTS) diff --git a/tct-dnd-html5-tests/dnd/w3c/dragdrop_004.htm b/tct-dnd-html5-tests/dnd/w3c/dragdrop_004.htm new file mode 100644 index 000000000..eb129b4bc --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/dragdrop_004.htm @@ -0,0 +1,19 @@ + + + + HTML5 Drag and Drop: Auto state of draggable attribute for 'a' element + + + + + + + + +
+ + + + diff --git a/tct-dnd-html5-tests/dnd/w3c/dragdrop_005.htm b/tct-dnd-html5-tests/dnd/w3c/dragdrop_005.htm new file mode 100644 index 000000000..874f3ae5d --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/dragdrop_005.htm @@ -0,0 +1,19 @@ + + + + HTML5 Drag and Drop: Auto state of draggable attribute for div element + + + + + + + + +
+ + + + diff --git a/tct-dnd-html5-tests/dnd/w3c/dragdrop_006.htm b/tct-dnd-html5-tests/dnd/w3c/dragdrop_006.htm new file mode 100644 index 000000000..42d27b45e --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/dragdrop_006.htm @@ -0,0 +1,19 @@ + + + + HTML5 Drag and Drop: Auto state of draggable attribute for img element + + + + + + + + +
+ + + + diff --git a/tct-dnd-html5-tests/dnd/w3c/dragdrop_007.htm b/tct-dnd-html5-tests/dnd/w3c/dragdrop_007.htm new file mode 100644 index 000000000..822a1e7cb --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/dragdrop_007.htm @@ -0,0 +1,19 @@ + + + + HTML5 Drag and Drop: False state of draggable attribute + + + + + + + + +
+ + + + diff --git a/tct-dnd-html5-tests/dnd/w3c/dragdrop_008.htm b/tct-dnd-html5-tests/dnd/w3c/dragdrop_008.htm new file mode 100644 index 000000000..fa0377a06 --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/dragdrop_008.htm @@ -0,0 +1,19 @@ + + + + HTML5 Drag and Drop: True state of draggable attribute + + + + + + + + +
+ + + + diff --git a/tct-dnd-html5-tests/dnd/w3c/dragdrop_support.js b/tct-dnd-html5-tests/dnd/w3c/dragdrop_support.js new file mode 100644 index 000000000..f5a1d6417 --- /dev/null +++ b/tct-dnd-html5-tests/dnd/w3c/dragdrop_support.js @@ -0,0 +1,9 @@ +function AddEventListenersForElement(evt, callback, capture, element) +{ + element.addEventListener(evt, callback, capture); +} + +function LogTestResult(result) +{ + document.getElementById("test_result").firstChild.data = result; +} diff --git a/tct-dnd-html5-tests/tests.xml b/tct-dnd-html5-tests/tests.xml index d48591d4b..3f988488a 100644 --- a/tct-dnd-html5-tests/tests.xml +++ b/tct-dnd-html5-tests/tests.xml @@ -23,6 +23,106 @@ + + + + + + + Please refer to DnD/README + Pass + + + /opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_007.htm + + + + + http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute + + + + + + + + + + + Please refer to DnD/README + Pass + + + /opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_008.htm + + + + + http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute + + + + + + + + + + + Please refer to DnD/README + Pass + + + /opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_004.htm + + + + + http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute + + + + + + + + + + + Please refer to DnD/README + Pass + + + /opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_005.htm + + + + + http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute + + + + + + + + + + + Please refer to DnD/README + Pass + + + /opt/tct-dnd-html5-tests/dnd/w3c/dragdrop_006.htm + + + + + http://www.w3.org/TR/2012/WD-html5-20120329/dnd.html#the-draggable-attribute + + + +