[Tizen] code consistency improvement
authorPiotr Szydelko <p.szydelko@samsung.com>
Tue, 8 Oct 2013 14:13:57 +0000 (16:13 +0200)
committerPiotr Szydelko <p.szydelko@samsung.com>
Tue, 8 Oct 2013 14:27:33 +0000 (16:27 +0200)
Change-Id: Ic3e98b876fe2c1c175ec199b96843934faf47576

85 files changed:
tct-tizen-tizen-tests/resources/unitcommon.js [deleted file]
tct-tizen-tizen-tests/tests.full.xml
tct-tizen-tizen-tests/tests.xml
tct-tizen-tizen-tests/tizen/AbstractFilter_notexist.html
tct-tizen-tizen-tests/tizen/AttributeFilter_attributeName_attribute.html
tct-tizen-tizen-tests/tizen/AttributeFilter_constructor.html
tct-tizen-tizen-tests/tizen/AttributeFilter_exist.html
tct-tizen-tizen-tests/tizen/AttributeFilter_extend.html
tct-tizen-tizen-tests/tizen/AttributeFilter_matchFlag_attribute.html
tct-tizen-tizen-tests/tizen/AttributeFilter_matchValue_attribute.html
tct-tizen-tizen-tests/tizen/AttributeRangeFilter_attributeName_attribute.html
tct-tizen-tizen-tests/tizen/AttributeRangeFilter_constructor_min.html
tct-tizen-tizen-tests/tizen/AttributeRangeFilter_constructor_successful.html
tct-tizen-tizen-tests/tizen/AttributeRangeFilter_endValue_attribute.html
tct-tizen-tizen-tests/tizen/AttributeRangeFilter_exist.html
tct-tizen-tizen-tests/tizen/AttributeRangeFilter_extend.html
tct-tizen-tizen-tests/tizen/AttributeRangeFilter_initialValue_attribute.html
tct-tizen-tizen-tests/tizen/CompositeFilterType_enum_INTERSECTION.html
tct-tizen-tizen-tests/tizen/CompositeFilterType_enum_UNION.html
tct-tizen-tizen-tests/tizen/CompositeFilter_constructor.html
tct-tizen-tizen-tests/tizen/CompositeFilter_exist.html
tct-tizen-tizen-tests/tizen/CompositeFilter_extend.html
tct-tizen-tizen-tests/tizen/CompositeFilter_filters_attribute.html
tct-tizen-tizen-tests/tizen/CompositeFilter_type_attribute.html
tct-tizen-tizen-tests/tizen/ErrorCallback_notexist.html
tct-tizen-tizen-tests/tizen/FilterMatchFlag_enum_CONTAINS.html
tct-tizen-tizen-tests/tizen/FilterMatchFlag_enum_ENDSWITH.html
tct-tizen-tizen-tests/tizen/FilterMatchFlag_enum_EXACTLY.html
tct-tizen-tizen-tests/tizen/FilterMatchFlag_enum_FULLSTRING.html
tct-tizen-tizen-tests/tizen/FilterMatchFlag_enum_STARTSWITH.html
tct-tizen-tizen-tests/tizen/FitlerMatchFlag_enum_EXISTS.html
tct-tizen-tizen-tests/tizen/SimpleCoordinates_constructor_successful.html
tct-tizen-tizen-tests/tizen/SimpleCoordinates_exist.html
tct-tizen-tizen-tests/tizen/SimpleCoordinates_extend.html
tct-tizen-tizen-tests/tizen/SimpleCoordinates_latitude_attribute.html
tct-tizen-tizen-tests/tizen/SimpleCoordinates_longitude_attribute.html
tct-tizen-tizen-tests/tizen/SortModeOrder_enum_ASC.html
tct-tizen-tizen-tests/tizen/SortModeOrder_enum_DESC.html
tct-tizen-tizen-tests/tizen/SortMode_attributeName_attribute.html
tct-tizen-tizen-tests/tizen/SortMode_constructor.html
tct-tizen-tizen-tests/tizen/SortMode_exist.html
tct-tizen-tizen-tests/tizen/SortMode_extend.html
tct-tizen-tizen-tests/tizen/SortMode_order_attribute.html
tct-tizen-tizen-tests/tizen/SuccessCallback_notexist.html
tct-tizen-tizen-tests/tizen/Tizen_extend.html
tct-tizen-tizen-tests/tizen/Tizen_managerobject.html
tct-tizen-tizen-tests/tizen/Tizen_notexist.html
tct-tizen-tizen-tests/tizen/WebAPIError_code_attribute.html
tct-tizen-tizen-tests/tizen/WebAPIError_extend.html
tct-tizen-tizen-tests/tizen/WebAPIError_message_attribute.html
tct-tizen-tizen-tests/tizen/WebAPIError_name_attribute.html
tct-tizen-tizen-tests/tizen/WebAPIError_notexist.html
tct-tizen-tizen-tests/tizen/WebAPIException_code_attribute.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_ABORT_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_DATA_CLONE_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_DOMSTRING_SIZE_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_HIERARCHY_REQUEST_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_INDEX_SIZE_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_INUSE_ATTRIBUTE_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_INVALID_ACCESS_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_INVALID_CHARACTER_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_INVALID_MODIFICATION_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_INVALID_NODE_TYPE_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_INVALID_STATE_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_NAMESPACE_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_NETWORK_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_NOT_FOUND_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_NOT_SUPPORTED_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_NO_DATA_ALLOWED_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_NO_MODIFICATION_ALLOWED_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_QUOTA_EXCEEDED_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_SECURITY_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_SYNTAX_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_TIMEOUT_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_TYPE_MISMATCH_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_URL_MISMATCH_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_VALIDATION_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_const_WRONG_DOCUMENT_ERR.html
tct-tizen-tizen-tests/tizen/WebAPIException_extend.html
tct-tizen-tizen-tests/tizen/WebAPIException_message_attribute.html
tct-tizen-tizen-tests/tizen/WebAPIException_name_attribute.html
tct-tizen-tizen-tests/tizen/WebAPIException_notexist.html
tct-tizen-tizen-tests/tizen/support/tizen_common.js [new file with mode: 0644]
tct-tizen-tizen-tests/tizen/support/tizen_tizen_tests.js [deleted file]
tct-tizen-tizen-tests/tizen/support/unitcommon.js [new file with mode: 0644]

