+++ /dev/null
-<!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>
+++ /dev/null
-<!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>
+++ /dev/null
-<!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>
+++ /dev/null
-<!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>
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) {
</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>
<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>