[common][tct-customelement-w3c-tests][DPTTIZEN-3211 registerElement() has been removed] 03/253903/1
authorchen <chen89.chen@samsung.com>
Fri, 19 Feb 2021 08:13:05 +0000 (16:13 +0800)
committerchen <chen89.chen@samsung.com>
Fri, 19 Feb 2021 08:13:19 +0000 (16:13 +0800)
Change-Id: I4d6be13c5a335565645d0b40b26440af076fcbb3
Signed-off-by: chen <chen89.chen@samsung.com>
common/tct-customelement-w3c-tests/customelement/Document_registerElement.html [deleted file]
common/tct-customelement-w3c-tests/customelement/Document_registerElement_exist.html [deleted file]
common/tct-customelement-w3c-tests/customelement/Document_registerElement_misarg.html [deleted file]
common/tct-customelement-w3c-tests/customelement/Document_registerElement_with_options.html [deleted file]
common/tct-customelement-w3c-tests/customelement/support/element_common.js
common/tct-customelement-w3c-tests/tests.full.xml
common/tct-customelement-w3c-tests/tests.xml

diff --git a/common/tct-customelement-w3c-tests/customelement/Document_registerElement.html b/common/tct-customelement-w3c-tests/customelement/Document_registerElement.html
deleted file mode 100755 (executable)
index e4024b8..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 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:
-        Liu Xiaodan <xd123.liu@samsung.com>
-
--->
-<html>
-<head>
-<title>Document_registerElement</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Document_registerElement
-//==== LABEL  Check if method registerElement works properly
-//==== SPEC Tizen Web API Specifications:TBD::Document:registerElement M
-//==== SPEC_URL http://www.w3.org/TR/2014/WD-custom-elements-20141216/
-//==== PRIORITY P1
-//==== TEST_CRITERIA MR MMINA
-
-test(function () {
-    var GeneratedConstructor;
-
-    GeneratedConstructor = document.registerElement('x-a');
-    assert_type(GeneratedConstructor, "function", "Return value should be function.");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-customelement-w3c-tests/customelement/Document_registerElement_exist.html b/common/tct-customelement-w3c-tests/customelement/Document_registerElement_exist.html
deleted file mode 100755 (executable)
index 6bf4041..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 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:
-        Liu Xiaodan <xd123.liu@samsung.com>
-
--->
-<html>
-<head>
-<title>Document_registerElement_exist</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Document_registerElement_exist
-//==== LABEL  Check if registerElement method exists
-//==== SPEC Tizen Web API Specifications:TBD::Document:registerElement M
-//==== SPEC_URL http://www.w3.org/TR/2014/WD-custom-elements-20141216/
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-
-test(function () {
-    check_method_exists(document, "registerElement");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-customelement-w3c-tests/customelement/Document_registerElement_misarg.html b/common/tct-customelement-w3c-tests/customelement/Document_registerElement_misarg.html
deleted file mode 100755 (executable)
index 2d3a25d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 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:
-        Liu Xiaodan <xd123.liu@samsung.com>
-
--->
-<html>
-<head>
-<title>Document_registerElement_misarg</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Document_registerElement_misarg
-//==== LABEL Check whether registerElement method throws exception when argument is missing
-//==== SPEC Tizen Web API Specifications:TBD::Document:registerElement M
-//==== SPEC_URL http://www.w3.org/TR/2014/WD-custom-elements-20141216/
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-
-test(function () {
-    assert_throws({name: "TypeError"}, function () {
-        document.registerElement();
-    }, "Missing non-optional argument should throw an exception");
-}, document.title);
-
-</script>
-</body>
-</html>
diff --git a/common/tct-customelement-w3c-tests/customelement/Document_registerElement_with_options.html b/common/tct-customelement-w3c-tests/customelement/Document_registerElement_with_options.html
deleted file mode 100755 (executable)
index 9837d26..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2015 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:
-        Liu Xiaodan <xd123.liu@samsung.com>
-
--->
-<html>
-<head>
-<title>Document_registerElement_with_options</title>
-<meta charset="utf-8"/>
-<script src="support/unitcommon.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: Document_registerElement_with_options
-//==== LABEL Check whether registerElement method works properly  when with optional argument
-//==== SPEC Tizen Web API Specifications:TBD::Document:registerElement M
-//==== SPEC_URL http://www.w3.org/TR/2014/WD-custom-elements-20141216/
-//==== PRIORITY P1
-//==== TEST_CRITERIA MOA MR
-
-test(function () {
-    var GeneratedConstructor, obj, proto;
-
-    obj = document.createElement('a');
-    proto = Object.create(obj.constructor.prototype);
-    GeneratedConstructor = document.registerElement('x-element', { prototype: proto, extends: 'a'});
-    assert_type(GeneratedConstructor, "function", "Return value should be function.");
-}, document.title);
-
-</script>
-</body>
-</html>
index 5cddbe8bc723381a1c2de775e4ad0bbfba9de8a9..ec1824ac6b2b836c52cf54026d11df1ffae2407d 100755 (executable)
@@ -176,25 +176,6 @@ var ideographicCharsSingle = new CharsArray(IDEOGRAPHIC_CHARS_SINGLE);
 var ideographicCharsRanges = new CharRangesArray(IDEOGRAPHIC_CHARS_RANGES);
 var digitCharsRanges = new CharRangesArray(DIGIT_CHARS_RANGES);
 
-// Helper function, which verifies that given custom element name is valid
-function checkValidName(name) {
-    var doc = newHTMLDocument();
-    try {
-        doc.registerElement(name);
-    } catch (e) {
-        assert_unreached('The custom element name \'' + name +
-            '\' should be registered without errors');
-    }
-}
-
-// Helper function, which verifies that given custom element name is invalid
-function checkInvalidName(name) {
-    var doc = newHTMLDocument();
-    assert_throws('SyntaxError', function() {
-            doc.registerElement(name);
-        }, 'Registering invalid custom element name \'' + name + '\' should fail');
-}
-
 // Helper function to extract character code from given object
 // expected input: either charater code or one character long string.
 function getCharCode(c) {
index 61a8e6a75f93f6a9672afe1a7a2d329ab850a567..44590a77400692aae9e0b4b29ebdedd57f0a387e 100755 (executable)
 
       </specs>
       </testcase>
-      <testcase purpose="Check if method registerElement works properly " type="compliance" status="approved" component="TizenAPI/W3C/customelement" execution_type="auto" priority="P1" id="Document_registerElement">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement.html</test_script_entry>
-        </description>
-        <specs>
-
-      </specs>
-      </testcase>
-      <testcase purpose="Check if registerElement method exists" type="compliance" status="approved" component="TizenAPI/W3C/customelement" execution_type="auto" priority="P0" id="Document_registerElement_exist">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement_exist.html</test_script_entry>
-        </description>
-        <specs>
-
-      </specs>
-      </testcase>
-      <testcase purpose="Check whether registerElement method throws exception when argument is missing" type="compliance" status="approved" component="TizenAPI/W3C/customelement" execution_type="auto" priority="P2" id="Document_registerElement_misarg">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement_misarg.html</test_script_entry>
-        </description>
-        <specs>
-
-      </specs>
-      </testcase>
-      <testcase purpose="Check whether registerElement method works properly  when with optional argument " type="compliance" status="approved" component="TizenAPI/W3C/customelement" execution_type="auto" priority="P1" id="Document_registerElement_with_options">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement_with_options.html</test_script_entry>
-        </description>
-        <specs>
-
-      </specs>
-      </testcase>
     </set>
   </suite>
 </test_definition>
index 219e20c3f31c629451b9c9871ebe3ce870fbcc58..30669ae10d07d9c048e6862c1a533bf64126f597 100755 (executable)
           <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_createElement_misarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method registerElement works properly " component="TizenAPI/W3C/customelement" execution_type="auto" priority="P1" id="Document_registerElement">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check if registerElement method exists" component="TizenAPI/W3C/customelement" execution_type="auto" priority="P0" id="Document_registerElement_exist">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement_exist.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check whether registerElement method throws exception when argument is missing" component="TizenAPI/W3C/customelement" execution_type="auto" priority="P2" id="Document_registerElement_misarg">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement_misarg.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="Check whether registerElement method works properly  when with optional argument " component="TizenAPI/W3C/customelement" execution_type="auto" priority="P1" id="Document_registerElement_with_options">
-        <description>
-          <test_script_entry>/opt/tct-customelement-w3c-tests/customelement/Document_registerElement_with_options.html</test_script_entry>
-        </description>
-      </testcase>
     </set>
   </suite>
 </test_definition>