[namespace] - various fixes
authorTomasz Paciorek <t.paciorek@samsung.com>
Tue, 8 Oct 2013 12:26:57 +0000 (14:26 +0200)
committerTomasz Paciorek <t.paciorek@samsung.com>
Tue, 8 Oct 2013 13:09:22 +0000 (15:09 +0200)
Change-Id: Ib5cd3b17e5648c8d72354d47893dee115a3e4d5d

29 files changed:
tct-namespace-tizen-tests/configure.ac
tct-namespace-tizen-tests/namespace/Alarm_AlarmManagerObject.html
tct-namespace-tizen-tests/namespace/Application_ApplicationManagerObject.html
tct-namespace-tizen-tests/namespace/Bluetooth_BluetoothManagerObject.html
tct-namespace-tizen-tests/namespace/Bookmark_BookmarkManagerObject.html
tct-namespace-tizen-tests/namespace/Calendar_CalendarManagerObject.html
tct-namespace-tizen-tests/namespace/Callhistory_CallHistoryObject.html
tct-namespace-tizen-tests/namespace/Contact_ContactManagerObject.html
tct-namespace-tizen-tests/namespace/Content_ContentManagerObject.html
tct-namespace-tizen-tests/namespace/DataControl_DataControlManagerObject.html
tct-namespace-tizen-tests/namespace/DataSync_DataSynchronizationManagerObject.html
tct-namespace-tizen-tests/namespace/Download_DownloadManagerObject.html
tct-namespace-tizen-tests/namespace/Filesystem_FileSystemManagerObject.html
tct-namespace-tizen-tests/namespace/Makefile.am
tct-namespace-tizen-tests/namespace/MessagePort_MessagePortManagerObject.html
tct-namespace-tizen-tests/namespace/Messaging_MessageManagerObject.html
tct-namespace-tizen-tests/namespace/NFC_NFCManagerObject.html
tct-namespace-tizen-tests/namespace/NetworkBearerSelection_NetworkBearerSelectionObject.html
tct-namespace-tizen-tests/namespace/Notification_NotificationObject.html
tct-namespace-tizen-tests/namespace/Package_PackageManagerObject.html
tct-namespace-tizen-tests/namespace/Power_PowerManagerObject.html
tct-namespace-tizen-tests/namespace/Push_PushManagerObject.html
tct-namespace-tizen-tests/namespace/SecureElement_SEServiceManagerObject.html
tct-namespace-tizen-tests/namespace/SystemInfo_SystemInfoObject.html
tct-namespace-tizen-tests/namespace/SystemSetting_SystemSettingObject.html
tct-namespace-tizen-tests/namespace/Time_TimeManagerObject.html
tct-namespace-tizen-tests/namespace/Tizen_TizenObject.html
tct-namespace-tizen-tests/namespace/support/Makefile.am [new file with mode: 0644]
tct-namespace-tizen-tests/namespace/support/unitcommon.js [new file with mode: 0644]

index aa2ab5c2ccff58de47c2ac4a03a7ccca4c2904aa..acc5d287000df0203495c92825ef30e5d716d16e 100644 (file)
@@ -10,8 +10,7 @@ AC_INIT([tct-namespace-tizen-tests], [2.4.2], [p.szydelko@samsung.com])
 AM_INIT_AUTOMAKE([-Wall -Werror foreign])
 
 AC_CONFIG_FILES([Makefile \
-  namespace/Makefile \
-  resources/Makefile \
-  testkit/Makefile \
-])
+namespace/Makefile \
+namespace/support/Makefile \
+resources/Makefile testkit/Makefile])
 AC_OUTPUT
index 09e3f97788e449ebf2d0f758c481b0741f7bc59f..36d05f755e3bfa129c3f136a5068e1df64ff220a 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Alarm_AlarmManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.alarm, "object", "tizen.alarm object must exist");
     assert_not_equals(tizen.alarm, null, "tizen.alarm");
-}, "Alarm_AlarmManagerObject");
+}, document.title);
 
 </script>
 </body>
index e2157f3c7c467baa1e85db4192f51d73ee69cbd7..918f849d4f99a0b1605b6e0b59a7de9e5b83e748 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Application_ApplicationManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.application, "object", "tizen.application object must exist");
     assert_not_equals(tizen.application, null, "tizen.application");
-}, "Application_ApplicationManagerObject");
+}, document.title);
 
 </script>
 </body>
index ea4b91bcfcc43b7106c03d3916ee2a96f0533ceb..df22f89b16183d7d28f8f67764ca714b348798fb 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Bluetooth_BluetoothManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     } else {
         assert_equals(tizen.bluetooth, undefined, "tizen.bluetooth must return undefined");
     }
-}, "Bluetooth_BluetoothManagerObject");
+}, document.title);
 
 </script>
 </body>