diff --git a/tct-tizen-tizen-tests/resources/unitcommon.js b/tct-tizen-tizen-tests/resources/unitcommon.js
deleted file mode 100644 (file)
index 9f972c1..0000000
+++ /dev/null
@@ -1,559 +0,0 @@
-/*
-
-Copyright (c) 2013 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:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
-   var head_src = document.head.innerHTML;
-   if (head_src.search(/\/testharness.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
-   }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
-    while (type in _registered_types) {
-        type = _registered_types[type];
-    }
-    return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
-    var extraArgument = [
-        null,
-        undefined,
-        "Tizen",
-        1,
-        false,
-        ["one", "two"],
-        {argument: 1},
-        function () {}
-    ], i;
-
-    for (i = 0; i < extraArgument.length; i++) {
-        object[methodName](extraArgument[i]);
-    }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- *   conversionTable = getTypeConversionExceptions("functionObject", true);
- *   for(i = 0; i < conversionTable.length; i++) {
- *       errorCallback = conversionTable[i][0];
- *       exceptionName = conversionTable[i][1];
- *
- *       assert_throws({name : exceptionName},
- *       function () {
- *           tizen.systemsetting.setProperty("HOME_SCREEN",
- *               propertyValue, successCallback, errorCallback);
- *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
- *   }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
-    var exceptionName = "TypeMismatchError",
-        conversionTable;
-    switch (conversionType) {
-        case "enum":
-            conversionTable = [
-                [undefined, exceptionName],
-                [null, exceptionName],
-                [0, exceptionName],
-                [true, exceptionName],
-                ["dummyInvalidEnumValue", exceptionName],
-                [{ }, exceptionName]
-            ];
-            break;
-        case "double":
-            conversionTable = [
-                [undefined, exceptionName],
-                [NaN, exceptionName],
-                [Number.POSITIVE_INFINITY, exceptionName],
-                [Number.NEGATIVE_INFINITY, exceptionName],
-                ["TIZEN", exceptionName],
-                [{ name : "TIZEN" }, exceptionName],
-                [function () { }, exceptionName]
-            ];
-            break;
-        case "object":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "functionObject":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "array":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "dictionary":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        default:
-            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
-    };
-
-    return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
-    var org_type = type, prop_name, prop_type, prop_value;
-
-    type = _resolve_registered_type(type);
-
-    if (typeof (type) === 'string') {
-        type = type.toLowerCase();
-        switch (type) {
-            case 'object':
-            case 'string':
-            case 'number':
-            case 'function':
-            case 'boolean':
-            case 'undefined':
-            case 'xml':
-                assert_equals(typeof (obj), type, description);
-                break;
-            case 'null':
-                assert_true(obj === null, description);
-                break;
-            case 'array':
-                assert_true(Array.isArray(obj), description);
-                break;
-            case 'date':
-                assert_true(obj instanceof Date, description);
-                break;
-            case 'byte':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'octet':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            default:
-                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
-        }
-    } else if (typeof (type) === 'function') {
-        assert_true(obj instanceof type, description);
-    } else if (typeof (type) === 'object') {
-        for (prop_name in type) {
-            prop_type = type[prop_name];
-            if (prop_type === 'function') {
-                assert_inherits(obj, prop_name);
-                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
-            } else {
-                assert_own_property(obj, prop_name);
-            }
-        }
-    } else {
-        assert_unreached('Fix your test. Wrong type ' + org_type);
-    }
-}
-
-function register_type(alias, type_spec) {
-    _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj  object to test which  has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    var tmp;
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        tmp = obj[attributeName];
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj  object to test which  has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{   var old_value = obj[attributeName];
-    obj[attributeName] = null;
-    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
-    obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
-    assert_throws({name: "TypeError"}, function () {
-        tizen[interfaceName]();
-    },"Wrong call as a function");
-    assert_throws({name: "TypeError"}, function () {
-        new tizen[interfaceName]();
-    },"Wrong call as a new function");
-    assert_throws({name: "TypeError"}, function () {
-        ({}) instanceof tizen[interfaceName];
-    },"instanceof exception");
-    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
-    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
-    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
-    assert_throws({
-        name: "TypeError"
-    }, function () {
-        tizen[constructorName]();
-    }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
-    assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
-    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
-    obj.newDummyMethod = function() {
-        return dummyMethodResult;
-    }
-    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
-    obj.newDummyAttribute = dummyAttribute;
-    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj  object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
-        val = obj[array], i;
-
-    if (!isNullable) {
-        obj[array] = null;
-        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
-        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
-        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        obj[array] = args[i];
-        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
-        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
-    }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
-        val = parentObj[obj], i;
-
-    if (!isNullable) {
-        parentObj[obj] = null;
-        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        parentObj[obj] = args[i];
-        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
-    }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- *     packageInformationEventCallback  = incorrectListeners[i][0];
- *     exceptionName = incorrectListeners[i][1];
- *     assert_throws({name : exceptionName},
- *        function () {
- *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- *         }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
-    var result = [], conversionTable, i, j, listenerName;
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for (i = 0; i < callbackNames.length; i++) {
-        for (j = 0; j < conversionTable.length; j++) {
-            listenerName = {};
-            listenerName[callbackNames[i]] = conversionTable[j][0];
-            result.push([listenerName, conversionTable[j][1]]);
-        }
-    }
-
-    return result;
-}
index 7484a448769b28d12260e9cb704458c56f447fd4..45de110bdbcef27170cf29243f76184ac7eabb72 100644 (file)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="CompositeFilterType INTERSECTION" type="compliance" status="approved" component="TizenAPI/Tizen/Tizen" execution_type="auto" priority="P1" id="CompositeFilterType_enum_INTERSECTION">
+      <testcase purpose="Test CompositeFilterType with type INTERSECTION" type="compliance" status="approved" component="TizenAPI/Tizen/Tizen" execution_type="auto" priority="P1" id="CompositeFilterType_enum_INTERSECTION">
         <description>
           <test_script_entry>/opt/tct-tizen-tizen-tests/tizen/CompositeFilterType_enum_INTERSECTION.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="CompositeFilterType UNION" type="compliance" status="approved" component="TizenAPI/Tizen/Tizen" execution_type="auto" priority="P1" id="CompositeFilterType_enum_UNION">
+      <testcase purpose="Test CompositeFilterType with type UNION" type="compliance" status="approved" component="TizenAPI/Tizen/Tizen" execution_type="auto" priority="P1" id="CompositeFilterType_enum_UNION">
         <description>
           <test_script_entry>/opt/tct-tizen-tizen-tests/tizen/CompositeFilterType_enum_UNION.html</test_script_entry>
         </description>
index a13bc5cc7a7bf098d518f951ce6956bceef0032d..30c805211f3b5e522db0b5fadad86195d386e4c5 100644 (file)
           <test_script_entry>/opt/tct-tizen-tizen-tests/tizen/AttributeRangeFilter_initialValue_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="CompositeFilterType INTERSECTION" component="TizenAPI/Tizen/Tizen" execution_type="auto" id="CompositeFilterType_enum_INTERSECTION">
+      <testcase purpose="Test CompositeFilterType with type INTERSECTION" component="TizenAPI/Tizen/Tizen" execution_type="auto" id="CompositeFilterType_enum_INTERSECTION">
         <description>
           <test_script_entry>/opt/tct-tizen-tizen-tests/tizen/CompositeFilterType_enum_INTERSECTION.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="CompositeFilterType UNION" component="TizenAPI/Tizen/Tizen" execution_type="auto" id="CompositeFilterType_enum_UNION">
+      <testcase purpose="Test CompositeFilterType with type UNION" component="TizenAPI/Tizen/Tizen" execution_type="auto" id="CompositeFilterType_enum_UNION">
         <description>
           <test_script_entry>/opt/tct-tizen-tizen-tests/tizen/CompositeFilterType_enum_UNION.html</test_script_entry>
         </description>
index 3cce10440e50e8e9f13c78067a735999c1df7f30..839f01c44048b570be4c3cac5977f32637e07e72 100644 (file)
@@ -37,7 +37,7 @@ Authors:
 <head>
 <title>AbstractFilter_notexist</title>
 <meta charset="utf-8">
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -51,7 +51,7 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("AbstractFilter");
-}, "AbstractFilter_notexist");
+}, document.title);
 
 </script>
 </body>
index 495929863ed00a57fd0ee62f07caf46807a39b07..5f659071abaec8b6131efd49bfbb035023a1b9f1 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>AttributeFilter_attributeName_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -61,7 +61,7 @@ test(function () {
     filter.attributeName = null;
     assert_not_equals(filter.attributeName, null, "attributeName should not accept null");
 
-}, "AttributeFilter_attributeName_attribute");
+}, document.title);
 
 </script>
 </body>
index aa7fc4bdbb1fde96d5ce5881106130090fb2f411..4be6fccadecb537054c245d7d27687abb3dcac6c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>AttributeFilter_constructor</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -46,7 +46,7 @@ test(function () {
         "Constructor did not create AttributeFilter object.");
     assert_equals(filter.attributeName, attrName,
         "attributeName should be equal to constructor argument.");
-}, "AttributeFilter_constructor");
+}, document.title);
 
 </script>
 </body>
index a504a129f2995a7cdc22924aa433ba2f4ccde4c1..316a11240c18d2bddfaae807d826e2cdf075fbfb 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 <head>
 <title>AttributeFilter_exist</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 test(function () {
     check_constructor("AttributeFilter");
-}, "AttributeFilter_exist");
+}, document.title);
 
 </script>
 </body>
index a7e74d57253790dc3d6c9c62487d1dc98dc8dc5d..4d21fef8c9401c2b2d3e63f9f627381fb9905469 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>AttributeFilter_extend</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -54,7 +54,7 @@ test(function () {
     filter = new tizen.AttributeFilter(attributeName, null, null);
 
     check_extensibility(filter);
-}, "AttributeFilter_extend");
+}, document.title);
 
 </script>
 </body>
index 1d0987f4aa72e942d8c25b0a8696d39c87e2f10b..b5df5067ba873110eb9e1dae66ca7fbec4ca47df 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>AttributeFilter_matchFlag_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -71,7 +71,7 @@ test(function () {
     filter = new tizen.AttributeFilter("name.firstName");
     assert_equals(filter.matchFlag, "EXACTLY", "matchFlag default value");
 
-}, "AttributeFilter_matchFlag_attribute");
+}, document.title);
 
 </script>
 </body>
index eaaf04cbfd03760fa1c70253820f4e7e9fbd97a6..c55ef42f66d3ea652912aaafd1fa27315ec80b25 100644 (file)
@@ -35,8 +35,8 @@ Authors:
 <head>
 <title>AttributeFilter_matchValue_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -69,7 +69,7 @@ test(function () {
     filter = new tizen.AttributeFilter("name.firstName", "CONTAINS");
     assert_equals(filter.matchValue, null, "matchValue default value");
 
-}, "AttributeFilter_matchValue_attribute");
+}, document.title);
 
 </script>
 </body>
index 863f05ab0c2587f0b7587d790658be8bb2e39d2e..437c71206af4532cfcdc246d2e1cec549b4e3ff9 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>AttributeRangeFilter_attributeName_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -64,7 +64,7 @@ test(function () {
     filter.attributeName = null;
     assert_not_equals(filter.attributeName, null, "attributeName should not accept null");
 
-}, "AttributeRangeFilter_attributeName_attribute");
+}, document.title);
 
 </script>
 </body>
index 70a06ce0b4b1a17d21d8a4ff769f2fb7498a0894..395b7d63c2a28fb74a9dd254c13ed2366e63570d 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>AttributeRangeFilter_constructor_min</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -56,7 +56,7 @@ test(function () {
         "Constructor did not create AttributeRangeFilter object.");
     assert_equals(filter.attributeName, attributeName,
         "attributeName is different from argument of cunstructor");
-}, "AttributeRangeFilter_constructor_min");
+}, document.title);
 
 </script>
 </body>
index 02dd9391a3d3299e9c83a840ab5d5d3049930cc0..a30eb482341db51159af8992e391bcd36c569e9e 100644 (file)
@@ -35,8 +35,8 @@ Authors:
 <head>
 <title>AttributeRangeFilter_constructor_successful</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -58,7 +58,7 @@ test(function () {
     assert_true(filter instanceof tizen.AttributeRangeFilter,
         "Constructor did not create AttributeRangeFilter object.");
     assert_equals(filter.attributeName, "startDate", "Check if attributeName equals to the value that is set when create AttributeRangeFilter");
-}, "AttributeRangeFilter_constructor_successful");
+}, document.title);
 
 </script>
 </body>
index f6cb40e6f2ab3ebc9c8304d8cb7677d30ee71ef3..34edbdc3cc892486120c6ab33f1e96b0c66a79f6 100644 (file)
@@ -35,8 +35,8 @@ Authors:
 <head>
 <title>AttributeRangeFilter_endValue_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -74,7 +74,7 @@ test(function () {
     filter = new tizen.AttributeRangeFilter("startDate");
     assert_equals(filter.endValue, null, "endValue default value");
 
-}, "AttributeRangeFilter_endValue_attribute");
+}, document.title);
 
 </script>
 </body>
index bd778dd662127e241f35b5d4a019fed21a82a2fa..3c0f895f9d8dd599cd2126e7094648a93e135d7c 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>AttributeRangeFilter_exist</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 test(function () {
     check_constructor("AttributeRangeFilter");
-}, "AttributeRangeFilter_exist");
+}, document.title);
 
 </script>
 </body>
index b6953eb332a983cdab685402841e5bee3e1c08bb..9bee157692feff722b4f5c2567683dea8268b2cd 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>AttributeRangeFilter_extend</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -53,7 +53,7 @@ test(function () {
     filter = new tizen.AttributeRangeFilter("startDate", 15, 85);
 
     check_extensibility(filter);
-}, "AttributeRangeFilter_extend");
+}, document.title);
 
 </script>
 </body>
index b2c799ceaaccfbccd82430b359303e6d3e877e18..411769ef024b613481e85533120300a19e40d11c 100644 (file)
@@ -35,8 +35,8 @@ Authors:
 <head>
 <title>AttributeRangeFilter_initialValue_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -74,7 +74,7 @@ test(function () {
     filter = new tizen.AttributeRangeFilter("startDate");
     assert_equals(filter.initialValue, null, "initialValue default value");
 
-}, "AttributeRangeFilter_initialValue_attribute");
+}, document.title);
 
 </script>
 </body>
index 2ebd9c691ef8f3b4b3a430f4e5a53ee5403a76d2..6045ccb9fba8b3b578535e470c3a2b594ac1a18a 100644 (file)
@@ -36,15 +36,15 @@ Authors:
 <head>
 <title>CompositeFilterType_enum_INTERSECTION</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CompositeFilterType_enum_INTERSECTION
-//==== LABEL CompositeFilterType INTERSECTION
+//==== LABEL Test CompositeFilterType with type INTERSECTION
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Tizen:Tizen:CompositeFilter:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tizen.html
@@ -56,7 +56,7 @@ test(function () {
     desc = "Create a Tizen CompositeFilter object with type " + type;
 
     tizen_CompositeFilter_create(type, desc);
-}, "CompositeFilterType_enum_INTERSECTION");
+}, document.title);
 
 </script>
 </body>
index ad30918d73f3830ea65e44a8d951750e5f835e79..ccd501cc6247ab09043e7437109558ff83960514 100644 (file)
@@ -36,15 +36,15 @@ Authors:
 <head>
 <title>CompositeFilterType_enum_UNION</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CompositeFilterType_enum_UNION
-//==== LABEL CompositeFilterType UNION
+//==== LABEL Test CompositeFilterType with type UNION
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Tizen:Tizen:CompositeFilter:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tizen.html
@@ -56,7 +56,7 @@ test(function () {
     desc = "Create a Tizen CompositeFilter object with type " + type;
 
     tizen_CompositeFilter_create(type, desc);
-}, "CompositeFilterType_enum_UNION");
+}, document.title);
 
 </script>
 </body>
index 512822b07fdfe03a66d1b4023b19747fb6674a45..48625d1bb9c2feb9dfffb86acdb5ec7f1697b8b6 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 <head>
 <title>CompositeFilter_constructor</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -60,7 +60,7 @@ test(function () {
     assert_true(filter instanceof tizen.CompositeFilter,
         "Constructor did not create CompositeFilter object.");
     assert_equals(filter.type, type, "type should be equal to constructor argument.");
-}, "CompositeFilter_constructor");
+}, document.title);
 
 </script>
 </body>
index c985dfa1b6b0ed494119382333cceb9edf64b825..7e58cefec2bc102b94fe8b369281b31a61f7054e 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 <head>
 <title>CompositeFilter_exist</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 test(function () {
     check_constructor("CompositeFilter");
-}, "CompositeFilter_exist");
+}, document.title);
 
 </script>
 </body>
index a726a0431775a2e7e1154fdf2ed717cc8703c319..b5b08a663e5aeda7c0254ee052afe7dbc6628294 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 <head>
 <title>CompositeFilter_extend</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -59,7 +59,7 @@ test(function () {
     filter = new tizen.CompositeFilter(type, [firstNameFilter, lastNameFilter]);
 
     check_extensibility(filter);
-}, "CompositeFilter_extend");
+}, document.title);
 
 </script>
 </body>
index 4ab240e4120531198b3b40471863658d02c6554f..caf7853a366a8f2df74da326d04dc0b03f36c22c 100644 (file)
@@ -35,8 +35,8 @@ Authors:
 <head>
 <title>CompositeFilter_filters_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -72,7 +72,7 @@ test(function () {
     filter.filters = null;
     assert_not_equals(filter.filters, null, "filter.filters should not accept null");
 
-}, "CompositeFilter_filters_attribute");
+}, document.title);
 
 </script>
 </body>
index e3bdcb6981562d73f4c867a2220a7b5eac195b59..589cb1a6e6819ae5eb4a291a4e6c37d8b1aa635a 100644 (file)
@@ -35,8 +35,8 @@ Authors:
 <head>
 <title>CompositeFilter_type_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -68,7 +68,7 @@ test(function () {
     filter.type = null;
     assert_equals(filter.type, "UNION", "filter.type should ignore null assignment");
 
-}, "CompositeFilter_type_attribute");
+}, document.title);
 
 </script>
 </body>
index d970e603625b7d41498fe39cfd3b59dc9a8b6540..9ca7b8643cf05034263e243687732993afacf364 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <head>
 <title>ErrorCallback_notexist</title>
 <meta charset="utf-8">
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA CBNIO
 test(function () {
     check_no_interface_object("ErrorCallback");
-}, "ErrorCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index b8eb5c6ac8b8c1d437ea20094a0fb1a09b9805cd..5a97dea2bbf1b10cd0b4646fc783aaf17593c81c 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>FilterMatchFlag_enum_CONTAINS</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -57,7 +57,7 @@ test( function () {
 
     new tizen.AttributeFilter("name.firstName", matchFlag, "Chris");
 
-}, "FilterMatchFlag_enum_CONTAINS");
+}, document.title);
 
 </script>
 </body>
index da66191bc4363d6df43765b8ceeec2e9fc31f6b5..a81e66e2cb35631cbc77fcb8b2d22105091d0b77 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>FilterMatchFlag_enum_ENDSWITH</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -57,7 +57,7 @@ test( function () {
 
     new tizen.AttributeFilter("name.firstName", matchFlag, "Chris");
 
-}, "FilterMatchFlag_enum_ENDSWITH");
+}, document.title);
 
 </script>
 </body>
index 6d84a2631119036622b50b259f872921c22619e5..1e6d2711a7c902f52bbb367a0da8178a3e66a584 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>FilterMatchFlag_enum_EXACTLY</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -57,7 +57,7 @@ test( function () {
 
     new tizen.AttributeFilter("name.firstName", matchFlag, "Chris");
 
-}, "FilterMatchFlag_enum_EXACTLY");
+}, document.title);
 
 </script>
 </body>
index 9161aa186bfbb64a26df4f59b638ecbb0d022b1e..39988cd731f4e3ff835a4cf31126a072f7717dea 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>FilterMatchFlag_enum_FULLSTRING</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -57,7 +57,7 @@ test(function () {
 
     new tizen.AttributeFilter("name.firstName", matchFlag, "Chris");
 
-}, "FilterMatchFlag_enum_FULLSTRING");
+}, document.title);
 
 </script>
 </body>
index 9277e0b5b01c4d9a06d0055c6121114658e9c546..f01c572d42fa12fede12b866ee11caa2f5cd2f45 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>FilterMatchFlag_enum_STARTSWITH</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -57,7 +57,7 @@ test(function () {
 
     new tizen.AttributeFilter("name.firstName", matchFlag, "Chris");
 
-}, "FilterMatchFlag_enum_STARTSWITH");
+}, document.title);
 
 </script>
 </body>
index b93573bf3a92881f9d33be177a7d840dddf74203..23c1511e26952b3f8eeb13aab71b938e09f76578 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>FitlerMatchFlag_enum_EXISTS</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -57,7 +57,7 @@ test(function () {
 
     new tizen.AttributeFilter("name.firstName", matchFlag, "Chris");
 
-}, "FitlerMatchingFlag_enum_EXISTS");
+}, document.title);
 
 </script>
 </body>
index d6867921141f3f3ca4ae68d50e3c5455008cb9b3..7dda4e0d6b22ad2971a1f2c41e821fa9e9e8b978 100644 (file)
@@ -35,8 +35,8 @@ Authors:
 <head>
 <title>SimpleCoordinates_constructor_successful</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -63,7 +63,7 @@ test(function () {
         "Check if longitude equals to the value that is set when create SimpleCoordinates");
     assert_not_equals(coordinates, null, "coordinates should not be null");
 
-}, "SimpleCoordinates_constructor_successful");
+}, document.title);
 
 </script>
 </body>
index 372b4cbf7a7dc82d1b28ea1b3e5ab08dc8f0643c..68b39bfcac58de5a591c5e0aac7b5805912aaf0e 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 <head>
 <title>SimpleCoordinates_exist</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 test(function () {
     check_constructor("SimpleCoordinates");
-}, "SimpleCoordinates_exist");
+}, document.title);
 
 </script>
 </body>
index 4181f2017338b33e7277c7c94e221d43290a5cae..563fc9f7f323ac35872a3e45b6f14a9f85a0cfaa 100644 (file)
@@ -37,7 +37,7 @@ Authors:
 <head>
 <title>SimpleCoordinates_extend</title>
 <meta charset="utf-8">
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 
@@ -57,7 +57,7 @@ test(function () {
     coordinates = new tizen.SimpleCoordinates(latitude, longitude);
 
     check_extensibility(coordinates);
-}, "SimpleCoordinates_extend");
+}, document.title);
 
 </script>
 </body>
index 4056f894049b000041145e08a574e2320055470e..fa05f6112f8183a2440cb510add4e0d977d12876 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>SimpleCoordinates_latitude_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -63,7 +63,7 @@ test(function () {
 
     check_not_nullable(coordinates, "latitude");
 
-}, "SimpleCoordinates_latitude_attribute");
+}, document.title);
 
 </script>
 </body>
index 314a17f357f3092b708e36d90743bc9c5ac18816..2ede739966f435fbd43bce2034d103b94ff3246f 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>SimpleCoordinates_longitude_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -63,7 +63,7 @@ test(function () {
 
     check_not_nullable(coordinates, "longitude");
 
-}, "SimpleCoordinates_longitude_attribute");
+}, document.title);
 
 </script>
 </body>
index 03a3151afe12829965cbe5354a053b0b21e40a60..da417988e61d74f71372913a98dfec7eeecd5bf5 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>SortModeOrder_enum_ASC</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -59,7 +59,7 @@ test(function () {
 
     assert_equals(sortMode.order, order, "sortMode.order");
 
-}, "SortModeOrder_enum_ASC");
+}, document.title);
 
 </script>
 </body>
index 1e50b919d3d8eaf1699f9f48982524ffc5f11786..836bec214d7bf39a23a6ee06b66e1d7b99864f81 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>SortModeOrder_enum_DESC</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -59,7 +59,7 @@ test( function () {
 
     assert_equals(sortMode.order, order, "sortMode.order");
 
-}, "SortModeOrder_enum_DESC");
+}, document.title);
 
 </script>
 </body>
index 535d4afd843bb4819f505916beb028a63a40170a..d4ff7548cd7f9d3be9071744fc28afc5c152c34a 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>SortMode_attributeName_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -61,7 +61,7 @@ test(function () {
 
     check_not_nullable(sortMode, "attributeName");
 
-}, "SortMode_attributeName_attribute");
+}, document.title);
 
 </script>
 </body>
index 1b18da3b9f1c7a6b3cb672ae0cb3bd2c4e9f3059..e9f43391c83847b65f9384c8265f366b0f7b393a 100644 (file)
@@ -36,8 +36,8 @@ Authors:
 <head>
 <title>SortMode_constructor</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -60,7 +60,7 @@ test(function () {
         "Constructor did not create SortMode object.");
     assert_equals(sortMode.attributeName, "name.firstName", "attributeName should be set");
     assert_equals(order, sortMode.order, "order should be set");
-}, "SortMode_constructor");
+}, document.title);
 
 </script>
 </body>
index 42231e54c212b063bdd20228f94df62710ac6ffa..29d8156076b65dcbe1cecd803d9aca3f96efae9f 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 <head>
 <title>SortMode_exist</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 //==== TEST_CRITERIA CONSTRF
 test(function () {
     check_constructor("SortMode");
-}, "SortMode_exist");
+}, document.title);
 
 </script>
 </body>
index a50ba061ce6f50facaa53bbec6e593f3412f1a14..5dcaf264038934d38caf307efc7e9dda8eb08f33 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 <head>
 <title>SortMode_extend</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -56,7 +56,7 @@ test(function () {
     sortMode = new tizen.SortMode("name.firstName", order);
 
     check_extensibility(sortMode);
-}, "SortMode_extend");
+}, document.title);
 
 </script>
 </body>
index c0923b7ab775da76ed868206b0765228f334edb7..5abb329418376f8221919b66ae10c0acb2d167f6 100644 (file)
@@ -35,7 +35,7 @@ Authors:
 <head>
 <title>SortMode_order_attribute</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -68,7 +68,7 @@ test(function () {
     sortMode = new tizen.SortMode("name.firstName");
     assert_equals(sortMode.order, "ASC", "order default value");
 
-}, "SortMode_order_attribute");
+}, document.title);
 
 </script>
 </body>
index a1271be023f10f6976435d2cf74f429d997eb97a..439e2ebd8347ce0a6a0ee20d53c825be0c493ae1 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <head>
 <title>SuccessCallback_notexist</title>
 <meta charset="utf-8">
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA CBNIO
 test(function () {
     check_no_interface_object("SuccessCallback");
-}, "SuccessCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index e689f73a22f2c726a8832c90848b11b1f15cd4e4..852c2e3e3c60ae6b2eabadcae7d3bb11ee29e1d0 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <head>
 <title>Tizen_extend</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA OBX
 test(function () {
     check_extensibility(tizen);
-}, "Tizen_extend");
+}, document.title);
 
 </script>
 </body>
index 068739683154c6467417e89261f1a230cc59e4a2..b9614d2a7987dc30c69123b97c02f36d5fe15b1c 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <head>
 <title>Tizen_managerobject</title>
 <meta charset="utf-8">
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA
 test(function () {
     assert_exists(window, "tizen");
-}, "Tizen_managerobject");
+}, document.title);
 
 </script>
 </body>
index 81e75dae7cab5e27949573ac6123962b5bb7058f..c236e2a0233738308d3687fee5f7474d7b3637e2 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <head>
 <title>Tizen_notexist</title>
 <meta charset="utf-8">
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("Tizen");
-}, "Tizen_notexist");
+}, document.title);
 
 </script>
 </body>
index 0b5a69360a131de8b74bda409dd50943eb19bab3..15982d49c163adb73311bef0e2e21c8a3a0e7a2c 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIError_code_attribute</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -48,7 +48,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tizen.html
 //==== TEST_CRITERIA AE AT ARO
 
-var t = async_test("WebAPIError_code_attribute"), onAPIError;
+var t = async_test(document.title), onAPIError;
 t.step(function () {
     onAPIError = t.step_func(function (error) {
         assert_true("code" in error, "No code attribute");
index df2235aa5e7abd14ef0b145838d2555621cd9268..622ebf935b4f781ea676ece5e7a0a3ad1c68de9f 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIError_extend</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -48,7 +48,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tizen.html
 //==== TEST_CRITERIA OBX
 
-var t = async_test("WebAPIError_extend"), onAPIError;
+var t = async_test(document.title), onAPIError;
 t.step(function () {
     onAPIError = t.step_func(function (error) {
         check_extensibility(error);
index db64f80741d6fb059e2412df239e74703b57fc61..57729e074654b7cab88f6ab46699fe1601087d54 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIError_message_attribute</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -48,7 +48,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tizen.html
 //==== TEST_CRITERIA AE AT ARO
 
-var t = async_test("WebAPIError_message_attribute"), onAPIError, oldMessage;
+var t = async_test(document.title), onAPIError, oldMessage;
 t.step(function () {
     onAPIError = t.step_func(function (error) {
         assert_true("message" in error, "No message attribute");
index 7219f7d84e6bfc7ef258540ef220094eedc8a75a..264f32b57be1f6dfedbbff56d8628f384d88d9bd 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIError_name_attribute</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -48,7 +48,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/tizen.html
 //==== TEST_CRITERIA AE AT ARO
 
-var t = async_test("WebAPIError_name_attribute"), onAPIError;
+var t = async_test(document.title), onAPIError;
 t.step(function () {
     onAPIError = t.step_func(function (error) {
         assert_true("name" in error, "No name attribute");
index 9202dd0ea8a53d223ad6035ad0fc2ee9a026b96d..ecc2cc678c477c9dd15a57e834198bf162154ea9 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIError_notexist</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("WebAPIError");
-}, "WebAPIError_notexist");
+}, document.title);
 
 </script>
 </body>
index af4f4a2f3bcc991da692106ff791c29d21768c92..0d7e00805578dca0ca2f4acd379039103ff4bb9a 100644 (file)
@@ -21,8 +21,8 @@ Authors:
 <html>
 <head>
 <title>WebAPIException_code_attribute</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ test(function () {
 
     assert_true("code" in error, "No message attribute");
     check_readonly(error, "code", DOM_CODE_NOT_FOUND_ERR, "unsigned short", 1);
-}, "WebAPIException_code_attribute");
+}, document.title);
 
 </script>
 </body>
index 6edef077196559a8a42d40dceb64fe4a0b3f602a..24693565473cb3874749ef02456c5b1a4ea3615c 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_ABORT_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "ABORT_ERR", 20, "unsigned short", 1);
-}, "WebAPIException_const_ABORT_ERR");
+}, document.title);
 
 </script>
 </body>
index f4dd9ce3e436ae11d98cac82fb261ae51c98c57a..65c97fff8dac759b066594fdea4ba42e460c0d8b 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_DATA_CLONE_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -51,7 +51,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "DATA_CLONE_ERR", 25, "unsigned short", 1);
-}, "WebAPIException_const_DATA_CLONE_ERR");
+}, document.title);
 
 </script>
 </body>
index 02f1ca880b581a94a4847c4a2fe837f1661e00a9..85a322cb7879c1afbe9565884448c334108cb99e 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_DOMSTRING_SIZE_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "DOMSTRING_SIZE_ERR", 2, "unsigned short", 1);
-}, "WebAPIException_const_DOMSTRING_SIZE_ERR");
+}, document.title);
 
 </script>
 </body>
index 6262d6e3a6d1c7aa29f7f694aab87193e765d005..25dd96324d44373fe9ab90d56f6c9f0475c23940 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_HIERARCHY_REQUEST_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "HIERARCHY_REQUEST_ERR", 3, "unsigned short", 1);
-}, "WebAPIException_const_HIERARCHY_REQUEST_ERR");
+}, document.title);
 
 </script>
 </body>
index 36a0a8dba77391be2d4d66a604ac3998b87ee8d8..5d9c6a800c533de8b94d30a03077718470c1dd05 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_INDEX_SIZE_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "INDEX_SIZE_ERR", 1, "unsigned short", 2);
-}, "WebAPIException_const_INDEX_SIZE_ERR");
+}, document.title);
 
 </script>
 </body>
index a31b0db0e65f7c886054d0592f913ffc22fa5e4c..f6f1b10f5928035c4e8974ca29b3e7221c185338 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_INUSE_ATTRIBUTE_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "INUSE_ATTRIBUTE_ERR", 10, "unsigned short", 1);
-}, "WebAPIException_const_INUSE_ATTRIBUTE_ERR");
+}, document.title);
 
 </script>
 </body>
index ffe202ed3e726437744f998803193723290773a0..bc9bb5c6f9a6b7fea8e146922350093e81cc3298 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_INVALID_ACCESS_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "INVALID_ACCESS_ERR", 15, "unsigned short", 1);
-}, "WebAPIException_const_INVALID_ACCESS_ERR");
+}, document.title);
 
 </script>
 </body>
index e5066c6ee7a4f8eece087cf5fe53c3fb9190df7d..31d7c9051a74d5ec9aa5705110c10d7dd36f61de 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_INVALID_CHARACTER_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "INVALID_CHARACTER_ERR", 5, "unsigned short", 1);
-}, "WebAPIException_const_INVALID_CHARACTER_ERR");
+}, document.title);
 
 </script>
 </body>
index bd6670cd781cb006268ebb14338fd9c8ade7c93e..edab19bc9893aeadb557ed87db0ef62e9a89205e 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_INVALID_MODIFICATION_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "INVALID_MODIFICATION_ERR", 13, "unsigned short", 1);
-}, "WebAPIException_const_INVALID_MODIFICATION_ERR");
+}, document.title);
 
 </script>
 </body>
index cecb33dbdbc729b4cdeef71b9eb1eda92d3f8389..3c14a2d00be17a4b7a0c585fe4b2b673fed191a7 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_INVALID_NODE_TYPE_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "INVALID_NODE_TYPE_ERR", 24, "unsigned short", 1);
-}, "WebAPIException_const_INVALID_NODE_TYPE_ERR");
+}, document.title);
 
 </script>
 </body>
index 8a263eecdb208b0c3990fd8230758125e79f5f72..5c9bb19469f2b7b77d995a50e4ecc95f713fbc4e 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_INVALID_STATE_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "INVALID_STATE_ERR", 11, "unsigned short", 1);
-}, "WebAPIException_const_INVALID_STATE_ERR");
+}, document.title);
 
 </script>
 </body>
index 9998cc9add938586946ac77240516e7daabe0dd4..0f58b12f63ff20051a0783eb17be42f7a3142a52 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_NAMESPACE_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "NAMESPACE_ERR", 14, "unsigned short", 1);
-}, "WebAPIException_const_NAMESPACE_ERR");
+}, document.title);
 
 </script>
 </body>
index 6f22da7c313545ecbf664d687052afa221a2a903..3ec84b43d285405993dd6ee31ebf265ec9291e76 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_NETWORK_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "NETWORK_ERR", 19, "unsigned short", 1);
-}, "WebAPIException_const_NETWORK_ERR");
+}, document.title);
 
 </script>
 </body>
index f9e718e60209c41a8fc369a0869dbec603c79cd1..040ccbc793b2972d1154be885a4d80d2b573a1a1 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_NOT_FOUND_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "NOT_FOUND_ERR", 8, "unsigned short", 1);
-}, "WebAPIException_const_NOT_FOUND_ERR");
+}, document.title);
 
 </script>
 </body>
index dbb91eb40aa61633478d9676131ce80941685377..b56b0449646f4a060c12418ffc616a0dcbfc9e19 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_NOT_SUPPORTED_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "NOT_SUPPORTED_ERR", 9, "unsigned short", 1);
-}, "WebAPIException_const_NOT_SUPPORTED_ERR");
+}, document.title);
 
 </script>
 </body>
index fc58014b18692c1269de169b50753d9431b859a0..eb74ee02f63a5a3da885d1290e9bb8cf9dd9e6fd 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_NO_DATA_ALLOWED_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "NO_DATA_ALLOWED_ERR", 6, "unsigned short", 1);
-}, "WebAPIException_const_NO_DATA_ALLOWED_ERR");
+}, document.title);
 
 </script>
 </body>
index dd8178539ee16fa3b618877ba9a9cb0dfc73d59a..9b71cce38a2dddf5cf90103cfce335ea66f337e7 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_NO_MODIFICATION_ALLOWED_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "NO_MODIFICATION_ALLOWED_ERR", 7, "unsigned short", 1);
-}, "WebAPIException_const_NO_MODIFICATION_ALLOWED_ERR");
+}, document.title);
 
 </script>
 </body>
index 587725549f71d3a9a606b94a5b2db6037c54aebf..b87285c130d44e64662750477639133f03b33f0d 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_QUOTA_EXCEEDED_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "QUOTA_EXCEEDED_ERR", 22, "unsigned short", 1);
-}, "WebAPIException_const_QUOTA_EXCEEDED_ERR");
+}, document.title);
 
 </script>
 </body>
index 622765e87c54f4b37c81e72b570ee3cced713d67..dac02a9b8b5a65d4d25e874c79b5a24fa2691b65 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_SECURITY_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "SECURITY_ERR", 18, "unsigned short", 1);
-}, "WebAPIException_const_SECURITY_ERR");
+}, document.title);
 
 </script>
 </body>
index 913e379737bff273cba2b541bd1a595ce8066b95..305e88d488c61aedb48004710d4336fdca997124 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_SYNTAX_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "SYNTAX_ERR", 12, "unsigned short", 1);
-}, "WebAPIException_const_SYNTAX_ERR");
+}, document.title);
 
 </script>
 </body>
index 889e9057b202b8ff08fe563d7a50eff3497f33fe..2ec8caf15ee1d8fc575affe226ec2f64b4eaed60 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_TIMEOUT_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "TIMEOUT_ERR", 23, "unsigned short", 1);
-}, "WebAPIException_const_TIMEOUT_ERR");
+}, document.title);
 
 </script>
 </body>
index d2ef9f7a41073e852ff647b2f0a4e5fd880b1cf3..eae20f812803579bc6363b2f0454f50bf13a846f 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_TYPE_MISMATCH_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "TYPE_MISMATCH_ERR", 17, "unsigned short", 1);
-}, "WebAPIException_const_TYPE_MISMATCH_ERR");
+}, document.title);
 
 </script>
 </body>
index bdb8b40d8c5e2cd3865baf74b336d9eef5588294..a0f2f0db66151e5ead344423205735c849619ea1 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_URL_MISMATCH_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "URL_MISMATCH_ERR", 21, "unsigned short", 1);
-}, "WebAPIException_const_URL_MISMATCH_ERR");
+}, document.title);
 
 </script>
 </body>
index 6e37cc93706f1315181029f98833795241b8844e..abcadac078905634df603edf105be77330cbac13 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_VALIDATION_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "VALIDATION_ERR", 16, "unsigned short", 1);
-}, "WebAPIException_const_VALIDATION_ERR");
+}, document.title);
 
 </script>
 </body>
index 7023671a7ff78a9b5b0ad8bf9177f4df35474e9d..fe03b097115f86bc9202d95e652dcaa11dca5c73 100644 (file)
@@ -27,15 +27,15 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 Authors:
         Han, JingX <jingx.han@intel.com>
-        Lei,zhanx <zhanx.lei@intel.com>
+        Lei, zhanx <zhanx.lei@intel.com>
         Karol Surma <k.surma@samsung.com>
 -->
 
 <html>
 <head>
 <title>WebAPIException_const_WRONG_DOCUMENT_ERR</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     var error = getWebAPIException();
     check_const(error, "WRONG_DOCUMENT_ERR", 4, "unsigned short", 1);
-}, "WebAPIException_const_WRONG_DOCUMENT_ERR");
+}, document.title);
 
 </script>
 </body>
index a4fe4981ef3a04c33844a630ff1b657cf7b94c5f..18deeab354e1fe6efabe865621d75c86c2e6caa6 100644 (file)
@@ -21,8 +21,8 @@ Authors:
 <html>
 <head>
 <title>WebAPIException_extend</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ test(function () {
     var error = getWebAPIException();
 
     check_extensibility(error);
-}, "WebAPIException_extend");
+}, document.title);
 
 </script>
 </body>
index a36c5dd7799296ebc50fb46e46f64b9633da811c..fc4c1c64e9cf91bbf7909b1dcadcec1c57856be8 100644 (file)
@@ -21,8 +21,8 @@ Authors:
 <html>
 <head>
 <title>WebAPIException_message_attribute</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -41,7 +41,7 @@ test(function () {
     assert_true("message" in error, "No message attribute");
     check_readonly(error, "message", error.message, "string", "Error occured");
     assert_not_equals(error.message, "", "error.message");
-}, "WebAPIException_message_attribute");
+}, document.title);
 
 </script>
 </body>
index 78435525a2b96d4365ed647e572d7aa7087d468f..4460add0656265320560413a0ee6533a1d6a1401 100644 (file)
@@ -21,8 +21,8 @@ Authors:
 <html>
 <head>
 <title>WebAPIException_name_attribute</title>
-<script src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/tizen_tizen_tests.js"></script>
+<script src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/tizen_common.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ test(function () {
 
     assert_true("name" in error, "No message attribute");
     check_readonly(error, "name", "NotFoundError", "string", "SecurityError");
-}, "WebAPIException_name_attribute");
+}, document.title);
 
 </script>
 </body>
index b2ade4af28176e364018e79e7c7228743fa01238..853693c262e1972b2a511c0539399fd15a634c4f 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <head>
 <title>WebAPIException_notexist</title>
 <meta charset="utf-8">
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -36,7 +36,7 @@ Authors:
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("WebAPIException");
-}, "WebAPIException_notexist");
+}, document.title);
 
 </script>
 </body>
diff --git a/tct-tizen-tizen-tests/tizen/support/tizen_common.js b/tct-tizen-tizen-tests/tizen/support/tizen_common.js
new file mode 100644 (file)
index 0000000..ec92db8
--- /dev/null
@@ -0,0 +1,109 @@
+
+/*
+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:
+        Huajun Li <huajun.li@intel.com>
+        Wang, ChaoX <chaox.wang@intel.com>
+        Lukasz Bardeli <l.bardeli@samsung.com>
+
+*/
+
+
+var apiTest = {
+    wac : {
+        orgName : "WAC2.0"
+    },
+
+    w3c : {
+        orgName : "W3C"
+    },
+
+    tizen : {
+        orgName : "TIZEN"
+    }
+};
+
+var TYPE_MISMATCH_ERR = "TypeMismatchError";
+var INVALID_VALUES_ERR = "InvalidValuesError";
+var NOT_FOUND_ERR = "NotFoundError";
+var UNKNOWN_ERR = "UnknownError";
+var NOT_SUPPORTED_ERR = "NotSupportedError";
+var PERMISSION_DENIED_ERR = "SecurityError";
+
+var DOM_CODE_NOT_FOUND_ERR = 8;
+
+function tizen_CompositeFilter_create(type, desc) {
+    // Create an attribute filter based on first name: "First name should contain 'Chris' (case insensitive)
+    var firstNameFilter = new tizen.AttributeFilter("name.firstName", "CONTAINS", "Chris");
+    // Create an attribute filter based on last name: "Last name should be exactly 'Smith' (case insensitive)
+    var lastNameFilter = new tizen.AttributeFilter("name.lastName", "EXACTLY", "Smith");
+    // Create a filter based on the intersection of these two filter:
+    // "First name should contain 'Chris' AND last name should be 'Smith'".
+    var filter;
+
+    try {
+        return new tizen.CompositeFilter(type, [firstNameFilter, lastNameFilter]);
+    } catch (e) {
+        assert_false(true, "Fail to " + desc);
+    }
+}
+
+function getWebAPIException(kind) {
+    try {
+        if (kind === "NotFoundError") {
+            tizen.application.getAppInfo("111AppID88.WhichWillNotBeFound");
+        } else {
+            tizen.application.findAppControl();
+        }
+    } catch(error) {
+        return error;
+    }
+    assert_unreached("Expected exception was not thrown. Can\'t continue.");
+}
+
+function getWebAPIError(test_obj, callback, kind) {
+    var killSuccess, killError, currentApplication;
+    assert_not_equals(callback, undefined, "callback is required argument of getWebAPIException()");
+    onSuccess = test_obj.step_func(function () {
+        assert_unreached("successCallback should not be called");
+    });
+    onError = test_obj.step_func(function (error) {
+        callback(error);
+    });
+
+    currentApplication = tizen.application.getCurrentApplication();
+    if (kind === "NotFoundError") {
+        tizen.application.launchAppControl(
+            new tizen.ApplicationControl("WRONG_NOT_IMPLEMENTED_OPERATION"),
+            "111AppID88.WhichWillNotBeFound",
+            onSuccess, onError
+        );
+    } else {
+        assert_equals(kind, undefined, "Fix the test. Requested kind of error is not available");
+        tizen.application.kill(currentApplication.contextId, onSuccess, onError);
+    }
+}
diff --git a/tct-tizen-tizen-tests/tizen/support/tizen_tizen_tests.js b/tct-tizen-tizen-tests/tizen/support/tizen_tizen_tests.js
deleted file mode 100644 (file)
index ec92db8..0000000
+++ /dev/null
@@ -1,109 +0,0 @@
-
-/*
-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:
-        Huajun Li <huajun.li@intel.com>
-        Wang, ChaoX <chaox.wang@intel.com>
-        Lukasz Bardeli <l.bardeli@samsung.com>
-
-*/
-
-
-var apiTest = {
-    wac : {
-        orgName : "WAC2.0"
-    },
-
-    w3c : {
-        orgName : "W3C"
-    },
-
-    tizen : {
-        orgName : "TIZEN"
-    }
-};
-
-var TYPE_MISMATCH_ERR = "TypeMismatchError";
-var INVALID_VALUES_ERR = "InvalidValuesError";
-var NOT_FOUND_ERR = "NotFoundError";
-var UNKNOWN_ERR = "UnknownError";
-var NOT_SUPPORTED_ERR = "NotSupportedError";
-var PERMISSION_DENIED_ERR = "SecurityError";
-
-var DOM_CODE_NOT_FOUND_ERR = 8;
-
-function tizen_CompositeFilter_create(type, desc) {
-    // Create an attribute filter based on first name: "First name should contain 'Chris' (case insensitive)
-    var firstNameFilter = new tizen.AttributeFilter("name.firstName", "CONTAINS", "Chris");
-    // Create an attribute filter based on last name: "Last name should be exactly 'Smith' (case insensitive)
-    var lastNameFilter = new tizen.AttributeFilter("name.lastName", "EXACTLY", "Smith");
-    // Create a filter based on the intersection of these two filter:
-    // "First name should contain 'Chris' AND last name should be 'Smith'".
-    var filter;
-
-    try {
-        return new tizen.CompositeFilter(type, [firstNameFilter, lastNameFilter]);
-    } catch (e) {
-        assert_false(true, "Fail to " + desc);
-    }
-}
-
-function getWebAPIException(kind) {
-    try {
-        if (kind === "NotFoundError") {
-            tizen.application.getAppInfo("111AppID88.WhichWillNotBeFound");
-        } else {
-            tizen.application.findAppControl();
-        }
-    } catch(error) {
-        return error;
-    }
-    assert_unreached("Expected exception was not thrown. Can\'t continue.");
-}
-
-function getWebAPIError(test_obj, callback, kind) {
-    var killSuccess, killError, currentApplication;
-    assert_not_equals(callback, undefined, "callback is required argument of getWebAPIException()");
-    onSuccess = test_obj.step_func(function () {
-        assert_unreached("successCallback should not be called");
-    });
-    onError = test_obj.step_func(function (error) {
-        callback(error);
-    });
-
-    currentApplication = tizen.application.getCurrentApplication();
-    if (kind === "NotFoundError") {
-        tizen.application.launchAppControl(
-            new tizen.ApplicationControl("WRONG_NOT_IMPLEMENTED_OPERATION"),
-            "111AppID88.WhichWillNotBeFound",
-            onSuccess, onError
-        );
-    } else {
-        assert_equals(kind, undefined, "Fix the test. Requested kind of error is not available");
-        tizen.application.kill(currentApplication.contextId, onSuccess, onError);
-    }
-}
diff --git a/tct-tizen-tizen-tests/tizen/support/unitcommon.js b/tct-tizen-tizen-tests/tizen/support/unitcommon.js
new file mode 100644 (file)
index 0000000..9f972c1
--- /dev/null
@@ -0,0 +1,559 @@
+/*
+
+Copyright (c) 2013 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:
+
+ */
+
+
+MIN_BYTE = -128;
+MAX_BYTE = 127;
+MIN_OCTET = 0;
+MAX_OCTET = 255;
+MIN_SHORT = -32768;
+MAX_SHORT = 32767;
+MIN_UNSIGNED_SHORT = 0;
+MAX_UNSIGNED_SHORT = 65535;
+MIN_LONG = -2147483648;
+MAX_LONG = 2147483647;
+MIN_UNSIGNED_LONG = 0;
+MAX_UNSIGNED_LONG = 4294967295;
+MIN_LONG_LONG = -9223372036854775808;
+MAX_LONG_LONG = 9223372036854775807;
+MIN_UNSIGNED_LONG_LONG = 0;
+MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
+
+TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
+NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
+INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
+IO_EXCEPTION = {name: 'IOError'};
+SECURITY_EXCEPTION = {name: 'SecurityError'};
+
+
+(function () {
+   var head_src = document.head.innerHTML;
+   if (head_src.search(/\/testharness.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
+   }
+   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
+   }
+})();
+
+var _registered_types = {};
+
+function _resolve_registered_type(type) {
+    while (type in _registered_types) {
+        type = _registered_types[type];
+    }
+    return type;
+}
+
+/**
+ * Method checks extra argument for none argument method.
+ * The only check is that method will not throw an exception.
+ * Example usage:
+ * checkExtraArgument(tizen.notification, "removeAll");
+ *
+ * @param object object
+ * @param methodName string - name of the method
+ */
+function checkExtraArgument(object, methodName) {
+    var extraArgument = [
+        null,
+        undefined,
+        "Tizen",
+        1,
+        false,
+        ["one", "two"],
+        {argument: 1},
+        function () {}
+    ], i;
+
+    for (i = 0; i < extraArgument.length; i++) {
+        object[methodName](extraArgument[i]);
+    }
+}
+
+/**
+ * Method to validate conversion.
+ * Example usage:
+ *   conversionTable = getTypeConversionExceptions("functionObject", true);
+ *   for(i = 0; i < conversionTable.length; i++) {
+ *       errorCallback = conversionTable[i][0];
+ *       exceptionName = conversionTable[i][1];
+ *
+ *       assert_throws({name : exceptionName},
+ *       function () {
+ *           tizen.systemsetting.setProperty("HOME_SCREEN",
+ *               propertyValue, successCallback, errorCallback);
+ *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
+ *   }
+ *
+ * @param conversionType
+ * @param isOptional
+ * @returns table of tables which contain value (index 0) and exceptionName (index 1)
+ *
+ */
+function getTypeConversionExceptions(conversionType, isOptional) {
+    var exceptionName = "TypeMismatchError",
+        conversionTable;
+    switch (conversionType) {
+        case "enum":
+            conversionTable = [
+                [undefined, exceptionName],
+                [null, exceptionName],
+                [0, exceptionName],
+                [true, exceptionName],
+                ["dummyInvalidEnumValue", exceptionName],
+                [{ }, exceptionName]
+            ];
+            break;
+        case "double":
+            conversionTable = [
+                [undefined, exceptionName],
+                [NaN, exceptionName],
+                [Number.POSITIVE_INFINITY, exceptionName],
+                [Number.NEGATIVE_INFINITY, exceptionName],
+                ["TIZEN", exceptionName],
+                [{ name : "TIZEN" }, exceptionName],
+                [function () { }, exceptionName]
+            ];
+            break;
+        case "object":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "functionObject":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [[], exceptionName],
+                [{ }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "array":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [{ }, exceptionName],
+                [function () { }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "dictionary":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        default:
+            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
+    };
+
+    return conversionTable;
+}
+
+
+function assert_type(obj, type, description) {
+    var org_type = type, prop_name, prop_type, prop_value;
+
+    type = _resolve_registered_type(type);
+
+    if (typeof (type) === 'string') {
+        type = type.toLowerCase();
+        switch (type) {
+            case 'object':
+            case 'string':
+            case 'number':
+            case 'function':
+            case 'boolean':
+            case 'undefined':
+            case 'xml':
+                assert_equals(typeof (obj), type, description);
+                break;
+            case 'null':
+                assert_true(obj === null, description);
+                break;
+            case 'array':
+                assert_true(Array.isArray(obj), description);
+                break;
+            case 'date':
+                assert_true(obj instanceof Date, description);
+                break;
+            case 'byte':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'octet':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            default:
+                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
+        }
+    } else if (typeof (type) === 'function') {
+        assert_true(obj instanceof type, description);
+    } else if (typeof (type) === 'object') {
+        for (prop_name in type) {
+            prop_type = type[prop_name];
+            if (prop_type === 'function') {
+                assert_inherits(obj, prop_name);
+                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
+            } else {
+                assert_own_property(obj, prop_name);
+            }
+        }
+    } else {
+        assert_unreached('Fix your test. Wrong type ' + org_type);
+    }
+}
+
+function register_type(alias, type_spec) {
+    _registered_types[alias] = type_spec;
+}
+
+/**
+ * Method to check if attribute is const.
+ * Example usage:
+ * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
+ *
+ * @param obj  object to test which  has const attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    var tmp;
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        tmp = obj[attributeName];
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if attribute is readonly.
+ * Example usage:
+ * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
+ *
+ * @param obj  object to test which  has readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
+}
+
+/**
+ * Method to check if attribute can be set to null.
+ * Example usage:
+ * check_not_nullable(syncInfo, "mode");
+ *
+ * @param obj object to test which has not nullable attribute
+ * @param attributeName attribute name.
+ */
+function check_not_nullable(obj, attributeName)
+{   var old_value = obj[attributeName];
+    obj[attributeName] = null;
+    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
+    obj[attributeName] = old_value;
+}
+
+/**
+ * Method to check NoInterfaceObject
+ * Example usage:
+ * check_no_interface_object("BluetoothAdapter")
+ *
+ * @param interfaceName interface name
+ */
+function check_no_interface_object(interfaceName) {
+    assert_throws({name: "TypeError"}, function () {
+        tizen[interfaceName]();
+    },"Wrong call as a function");
+    assert_throws({name: "TypeError"}, function () {
+        new tizen[interfaceName]();
+    },"Wrong call as a new function");
+    assert_throws({name: "TypeError"}, function () {
+        ({}) instanceof tizen[interfaceName];
+    },"instanceof exception");
+    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
+}
+
+
+/**
+ * Method to check Constructors
+ * Example usage:
+ * check_constructor("BluetoothAdapter")
+ *
+ * @param constructorName constructor name
+ */
+
+function check_constructor(constructorName) {
+    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
+    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
+    assert_throws({
+        name: "TypeError"
+    }, function () {
+        tizen[constructorName]();
+    }, "Constructor called as function.");
+}
+
+/**
+ * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
+ * That method also checks if given method exists in a given object.
+ * Example usage:
+ * check_method_exists(tizen.notification, "get");
+ *
+ * @param obj object with method
+ * @param methodName name of the method to check.
+ */
+function check_method_exists(obj, methodName) {
+    assert_type(obj[methodName], 'function', "Method does not exist.");
+}
+
+/**
+ * Method to check extensibility of given object.
+ * Method checks if new attribute and method can be added.
+ * Example usage:
+ * check_extensibility(tizen.notification);
+ *
+ * @param obj object to check
+ */
+function check_extensibility(obj) {
+    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
+    obj.newDummyMethod = function() {
+        return dummyMethodResult;
+    }
+    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
+
+    obj.newDummyAttribute = dummyAttribute;
+    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
+}
+
+/**
+ * Method to check if attribute can be modify.
+ * Example usage:
+ * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
+ *
+ * @param obj  object to test which has not readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if whole array can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_array_assignments(message, "to", false);
+ *
+ * @param obj object which has the array as its property
+ * @param array name of the array to check
+ * @param isNullable indicates if the array can be null
+ */
+function check_invalid_array_assignments(obj, array, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
+        val = obj[array], i;
+
+    if (!isNullable) {
+        obj[array] = null;
+        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
+        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
+        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        obj[array] = args[i];
+        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
+        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
+    }
+}
+
+/**
+ * Method to check if an object can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_object_assignments(message, "body", false);
+ *
+ * @param parentObj object which has the 'obj' object as its property
+ * @param obj name of the object to check
+ * @param isNullable indicates if the object can be null
+ */
+function check_invalid_obj_assignments(parentObj, obj, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
+        val = parentObj[obj], i;
+
+    if (!isNullable) {
+        parentObj[obj] = null;
+        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        parentObj[obj] = args[i];
+        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
+    }
+}
+
+/**
+ * Method to validate conversion for listeners.
+ * Example usage:
+ * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
+ * for(i = 0; i < incorrectListeners.length; i++) {
+ *     packageInformationEventCallback  = incorrectListeners[i][0];
+ *     exceptionName = incorrectListeners[i][1];
+ *     assert_throws({name : exceptionName},
+ *        function () {
+ *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ *         }, exceptionName + " should be thrown - given incorrect successCallback.");
+ * }
+ *
+ *
+ * @param callbackNames Array with names
+ * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
+ *
+ */
+function getListenerConversionExceptions(callbackNames) {
+    var result = [], conversionTable, i, j, listenerName;
+    conversionTable = getTypeConversionExceptions("functionObject", false);
+
+    for (i = 0; i < callbackNames.length; i++) {
+        for (j = 0; j < conversionTable.length; j++) {
+            listenerName = {};
+            listenerName[callbackNames[i]] = conversionTable[j][0];
+            result.push([listenerName, conversionTable[j][1]]);
+        }
+    }
+
+    return result;
+}