[SystemSetting] Various fixes.
authorTomasz Kusmierz <t.kusmierz@samsung.com>
Tue, 8 Oct 2013 10:33:01 +0000 (12:33 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 11:15:44 +0000 (11:15 +0000)
Change-Id: Id3af46d27dbe36c233a991d9501cb81aa50900d4

34 files changed:
tct-systemsetting-tizen-tests/resources/unitcommon.js [deleted file]
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_extend.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_HOME_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_INCOMING_CALL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_LOCK_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_NOTIFICATION_EMAIL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_errorCallback_TypeMismatch.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_errorCallback_invalid_cb.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_exist.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_missarg.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_no_errorCallback.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_successCallback_TypeMismatch.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_successCallback_invalid_cb.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_type_TypeMismatch.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_in_tizen.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_notexist.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_HOME_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_INCOMING_CALL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_LOCK_SCREEN.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_NOTIFICATION_EMAIL.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_errorCallback_TypeMismatch.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_errorCallback_invalid_cb.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_exist.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_missarg.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_no_errorCallback.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_successCallback_TypeMismatch.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_successCallback_invalid_cb.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_type_TypeMismatch.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingObject_notexist.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingSuccessCallback_notexist.html
tct-systemsetting-tizen-tests/systemsetting/SystemSettingSuccessCallback_onsuccess.html
tct-systemsetting-tizen-tests/systemsetting/support/unitcommon.js [new file with mode: 0644]
tct-systemsetting-tizen-tests/tests.full.xml
tct-systemsetting-tizen-tests/tests.xml

diff --git a/tct-systemsetting-tizen-tests/resources/unitcommon.js b/tct-systemsetting-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 868f0d1f9248f7da73fe1683ce4e8829bdd5e698..f327e7e30ffa459d25381ec4c569318e0ec37cde 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -33,14 +33,14 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_extend
-//==== LABEL check if SystemSettingManager is extendable
+//==== LABEL Check if SystemSettingManager is extendable
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:SystemSettingManager U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== PRIORITY P3
 //==== TEST_CRITERIA OBX
 test(function () {
     check_extensibility(tizen.systemsetting);
-}, "SystemSettingManager_extend");
+}, document.title);
 
 </script>
 </body>
index 0285bbc586b9e662d163196153fb1fdd3cf399f8..bec94d20821203ce0e6548d047af29b406bb012b 100644 (file)
@@ -26,18 +26,18 @@ Authors:
 
 <head>
 <title>SystemSettingManager_getProperty_HOME_SCREEN</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_getProperty_HOME_SCREEN