index 913d3f71dc1eafaf41590f6a9193c3342bf5596b..6882b549b8b76addda537d4d25df30245a14a281 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Bookmark_BookmarkManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.bookmark, "object", "tizen.bookmark object must exist");
     assert_not_equals(tizen.bookmark, null, "tizen.bookmark");
-}, "Bookmark_BookmarkManagerObject");
+}, document.title);
 
 </script>
 </body>
index 238ed0e001dd2b0850040c385d0f8ae70f198113..07bb15b93221953984b5edbe4178220d0431e165 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Calendar_CalendarManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.calendar, "object", "tizen.calendar object must exist");
     assert_not_equals(tizen.calendar, null, "tizen.calendar");
-}, "Calendar_CalendarManagerObject");
+}, document.title);
 
 </script>
 </body>
index fb36ede482b51dceaa24fb7730d1073e7965e23a..bce3470de4fb5dda603a4f91f51d5caaaee50dab 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Callhistory_CallHistoryObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     } else {
         assert_equals(tizen.callhistory, undefined, "tizen.callhistory must return undefined");
     }
-}, "Callhistory_CallHistoryObject");
+}, document.title);
 
 </script>
 </body>
index 480f873ecb85ad485e2a3f14d537ae07095910fc..85aed4163e1df3c5debe26a473277611463d1b35 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Contact_ContactManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.contact, "object", "tizen.contact object must exist");
     assert_not_equals(tizen.contact, null, "tizen.contact");
-}, "Contact_ContactManagerObject");
+}, document.title);
 
 </script>
 </body>
index acdfb09c4e41255a5bd4ff21d4e0983fac9fdb39..31b8ffa3c5a3a26e6567810cdb325dd92e0a9fa1 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Content_ContentManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.content, "object", "tizen.content object must exist");
     assert_not_equals(tizen.content, null, "tizen.content");
-}, "Content_ContentManagerObject");
+}, document.title);
 
 </script>
 </body>
index f7a4aea9998a695cfa5858aaef461ca0f85651c2..e8fae00cbdf16c00dbabbe5aaf08a7edc9b16e91 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>DataControl_DataControlManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.datacontrol, "object", "tizen.datacontrol object must exist");
     assert_not_equals(tizen.datacontrol, null, "tizen.datacontrol");
-}, "DataControl_DataControlManagerObject");
+}, document.title);
 
 </script>
 </body>
index de0404ff898e42b9ac906a02f483040ea2ba3312..3d3a64053b1f8ab0d5658206cd4da867b0411580 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>DataSync_DataSynchronizationManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.datasync, "object", "tizen.datasync object must exist");
     assert_not_equals(tizen.datasync, null, "tizen.datasync");
-}, "DataSync_DataSynchronizationManagerObject");
+}, document.title);
 
 </script>
 </body>
index 50794fc38f005d4f239dad45b3ea071b4046cab4..4bcb5bdef411c903692b0a0385559577f37fb889 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Download_DownloadManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.download, "object", "tizen.download object must exist");
     assert_not_equals(tizen.download, null, "tizen.download");
-}, "Download_DownloadManagerObject");
+}, document.title);
 
 </script>
 </body>
index 1c73e3ea35654da2096210644704e92e0577c292..b83a143f365d63e5e0d13bf08d2d2f99d9d43840 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Filesystem_FileSystemManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.filesystem, "object", "tizen.filesystem object must exist");
     assert_not_equals(tizen.filesystem, null, "tizen.filesystem");
-}, "Filesystem_FileSystemManagerObject");
+}, document.title);
 
 </script>
 </body>
index b2927e270608239032b1ce63de03cc2c382bd2c6..0b5d424df4ea0c1b17dbe42b2e89eee983bd59c4 100644 (file)
@@ -1,3 +1,4 @@
-worker_DATA = *
+SUBDIRS = support
+worker_DATA = *.html
 workerdir = /opt/tct-namespace-tizen-tests/namespace
 EXTRA_DIST = $(worker_DATA)
index 26134a541cf421bf8a511af5ccacecb786285dcc..fee269a146ed54fa9bdd88a79afba49983431db7 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>MessagePort_MessagePortManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.messageport, "object", "tizen.messageport object must exist");
     assert_not_equals(tizen.messageport, null, "tizen.messageport");
-}, "MessagePort_MessagePortManagerObject");
+}, document.title);
 
 </script>
 </body>
index 292fa1642ef271000077c8cc1903664d2bacc274..e6f423dc9df25349e0cff7d2e47ed7bd6ac24e3a 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Messaging_MessageManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.messaging, "object", "tizen.messaging object must exist");
     assert_not_equals(tizen.messaging, null, "tizen.messaging");
-}, "Messaging_MessageManagerObject");
+}, document.title);
 
 </script>
 </body>