-//==== LABEL check if getProperty works for HOME_SCREEN
+//==== LABEL Check if getProperty works for HOME_SCREEN
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MR
-var t = async_test("SystemSettingManager_getProperty_HOME_SCREEN"),
+var t = async_test(document.title),
     successCallback, errorCallback, returnedValue = null;
 
 t.step(function () {
index dbdf57911f98a59ea3567d242f89ac795095ae7e..0fd16350f388cdf1216c1ae970c472406e9b3438 100644 (file)
@@ -26,18 +26,18 @@ Authors:
 
 <head>
 <title>SystemSettingManager_getProperty_INCOMING_CALL</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_getProperty_INCOMING_CALL
-//==== LABEL check if getProperty works for INCOMING_CALL
+//==== LABEL Check if getProperty works for INCOMING_CALL
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MR
-var t = async_test("SystemSettingManager_getProperty_INCOMING_CALL"),
+var t = async_test(document.title),
     successCallback, errorCallback, returnedValue = null;
 
 t.step(function () {
index 258a4b2d69e08f78fbae846a21e00b139e97241d..b5c03f7b12b7aae8d291460b1ebc3ffa4bc18a06 100644 (file)
@@ -26,18 +26,18 @@ Authors:
 
 <head>
 <title>SystemSettingManager_getProperty_LOCK_SCREEN</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_getProperty_LOCK_SCREEN
-//==== LABEL check if getProperty works for LOCK_SCREEN
+//==== LABEL Check if getProperty works for LOCK_SCREEN
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MR
-var t = async_test("SystemSettingManager_getProperty_LOCK_SCREEN"),
+var t = async_test(document.title),
     successCallback, errorCallback, returnedValue = null;
 
 t.step(function () {
index aea5fd10828fb3c9ef522a6528fa54a10cc23809..9a341119c8884f51721c16433f68bd2db7094cb4 100644 (file)
@@ -26,18 +26,18 @@ Authors:
 
 <head>
 <title>SystemSettingManager_getProperty_NOTIFICATION_EMAIL</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_getProperty_NOTIFICATION_EMAIL
-//==== LABEL check if getProperty works for NOTIFICATION_EMAIL
+//==== LABEL Check if getProperty works for NOTIFICATION_EMAIL
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MR
-var t = async_test("SystemSettingManager_getProperty_NOTIFICATION_EMAIL"),
+var t = async_test(document.title),
     successCallback, errorCallback, returnedValue = null;
 
 t.step(function () {
index c9427a3ead0a31b5a2138eaf1bead15d66b90d32..10a38b4643f4be4d43fbf93f8947bc278bfd53b2 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_getProperty_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -36,7 +36,7 @@ Authors:
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MC
-var t = async_test("SystemSettingManager_getProperty_errorCallback_TypeMismatch"),
+var t = async_test(document.title),
     type = "HOME_SCREEN", successCallback, exceptionName, errorCallback, i, conversionTable;
 
 t.step(function () {
@@ -50,7 +50,7 @@ t.step(function () {
         errorCallback = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 tizen.systemsetting.getProperty(type, successCallback, errorCallback);
             }, exceptionName + " should be thrown - given incorrect errorCallback - " + errorCallback);
index 60b36ed3feb077565a06e787b0742c20bc4b45b4..4ade84dcf195d5672cf990f28f760771c155cd23 100644 (file)
@@ -25,18 +25,18 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_getProperty_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: SystemSettingManager_getProperty_errorCallback_invalid_cb
-//==== LABEL check if getProperty throws exception when error callback is invalid
+//==== LABEL Check if getProperty throws exception when error callback is invalid
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MTCB
-var t = async_test("SystemSettingManager_getProperty_errorCallback_invalid_cb"),
+var t = async_test(document.title),
     exceptionName = "TypeMismatchError", successCallback, incorrectCallback;
 
 t.step(function () {
@@ -51,7 +51,7 @@ t.step(function () {
         assert_unreached("Should not be here.");
     });
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.systemsetting.getProperty("HOME_SCREEN", successCallback, incorrectCallback);
         }, exceptionName + " should be thrown - given incorrect error callback.");
index d5124054368c5eb52e0a746b11ca259a6db09353..eeefad1c4fa6e97506f168f74cd71e72bc64ef36 100644 (file)
@@ -37,7 +37,7 @@ Authors:
 <link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html" />
 <meta name="flags" content="" />
 <meta name="assert" content=" SystemSettingManager_getProperty_exist" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     assert_true("getProperty" in tizen.systemsetting, "No getProperty method in tizen.");
     check_method_exists(tizen.systemsetting, "getProperty");
-}, "SystemSettingManager_getProperty_exist");
+}, document.title);
 
 </script>
 </body>
index f0397683646da0ed52db97bb881f8afb586c96df..5922abb2c29005411eb62c0d8dedef6efb8885af 100644 (file)
@@ -37,12 +37,12 @@ Authors:
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MMA
-var t = async_test("SystemSettingManager_getProperty_missarg"),
+var t = async_test(document.title),
     exceptionName = "TypeMismatchError";
 
 t.step(function () {
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.systemsetting.getProperty("HOME_SCREEN");
         }, exceptionName + " should be thrown - missing successCallback.");
index ee931d0482ad8dc48bdbc968ed539a6aaac1e340..dd19fa7d043bbb87614b9368c7a7945acca56ef6 100644 (file)
@@ -26,18 +26,18 @@ Authors:
 
 <head>
 <title>SystemSettingManager_getProperty_no_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_getProperty_no_errorCallback
-//==== LABEL check if getProperty works without error callback
+//==== LABEL Check if getProperty works without error callback
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MMINA MR
-var t = async_test("SystemSettingManager_getProperty_no_errorCallback"),
+var t = async_test(document.title),
     successCallback, returnedValue = null;
 
 t.step(function () {
index 03c9826a18b8ba05819ead2d8e2e04353108e542..98bb820dd664ca5c2f4b03868574e2510133af8a 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_getProperty_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -37,7 +37,7 @@ Authors:
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MC
-var t = async_test("SystemSettingManager_getProperty_successCallback_TypeMismatch"),
+var t = async_test(document.title),
     type = "HOME_SCREEN", successCallback, exceptionName, errorCallback, i, conversionTable;
 
 t.step(function () {
@@ -51,7 +51,7 @@ t.step(function () {
         successCallback = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 tizen.systemsetting.getProperty(type, successCallback, errorCallback);
             }, exceptionName + " should be thrown - given incorrect successCallback.");
index 0735aac57691db3351430510909f897ad7ddaa43..84fcf28b7bcdaddbca33d436c4496e4545c00b1a 100644 (file)
@@ -33,12 +33,12 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_getProperty_successCallback_invalid_cb
-//==== LABEL check if getProperty throws exception when success callback is invalid
+//==== LABEL Check if getProperty throws exception when success callback is invalid
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MTCB
-var t = async_test("SystemSettingManager_getProperty_successCallback_invalid_cb"),
+var t = async_test(document.title),
     exceptionName = "TypeMismatchError", errorCallback, incorrectCallback;
 
 t.step(function () {
@@ -53,7 +53,7 @@ t.step(function () {
         assert_unreached("ErrorCallback invoked: " + error.name + ": " + error.message);
     });
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.systemsetting.getProperty("HOME_SCREEN",
                 incorrectCallback, errorCallback);
index 85763fff92712d3659638e94a202a3457248af53..f7234bc653d2b5faea38ae0726b565d24c4f339b 100644 (file)
@@ -25,19 +25,19 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_getProperty_type_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_getProperty_type_TypeMismatch
-//==== LABEL check if getProperty throws exception when type is incorrect
+//==== LABEL Check if getProperty throws exception when type is incorrect
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:getProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MC
-var t = async_test("SystemSettingManager_getProperty_type_TypeMismatch"), i, conversionTable,
+var t = async_test(document.title), i, conversionTable,
     systemSettingType, exceptionName, successCallback, errorCallback;
 
 t.step(function () {
@@ -55,7 +55,7 @@ t.step(function () {
         systemSettingType = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 tizen.systemsetting.getProperty(systemSettingType, successCallback, errorCallback);
             }, exceptionName + " should be thrown - given incorrect SystemSettingType - " + systemSettingType);
index e9e079518188c1f81634382cc006a4b5ab86fbd0..cba1e26d277e4a8caf34a747ec131f8620982d79 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_in_tizen</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -33,7 +33,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_in_tizen
-//==== LABEL check if tizen.systemsetting can be overwritten
+//==== LABEL Check if tizen.systemsetting can be overwritten
 //==== PRIORITY: P3
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:SystemSettingManager U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
@@ -41,7 +41,7 @@ Authors:
 test(function () {
     assert_true("systemsetting" in tizen, "No systemsetting in tizen.");
     check_readonly(tizen, "systemsetting", tizen.systemsetting, "object", "dummyValue");
-}, "SystemSettingManager_in_tizen");
+}, document.title);
 
 </script>
 </body>
index eb4de67e06b1fc9ddb0957e64a1d968ab38b1240..7b9c4e7e4f8c7eba39caa9d6d8e99dceac74f1ab 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -33,14 +33,14 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_notexist
-//==== LABEL check if SystemSettingManage doesn't exist
+//==== LABEL Check if SystemSettingManage doesn't exist
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:SystemSettingManager U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== PRIORITY P3
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("SystemSettingManager");
-}, "SystemSettingManager_notexist");
+}, document.title);
 
 </script>
 </body>
index 9f8efeb04d01b9a831570494281e17d6a4e8c082..85bc90579be73741519247ac42bc0a5cdd6ae01e 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_setProperty_HOME_SCREEN</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -34,11 +34,11 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_HOME_SCREEN
-//==== LABEL check if setProperty works for HOME_SCREEN
+//==== LABEL Check if setProperty works for HOME_SCREEN
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MAST MR
-var t = async_test("SystemSettingManager_setProperty_HOME_SCREEN"), type = "HOME_SCREEN",
+var t = async_test(document.title), type = "HOME_SCREEN",
     previousValue, getPreviousValueCallback, newValue = IMAGE_FILE_PATH,
     setNewValueSuccessCallback, getNewValueSuccessCallback, returnedValue = null,
     setPreviousValueSuccessCallback, exception, getPropertyError, setPropertyNewError,
index 112e860e4f539db51f720381f6ce6ed7b259e33f..f37c911d793d3c520f3e27031dfbd0cdba0a6458 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_setProperty_INCOMING_CALL</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -34,11 +34,11 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_INCOMING_CALL
-//==== LABEL check if setProperty works for INCOMING_CALL
+//==== LABEL Check if setProperty works for INCOMING_CALL
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MAST MR
-var t = async_test("SystemSettingManager_setProperty_INCOMING_CALL"), type = "INCOMING_CALL",
+var t = async_test(document.title), type = "INCOMING_CALL",
     previousValue, getPreviousValueCallback, newValue = SOUND_FILE_PATH,
     setNewValueSuccessCallback, getNewValueSuccessCallback, returnedValue = null,
     setPreviousValueSuccessCallback, exception, getPropertyError, setPropertyNewError,
index 40df083b5fc097772e212acb6ea6a51fb8769171..6c2100dfbcb868183f6832e2b2039637490c218d 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_setProperty_LOCK_SCREEN</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -34,11 +34,11 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_LOCK_SCREEN
-//==== LABEL check if setProperty works for LOCK_SCREEN
+//==== LABEL Check if setProperty works for LOCK_SCREEN
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MAST MR
-var t = async_test("SystemSettingManager_setProperty_LOCK_SCREEN"), type = "LOCK_SCREEN",
+var t = async_test(document.title), type = "LOCK_SCREEN",
     previousValue, getPreviousValueCallback, newValue = IMAGE_FILE_PATH,
     setNewValueSuccessCallback, getNewValueSuccessCallback, returnedValue = null,
     setPreviousValueSuccessCallback, exception, getPropertyError, setPropertyNewError,
index cc4252f316438e0b700c73c685d51e4ca0cb9778..c343e6940e1c588a2f4da5d451eafd8662fa2245 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_setProperty_NOTIFICATION_EMAIL</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -34,11 +34,11 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_NOTIFICATION_EMAIL
-//==== LABEL check if setProperty works for NOTIFICATION_EMAIL
+//==== LABEL Check if setProperty works for NOTIFICATION_EMAIL
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MOA MAST MR
-var t = async_test("SystemSettingManager_setProperty_NOTIFICATION_EMAIL"), type = "NOTIFICATION_EMAIL",
+var t = async_test(document.title), type = "NOTIFICATION_EMAIL",
     previousValue, getPreviousValueCallback, newValue = SOUND_FILE_PATH,
     setNewValueSuccessCallback, getNewValueSuccessCallback, returnedValue = null,
     setPreviousValueSuccessCallback, exception, getPropertyError, setPropertyNewError,
index 02e8df02c29f1bca8498ea86073f20612a9eaf70..3cb6e696e6b32dc85165829ed96b5a38ffe76e0f 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_setProperty_errorCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -38,7 +38,7 @@ Authors:
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MC
-var t = async_test("SystemSettingManager_setProperty_errorCallback_TypeMismatch"),
+var t = async_test(document.title),
     type = "HOME_SCREEN", propertyValue = IMAGE_FILE_PATH,
     successCallback, exceptionName, errorCallback, i, conversionTable,
     getDeviceValueCallback, getDeviceValueErrorCallback, deviceValue;
@@ -57,7 +57,7 @@ t.step(function () {
             exceptionName = conversionTable[i][1];
 
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     tizen.systemsetting.setProperty(type,
                         propertyValue, successCallback, errorCallback);
index 6e5bad72047f6316c4856929013ab3b0a7b8f07b..a97d0c65b6f44eeba044adc7fa6000ceafe76979 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_setProperty_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -33,12 +33,12 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_errorCallback_invalid_cb
-//==== LABEL check if setProperty throws exception when error callback is invalid
+//==== LABEL Check if setProperty throws exception when error callback is invalid
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MTCB
-var t = async_test("SystemSettingManager_setProperty_errorCallback_invalid_cb"),
+var t = async_test(document.title),
     exceptionName = "TypeMismatchError", successCallback, incorrectCallback;
 
 
@@ -54,7 +54,7 @@ t.step(function () {
         assert_unreached("Should not be here.");
     });
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.systemsetting.setProperty("HOME_SCREEN", IMAGE_FILE_PATH,
                 successCallback, incorrectCallback);
index 21fcc1c4d902a5d93729b226a6aa406f23769d52..74ae722938bc314887031fc88da9e1e8185b46ea 100644 (file)
@@ -37,7 +37,7 @@ Authors:
 <link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html" />
 <meta name="flags" content="" />
 <meta name="assert" content=" SystemSettingManager_setProperty_exist" />
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     assert_true("setProperty" in tizen.systemsetting, "No setProperty method in tizen.systemsetting");
     check_method_exists(tizen.systemsetting, "setProperty");
-}, "SystemSettingManager_setProperty_exist");
+}, document.title);
 
 </script>
 </body>
index 77d628b720934f506b92d3f11db5c88bd1a237fa..3cdf7b07b17c11ded47134d08ab3db8d8dba9b7e 100644 (file)
@@ -38,12 +38,12 @@ Authors:
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MMA
-var t = async_test("SystemSettingManager_setProperty_missarg"),
+var t = async_test(document.title),
     exceptionName = "TypeMismatchError";
 
 t.step(function () {
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.systemsetting.setProperty("HOME_SCREEN",
                 IMAGE_FILE_PATH);
index 6eeb53c15a7800655551e4bcbe8e78e6495b3f01..213d8541f81541f17f998e505080f824a58ba4c9 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 
 <head>
 <title>SystemSettingManager_setProperty_no_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -34,11 +34,11 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_no_errorCallback
-//==== LABEL check if setProperty works for home_screen without error_callback
+//==== LABEL Check if setProperty works for home_screen without error_callback
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MMINA MAST MR
-var t = async_test("SystemSettingManager_setProperty_no_errorCallback"), type = "HOME_SCREEN",
+var t = async_test(document.title), type = "HOME_SCREEN",
     previousValue, getPreviousValueCallback, newValue = IMAGE_FILE_PATH,
     setNewValueSuccessCallback, getNewValueSuccessCallback, returnedValue = null,
     getNewValueSuccessCallback, setPreviousValueSuccessCallback, exception, getPropertyError,
index 5e2b585cbc3f5c90b67a9c98709764cc4e04c1b5..9c5a37883b84ba3ee4e01b5d78f904963b057a10 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_setProperty_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -38,7 +38,7 @@ Authors:
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MC
-var t = async_test("SystemSettingManager_setProperty_successCallback_TypeMismatch"),
+var t = async_test(document.title),
     type = "HOME_SCREEN", successCallback, exceptionName, errorCallback, i, conversionTable;
 
 
@@ -53,7 +53,7 @@ t.step(function () {
         successCallback = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 tizen.systemsetting.setProperty(type,
                     IMAGE_FILE_PATH, successCallback, errorCallback);
index b85e731f33b653efb54ceb8d628aed401687cd00..2e5fbf62e48a3312f4568952699b49d02ddec447 100644 (file)
@@ -34,12 +34,12 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_successCallback_invalid_cb
-//==== LABEL check if setProperty throws exception when success callback is invalid
+//==== LABEL Check if setProperty throws exception when success callback is invalid
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MTCB
-var t = async_test("SystemSettingManager_setProperty_successCallback_invalid_cb"),
+var t = async_test(document.title),
     exceptionName = "TypeMismatchError", errorCallback, incorrectCallback;
 
 t.step(function () {
@@ -54,7 +54,7 @@ t.step(function () {
         assert_unreached("ErrorCallback invoked: " + error.name + ": " + error.message);
     });
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.systemsetting.setProperty("HOME_SCREEN", IMAGE_FILE_PATH,
                 incorrectCallback, errorCallback);
index 4c1e2e132d002e82fcd8a422c913a623745171a5..c97713c12f7eacd8c25ae090ceb2bd9e45a55b30 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <html>
 <head>
 <title>SystemSettingManager_setProperty_type_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/systemsetting_common.js"></script>
 </head>
 <body>
@@ -33,12 +33,12 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingManager_setProperty_type_TypeMismatch
-//==== LABEL check if setProperty throws exception when type is incorrect
+//==== LABEL Check if setProperty throws exception when type is incorrect
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingManager:setProperty M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA MC
-var t = async_test("SystemSettingManager_setProperty_type_TypeMismatch"), i, conversionTable,
+var t = async_test(document.title), i, conversionTable,
     systemSettingType, exceptionName, successCallback, errorCallback;
 
 
@@ -57,7 +57,7 @@ t.step(function () {
         systemSettingType = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 tizen.systemsetting.setProperty(systemSettingType,
                     IMAGE_FILE_PATH, successCallback, errorCallback);
index 08f8e7910fa9187552f00f4f22a53557d5e38f5b..f1d270f235fdc63533afdd4ef31fd2ef51d13a0e 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>SystemSettingObject_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -33,14 +33,14 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingObject_notexist
-//==== LABEL check if SystemSettingObject is undefined
+//==== LABEL Check if SystemSettingObject is undefined
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingObject:SystemSettingObject U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== PRIORITY P3
 //==== TEST_CRITERIA NIO
 test(function () {
     check_no_interface_object("SystemSettingObject");
-}, "SystemSettingObject_notexist");
+}, document.title);
 
 </script>
 </body>
index f2c01ddbbeb7d9f1a75533a1b08d8ec5f97a692f..dbdf5c6c01bf2bfed1520f15ba4b2258fd724991 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 
 <head>
 <title>SystemSettingSuccessCallback_notexist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,14 +34,14 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: SystemSettingSuccessCallback_notexist
-//==== LABEL check if SystemSettingSuccessCallback doesn't exist
+//==== LABEL Check if SystemSettingSuccessCallback doesn't exist
 //==== SPEC Tizen Web API:System:SystemSetting:SystemSettingSuccessCallback:SystemSettingSuccessCallback U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== PRIORITY P3
 //==== TEST_CRITERIA CBNIO
 test(function () {
     check_no_interface_object("SystemSettingSuccessCallback");
-}, "SystemSettingSuccessCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index f189b9c04517cc324dd0acefea5197ff83160985..7d28f292e5a75699e0d5245e35d30cba55a0e159 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 
 <head>
 <title>SystemSettingSuccessCallback_onsuccess</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -37,7 +37,7 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
 //==== TEST_CRITERIA CBT CBOA
 
-var t = async_test("SystemSettingSuccessCallback_onsuccess"), successCallback;
+var t = async_test(document.title), successCallback;
 
 t.step(function () {
 
diff --git a/tct-systemsetting-tizen-tests/systemsetting/support/unitcommon.js b/tct-systemsetting-tizen-tests/systemsetting/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;
+}
index e7c4e3a25e6964efed5e903bf77addedb98ee7f6..cecb351a1ec67f606ddaf80715b44ed92df95c65 100644 (file)
@@ -27,7 +27,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if SystemSettingManager is extendable" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingManager_extend">
+      <testcase purpose="Check if SystemSettingManager is extendable" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingManager_extend">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_extend.html</test_script_entry>
         </description>
@@ -39,7 +39,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty works for HOME_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_HOME_SCREEN">
+      <testcase purpose="Check if getProperty works for HOME_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_HOME_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_HOME_SCREEN.html</test_script_entry>
         </description>
@@ -51,7 +51,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty works for INCOMING_CALL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_INCOMING_CALL">
+      <testcase purpose="Check if getProperty works for INCOMING_CALL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_INCOMING_CALL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_INCOMING_CALL.html</test_script_entry>
         </description>
@@ -63,7 +63,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty throws exception when type is incorrect" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_getProperty_type_TypeMismatch">
+      <testcase purpose="Check if getProperty throws exception when type is incorrect" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_getProperty_type_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_type_TypeMismatch.html</test_script_entry>
         </description>
@@ -75,7 +75,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty works for LOCK_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_LOCK_SCREEN">
+      <testcase purpose="Check if getProperty works for LOCK_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_LOCK_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_LOCK_SCREEN.html</test_script_entry>
         </description>
@@ -87,7 +87,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty works without error callback" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_no_errorCallback">
+      <testcase purpose="Check if getProperty works without error callback" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_no_errorCallback">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_no_errorCallback.html</test_script_entry>
         </description>
@@ -99,7 +99,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty works for HOME_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_HOME_SCREEN">
+      <testcase purpose="Check if setProperty works for HOME_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_HOME_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_HOME_SCREEN.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty works for INCOMING_CALL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_INCOMING_CALL">
+      <testcase purpose="Check if setProperty works for INCOMING_CALL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_INCOMING_CALL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_INCOMING_CALL.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty throws exception when error callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_setProperty_errorCallback_invalid_cb">
+      <testcase purpose="Check if setProperty throws exception when error callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_setProperty_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty throws exception when success callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_setProperty_successCallback_invalid_cb">
+      <testcase purpose="Check if setProperty throws exception when success callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_setProperty_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty throws exception when type is incorrect" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_setProperty_type_TypeMismatch">
+      <testcase purpose="Check if setProperty throws exception when type is incorrect" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_setProperty_type_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_type_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty works for LOCK_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_LOCK_SCREEN">
+      <testcase purpose="Check if setProperty works for LOCK_SCREEN" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_LOCK_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_LOCK_SCREEN.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty works for home_screen without error_callback" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_no_errorCallback">
+      <testcase purpose="Check if setProperty works for home_screen without error_callback" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_no_errorCallback">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_no_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if setProperty works for NOTIFICATION_EMAIL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_NOTIFICATION_EMAIL">
+      <testcase purpose="Check if setProperty works for NOTIFICATION_EMAIL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_setProperty_NOTIFICATION_EMAIL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_NOTIFICATION_EMAIL.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if SystemSettingManage doesn't exist" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingManager_notexist">
+      <testcase purpose="Check if SystemSettingManage doesn't exist" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingManager_notexist">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_notexist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if SystemSettingObject is undefined" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingObject_notexist">
+      <testcase purpose="Check if SystemSettingObject is undefined" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingObject_notexist">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingObject_notexist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if SystemSettingSuccessCallback doesn't exist" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingSuccessCallback_notexist">
+      <testcase purpose="Check if SystemSettingSuccessCallback doesn't exist" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingSuccessCallback_notexist">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingSuccessCallback_notexist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty works for NOTIFICATION_EMAIL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_NOTIFICATION_EMAIL">
+      <testcase purpose="Check if getProperty works for NOTIFICATION_EMAIL" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P1" id="SystemSettingManager_getProperty_NOTIFICATION_EMAIL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_NOTIFICATION_EMAIL.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if tizen.systemsetting can be overwritten" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingManager_in_tizen">
+      <testcase purpose="Check if tizen.systemsetting can be overwritten" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P3" id="SystemSettingManager_in_tizen">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_in_tizen.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty throws exception when error callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_getProperty_errorCallback_invalid_cb">
+      <testcase purpose="Check if getProperty throws exception when error callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_getProperty_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if getProperty throws exception when success callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_getProperty_successCallback_invalid_cb">
+      <testcase purpose="Check if getProperty throws exception when success callback is invalid" type="compliance" status="approved" component="TizenAPI/System/SystemSetting" execution_type="auto" priority="P2" id="SystemSettingManager_getProperty_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_successCallback_invalid_cb.html</test_script_entry>
         </description>
index 80c168583b3ee210731e53230237bfd2c5d5e9b5..5882b84d1eaab4dc394a1a410ab61f761cb08149 100644 (file)
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if SystemSettingManager is extendable" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_extend">
+      <testcase purpose="Check if SystemSettingManager is extendable" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_extend">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty works for HOME_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_HOME_SCREEN">
+      <testcase purpose="Check if getProperty works for HOME_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_HOME_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_HOME_SCREEN.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty works for INCOMING_CALL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_INCOMING_CALL">
+      <testcase purpose="Check if getProperty works for INCOMING_CALL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_INCOMING_CALL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_INCOMING_CALL.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty throws exception when type is incorrect" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_type_TypeMismatch">
+      <testcase purpose="Check if getProperty throws exception when type is incorrect" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_type_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_type_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty works for LOCK_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_LOCK_SCREEN">
+      <testcase purpose="Check if getProperty works for LOCK_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_LOCK_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_LOCK_SCREEN.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty works without error callback" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_no_errorCallback">
+      <testcase purpose="Check if getProperty works without error callback" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_no_errorCallback">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_no_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty works for HOME_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_HOME_SCREEN">
+      <testcase purpose="Check if setProperty works for HOME_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_HOME_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_HOME_SCREEN.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty works for INCOMING_CALL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_INCOMING_CALL">
+      <testcase purpose="Check if setProperty works for INCOMING_CALL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_INCOMING_CALL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_INCOMING_CALL.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty throws exception when error callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_errorCallback_invalid_cb">
+      <testcase purpose="Check if setProperty throws exception when error callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty throws exception when success callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_successCallback_invalid_cb">
+      <testcase purpose="Check if setProperty throws exception when success callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty throws exception when type is incorrect" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_type_TypeMismatch">
+      <testcase purpose="Check if setProperty throws exception when type is incorrect" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_type_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_type_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty works for LOCK_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_LOCK_SCREEN">
+      <testcase purpose="Check if setProperty works for LOCK_SCREEN" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_LOCK_SCREEN">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_LOCK_SCREEN.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty works for home_screen without error_callback" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_no_errorCallback">
+      <testcase purpose="Check if setProperty works for home_screen without error_callback" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_no_errorCallback">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_no_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if setProperty works for NOTIFICATION_EMAIL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_NOTIFICATION_EMAIL">
+      <testcase purpose="Check if setProperty works for NOTIFICATION_EMAIL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_setProperty_NOTIFICATION_EMAIL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_setProperty_NOTIFICATION_EMAIL.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if SystemSettingManage doesn't exist" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_notexist">
+      <testcase purpose="Check if SystemSettingManage doesn't exist" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_notexist">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if SystemSettingObject is undefined" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingObject_notexist">
+      <testcase purpose="Check if SystemSettingObject is undefined" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingObject_notexist">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingObject_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if SystemSettingSuccessCallback doesn't exist" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingSuccessCallback_notexist">
+      <testcase purpose="Check if SystemSettingSuccessCallback doesn't exist" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingSuccessCallback_notexist">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingSuccessCallback_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty works for NOTIFICATION_EMAIL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_NOTIFICATION_EMAIL">
+      <testcase purpose="Check if getProperty works for NOTIFICATION_EMAIL" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_NOTIFICATION_EMAIL">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_NOTIFICATION_EMAIL.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if tizen.systemsetting can be overwritten" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_in_tizen">
+      <testcase purpose="Check if tizen.systemsetting can be overwritten" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_in_tizen">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_in_tizen.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty throws exception when error callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_errorCallback_invalid_cb">
+      <testcase purpose="Check if getProperty throws exception when error callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if getProperty throws exception when success callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_successCallback_invalid_cb">
+      <testcase purpose="Check if getProperty throws exception when success callback is invalid" component="TizenAPI/System/SystemSetting" execution_type="auto" id="SystemSettingManager_getProperty_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-systemsetting-tizen-tests/systemsetting/SystemSettingManager_getProperty_successCallback_invalid_cb.html</test_script_entry>
         </description>