index 94222194d4bac484da8ebd3625e31b6f598a2d74..801cd235054c31bb9f83bf260d98fe826500e8b7 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>NFC_NFCManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     } else {
         assert_equals(tizen.nfc, undefined, "tizen.nfc must return undefined");
     }
-}, "NFC_NFCManagerObject");
+}, document.title);
 
 </script>
 </body>
index c3318a05d5dad4952467bf53f0cb42df5ea921e5..e277b9971a3294b824983a3d7f31648037b1151d 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>NetworkBearerSelection_NetworkBearerSelectionObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     } else {
         assert_equals(tizen.networkbearerselection, undefined, "tizen.networkbearerselection must return undefined");
     }
-}, "NetworkBearerSelection_NetworkBearerSelectionObject ");
+}, document.title);
 
 </script>
 </body>
index 420ab23ec02466b6827862d21995bab581dddbd4..0ec3b096ca8ec2969e715049b39989892255c1ba 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Notification_NotificationObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.notification, "object", "tizen.notification object must exist");
     assert_not_equals(tizen.notification, null, "tizen.notification");
-}, "Notification_NotificationObject");
+}, document.title);
 
 </script>
 </body>
index 4c99cec88612ccbc4005c064bcca65f34c9e170d..114bd1722f7d43cd61982624c1e2050442a7b406 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Package_PackageManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.package, "object", "tizen.package object must exist");
     assert_not_equals(tizen.package, null, "tizen.package");
-}, "Package_PackageManagerObject");
+}, document.title);
 
 </script>
 </body>
index 686dc3d18058df9b26a6c2c3691f85bb9d1c40e8..66dacdd013b154f3b46fcd48a2e65c0fabeca1d9 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Power_PowerManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.power, "object", "tizen.power object must exist");
     assert_not_equals(tizen.power, null, "tizen.power");
-}, "Power_PowerManagerObject");
+}, document.title);
 
 </script>
 </body>
index 11074258cca9ee479ad47a0cb3b0d29518df6681..8fd5442e7fa385fe60077c48b0f9c259f91307b0 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Push_PushManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     } else {
         assert_equals(tizen.push, undefined, "tizen.push must return undefined");
     }
-}, "Push_PushManagerObject");
+}, document.title);
 
 </script>
 </body>
index 650e7d8e5347640c7aa51268201e4e6e048b38b2..7c4d9f01f48bb5d7d5c7dcd34b90f9f0b8c7a914 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>SecureElement_SEServiceManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     } else {
         assert_equals(tizen.seService, undefined, "tizen.seService must return undefined");
     }
-}, "SecureElement_SEServiceManagerObject");
+}, document.title);
 
 </script>
 </body>
index bf12c730d8ebcb1835b38e02ee8f2ba8c2a02c68..31ce197d565a078058d2898763f14752ef01afd3 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>SystemInfo_SystemInfoObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.systeminfo, "object", "tizen.systeminfo object must exist");
     assert_not_equals(tizen.systeminfo, null, "tizen.systeminfo");
-}, "SystemInfo_SystemInfoObject");
+}, document.title);
 
 </script>
 </body>
index 4b44b5422ed19b4eae7006c7f98f6facda68175d..03ce979b38b3309ff06e224dd9baa1ad0ee066be 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>SystemSetting_SystemSettingObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.systemsetting, "object", "tizen.systemsetting object must exist");
     assert_not_equals(tizen.systemsetting, null, "tizen.systemsetting");
-}, "SystemSetting_SystemSettingObject");
+}, document.title);
 
 </script>
 </body>
index b6d2dcccfa08f0131bb6183cffb1dc2bbddfd49e..1279093a4b805c648f841fce70803062bbaf79e3 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Time_TimeManagerObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen.time, "object", "tizen.time object must exist");
     assert_not_equals(tizen.time, null, "tizen.time");
-}, "Time_TimeManagerObject");
+}, document.title);
 
 </script>
 </body>
index b2fb8ecc7acfde5128b21f4d10e63be9def99750..ef7d1d997e00ec14358fffce8a7526462067c9ce 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Tizen_TizenObject</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_type(tizen, "object", "tizen object must exist");
     assert_not_equals(tizen, null, "tizen");
-}, "Tizen_TizenObject");
+}, document.title);
 
 </script>
 </body>
diff --git a/tct-namespace-tizen-tests/namespace/support/Makefile.am b/tct-namespace-tizen-tests/namespace/support/Makefile.am
new file mode 100644 (file)
index 0000000..1c90b1f
--- /dev/null
@@ -0,0 +1,3 @@
+supportdir = /opt/tct-namespace-tizen-tests/namespace/support
+support_DATA = *.js
+EXTRA_DIST = $(support_DATA)
diff --git a/tct-namespace-tizen-tests/namespace/support/unitcommon.js b/tct-namespace-tizen-tests/namespace/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;
+}