[NFC] code consistency improvement
authorPiotr Szydelko <p.szydelko@samsung.com>
Tue, 8 Oct 2013 09:50:03 +0000 (11:50 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 11:17:06 +0000 (11:17 +0000)
Change-Id: I951b3068ee6d48c4f9d2ef012eddf25d854c4b66

128 files changed:
tct-nfc-tizen-tests/nfc/ByteArraySuccessCallback_notexist.html
tct-nfc-tizen-tests/nfc/NDEFMessageReadCallback_notexist.html
tct-nfc-tizen-tests/nfc/NDEFMessage_constructor.html
tct-nfc-tizen-tests/nfc/NDEFMessage_constructor_rawData.html
tct-nfc-tizen-tests/nfc/NDEFMessage_constructor_records.html
tct-nfc-tizen-tests/nfc/NDEFMessage_exist.html
tct-nfc-tizen-tests/nfc/NDEFMessage_extend.html
tct-nfc-tizen-tests/nfc/NDEFMessage_recordCount_attribute.html
tct-nfc-tizen-tests/nfc/NDEFMessage_records_attribute.html
tct-nfc-tizen-tests/nfc/NDEFMessage_toByte.html
tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_TypeMismatch.html
tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_empty.html
tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_exists.html
tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_extra_argument.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_constructor.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_exist.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_extend.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_id_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_mimeType_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_payload_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_tnf_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordMedia_type_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_constructor.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_constructor_encoding_UTF16.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_constructor_encoding_UTF8.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_encoding_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_exist.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_extend.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_id_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_languageCode_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_payload_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_text_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_tnf_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordText_type_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_constructor.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_exist.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_extend.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_id_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_payload_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_tnf_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_type_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecordURI_uri_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecord_constructor.html
tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_raw_data.html
tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_tnf.html
tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_tnf_with_id.html
tct-nfc-tizen-tests/nfc/NDEFRecord_exist.html
tct-nfc-tizen-tests/nfc/NDEFRecord_extend.html
tct-nfc-tizen-tests/nfc/NDEFRecord_id_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecord_payload_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecord_tnf_attribute.html
tct-nfc-tizen-tests/nfc/NDEFRecord_type_attribute.html
tct-nfc-tizen-tests/nfc/NFCAdapter_extend.html
tct-nfc-tizen-tests/nfc/NFCAdapter_getCachedMessage.html
tct-nfc-tizen-tests/nfc/NFCAdapter_getCachedMessage_exist.html
tct-nfc-tizen-tests/nfc/NFCAdapter_getCachedMessage_extra_argument.html
tct-nfc-tizen-tests/nfc/NFCAdapter_notexist.html
tct-nfc-tizen-tests/nfc/NFCAdapter_powered_attribute.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_detectCallback_TypeMismatch.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_detectCallback_invalid_cb.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_exist.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_missarg.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_errorCallback_TypeMismatch.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_errorCallback_invalid_cb.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_exist.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_off.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_on.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_successCallback_TypeMismatch.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_successCallback_invalid_cb.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_without_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_without_successCallback.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_detectCallback_TypeMismatch.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_detectCallback_invalid_cb.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_exist.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_missarg.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_tagFilter_TypeMismatch.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_tagFilter_is_null.html
tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_with_tagFilter.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetPeerListener.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetPeerListener_exist.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetPeerListener_extra_argument.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetTagListener.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetTagListener_exist.html
tct-nfc-tizen-tests/nfc/NFCAdapter_unsetTagListener_extra_argument.html
tct-nfc-tizen-tests/nfc/NFCManagerObject_notexist.html
tct-nfc-tizen-tests/nfc/NFCManager_NFC_RECORD_TNF_EMPTY_const.html
tct-nfc-tizen-tests/nfc/NFCManager_NFC_RECORD_TNF_EXTERNAL_RTD_const.html
tct-nfc-tizen-tests/nfc/NFCManager_NFC_RECORD_TNF_MIME_MEDIA_const.html
tct-nfc-tizen-tests/nfc/NFCManager_NFC_RECORD_TNF_UNCHANGED_const.html
tct-nfc-tizen-tests/nfc/NFCManager_NFC_RECORD_TNF_UNKNOWN_const.html
tct-nfc-tizen-tests/nfc/NFCManager_NFC_RECORD_TNF_URI_const.html
tct-nfc-tizen-tests/nfc/NFCManager_NFC_RECORD_TNF_WELL_KNOWN_const.html
tct-nfc-tizen-tests/nfc/NFCManager_extend.html
tct-nfc-tizen-tests/nfc/NFCManager_getDefaultAdapter.html
tct-nfc-tizen-tests/nfc/NFCManager_getDefaultAdapter_exists.html
tct-nfc-tizen-tests/nfc/NFCManager_getDefaultAdapter_extra_argument.html
tct-nfc-tizen-tests/nfc/NFCManager_notexist.html
tct-nfc-tizen-tests/nfc/NFCManager_setExclusiveMode.html
tct-nfc-tizen-tests/nfc/NFCManager_setExclusiveMode_exist.html
tct-nfc-tizen-tests/nfc/NFCPeer.html
tct-nfc-tizen-tests/nfc/NFCPeerDetectCallback_notexist.html
tct-nfc-tizen-tests/nfc/NFCPeerDetectCallback_onattach.html
tct-nfc-tizen-tests/nfc/NFCPeerDetectCallback_ondetach.html
tct-nfc-tizen-tests/nfc/NFCPeer_notexist.html
tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_sendData.html
tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_with_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_with_successCallback.html
tct-nfc-tizen-tests/nfc/NFCPeer_unsetReceiveNDEFListener.html
tct-nfc-tizen-tests/nfc/NFCPeer_unsetReceiveNDEFListener_extra_argument.html
tct-nfc-tizen-tests/nfc/NFCTag.html
tct-nfc-tizen-tests/nfc/NFCTagDetectCallback_notexist.html
tct-nfc-tizen-tests/nfc/NFCTagDetectCallback_onattach.html
tct-nfc-tizen-tests/nfc/NFCTagDetectCallback_ondetach.html
tct-nfc-tizen-tests/nfc/NFCTag_notexist.html
tct-nfc-tizen-tests/nfc/NFCTag_readNDEF_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCTag_readNDEF_without_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCTag_transceive_with_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCTag_writeNDEF.html
tct-nfc-tizen-tests/nfc/NFCTag_writeNDEF_with_errorCallback.html
tct-nfc-tizen-tests/nfc/NFCTag_writeNDEF_with_successCallback.html
tct-nfc-tizen-tests/nfc/Tizen_nfc_exist.html
tct-nfc-tizen-tests/nfc/support/unitcommon.js [new file with mode: 0644]
tct-nfc-tizen-tests/resources/unitcommon.js [deleted file]
tct-nfc-tizen-tests/tests.full.xml
tct-nfc-tizen-tests/tests.xml

index b721281ea743ad286274fd44556c4ce600a9847f..438d93597f040840945e1499de23cebd021b519b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>ByteArraySuccessCallback_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("ByteArraySuccessCallback");
-}, "ByteArraySuccessCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index 8f388259e707d5db6abbeb2a0d0241805aabf08a..f3106371b66c048cd81d8e6e6f2f5634efd8c88e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFMessageReadCallback_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NDEFMessageReadCallback");
-}, "NDEFMessageReadCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index 3121594f87209f8340f346d6b6368db3ba4f5050..46757655b6af545bf64a4531536181be06c82d32 100644 (file)
@@ -27,7 +27,7 @@ Authors:
 <title>NDEFMessage_constructor</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: NDEFMessage_constructor
-//==== LABEL check if NDEFMessage constructor works without arguments
+//==== LABEL Check if NDEFMessage constructor works without arguments
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA CONSTRM
@@ -52,7 +52,7 @@ test(function () {
     assert_own_property(message, "records", "message does not own records property.");
     assert_array_equals(message.records, [], "message.records");
 
-}, "NDEFMessage_constructor");
+}, document.title);
 
 </script>
 </body>
index e2f3770b76de42a9a0402b42447d7e336c4addd6..97c4f7dd028d21be8fb6e56ed62941272c715061 100644 (file)
@@ -27,7 +27,7 @@ Authors:
 <title>NDEFMessage_constructor_rawData</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: NDEFMessage_constructor_rawData
-//==== LABEL check if NDEFMessage constructor works with rawData
+//==== LABEL Check if NDEFMessage constructor works with rawData
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA CONSTRM
@@ -61,7 +61,7 @@ test(function () {
     assert_array_equals(message.records[0].id, record.id, "reconstructed record.id");
     assert_array_equals(message.records[0].payload, record.payload, "reconstructed record.payload");
 
-}, "NDEFMessage_constructor_rawData");
+}, document.title);
 
 </script>
 </body>
index 21777758c8f504cd613e0a1f268476b5c32d0fc8..23e0fc10e6588dc4c5f69f331691d36752b1d5de 100644 (file)
@@ -39,7 +39,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NDEFMessage_constructor_records
-//==== LABEL check NDEFMessage constructor with records array
+//==== LABEL Check NDEFMessage constructor with NDEF records array
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
@@ -59,7 +59,7 @@ test(function () {
         "type of first record is wrong");
     assert_equals(message.records[0].text, "Hi!",
         "content of first record is wrong");
-}, "NDEFMessage_constructor_records");
+}, document.title);
 
 </script>
 </body>
index 8e645c029005229020ddeaad7101c87084ffbd22..0e197dad7659dcb71b49c6f9792296d4234a8855 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFMessage_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,7 +37,7 @@ Authors:
 
 test(function () {
     check_constructor("NDEFMessage");
-}, "NDEFMessage_exist");
+}, document.title);
 
 </script>
 </body>
index f55cec1d4e7f2de21c3fa9482590c9f010bee951..4f17beed151c8416a47ceb6612875a001c65b931 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFMessage_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ var message;
 test(function () {
     message = new tizen.NDEFMessage();
     check_extensibility(message);
-}, "NDEFMessage_extend");
+}, document.title);
 
 </script>
 </body>
index 2792af00d73d6bcc0f5f778a88e63129d9015ef6..86473661019c349f0c494220bfb53425b2f29208 100644 (file)
@@ -34,13 +34,13 @@ Authors:
 <head>
 <title>NDEFMessage_recordCount_attribute</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NDEFMessage_recordCount_attribute
-//==== LABEL Check if attribute recordCount of NDEFMessage exists, has type Number and is readonly
+//==== LABEL Check if attribute NDEFMessage::recordCount exists, has type Number and is readonly
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:recordCount A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA AE AT ARO
@@ -61,7 +61,7 @@ test(function () {
     message.recordCount = null;
     assert_equals(message.recordCount, message.records.length,
         "recordCount and record.length differ after assigning null");
-}, "NDEFMessage_recordCount_attribute");
+}, document.title);
 
 </script>
 </body>
index 53e8ebb60bfe75f1c0c0a927cf5f3a38ff89bb31..ae149b2d9d9906fa319804bbc7b2b932f9599dc8 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFMessage_records_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -60,7 +60,7 @@ test(function () {
 
     check_not_nullable(message, "records");
 
-}, "NDEFMessage_records_attribute");
+}, document.title);
 
 </script>
 </body>
index 60eade4564279379212e338c54c1569924ea3c39..95751153a47560e7f4037fbd8580430e4df02fb5 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 <title>NDEFMessage_toByte</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -34,14 +34,14 @@ Authors:
 <script>
 
 //==== TEST: NDEFMessage_toByte
-//==== LABEL check whether NDEFMessage:toByte() returns correct byte array of the NDEF message
+//==== LABEL Check whether NDEFMessage:toByte() returns correct byte array of the NDEF message
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:toByte M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA MNA MR
 
 test(function () {
     var raw = [145, 1, 6, 85, 0, 121, 46, 99, 111, 109,
-                81, 1, 6, 85, 0, 120, 46, 99, 111, 109],
+        81, 1, 6, 85, 0, 120, 46, 99, 111, 109],
         message, result;
 
     message = new tizen.NDEFMessage(raw);
@@ -51,7 +51,7 @@ test(function () {
     assert_type(result, "array", "toByte() should return array");
     assert_array_equals(result, raw, "returned by toByte()");
 
-}, "NDEFMessage_toByte");
+}, document.title);
 
 </script>
 </body>
index c64241bc04a7e7630bc8ae9c6938c3a94fe01de4..967df8c0ee5a361acac7a664f7d9b567214c4eca 100644 (file)
@@ -27,7 +27,7 @@ Authors:
 <title>NDEFMessage_toByte_TypeMismatch</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: NDEFMessage_toByte_TypeMismatch
-//==== LABEL check whether NDEFMessage:toByte() throws exception when NDEFMessage.records contains invalid object
+//==== LABEL Check whether NDEFMessage:toByte() throws exception when NDEFMessage.records contains invalid object
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:toByte M
 //==== PRIORITY P2
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
@@ -48,11 +48,11 @@ test(function () {
 
     message.records = ["not-a-record"];
 
-    assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         result = message.toByte();
     });
 
-}, "NDEFMessage_toByte_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index ddeb286599c73abe857ae3a6ea1eb5adb95e8156..9a3a6b4a7fcebd9a178f0c3ffb2ee3a2a1ba9f87 100644 (file)
@@ -27,7 +27,7 @@ Authors:
 <title>NDEFMessage_toByte_empty</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: NDEFMessage_toByte_empty
-//==== LABEL check whether NDEFMessage::toByte() returns empty array for empty NDEF message
+//==== LABEL Check whether NDEFMessage::toByte() returns empty array for empty NDEF message
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:toByte M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA MNA MR
@@ -50,7 +50,7 @@ test(function () {
     assert_type(result, "array", "toByte() should return array");
     assert_array_equals(result, raw, "returned by toByte()");
 
-}, "NDEFMessage_toByte_empty");
+}, document.title);
 
 </script>
 </body>
index 0cb1b606cdadce44a5c0d2a5f2a1f3967d15ad92..16e03d0390d3093deb7985224f5fff2cfa63edfb 100644 (file)
@@ -34,13 +34,13 @@ Authors:
 <head>
 <title>NDEFMessage_toByte_exists</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NDEFMessage_toByte_exists
-//==== LABEL Test method NDEFMessage.toByte exists
+//==== LABEL Check if method NDEFMessage::toByte() exists
 //==== SPEC Tizen Web API:Communication:NFC:NDEFMessage:toByte M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -53,7 +53,7 @@ test(function () {
 
     check_method_exists(message, "toByte");
 
-}, "NDEFMessage_toByte_exists");
+}, document.title);
 
 </script>
 </body>
index d3519eaa1394d42fdda16e27af555bd66e32fd47..7353a06ed59e9ba36a672b4f70825af7c8dca228 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFMessage_toByte_extra_argument</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 @@ var message;
 test(function () {
     message = new tizen.NDEFMessage();
     checkExtraArgument(message, "toByte");
-}, "NDEFMessage_toByte_extra_argument");
+}, document.title);
 
 </script>
 </body>
index 38b443841b4065829e9ebff4bb70f66ec7975558..ff7b05f051bbacb8cd13eecd518756320551d7f7 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -51,7 +51,7 @@ test(function () {
 
     assert_equals(record.mimeType, "text/plain", "record.mimeType");
     assert_array_equals(record.payload, bytes, "record.payload");
-}, "NDEFRecordMedia_constructor");
+}, document.title);
 
 </script>
 </body>
index 69dc343a1b7ee3f5ac76dbc91d0558b2043987c5..1c244927ffa3c45aebbba2e67f3b57130e9bea29 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,7 +37,7 @@ Authors:
 
 test(function () {
     check_constructor("NDEFRecordMedia");
-}, "NDEFRecordMedia_exist");
+}, document.title);
 
 </script>
 </body>
index 6089a0c0994e66f2d176d84f0f77d30671d44e93..67601e12cc4d5b8141f6b2cd3b82413993f96ea6 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -42,7 +42,7 @@ var record,
 test(function () {
     record = new tizen.NDEFRecordMedia("text/plain", bytes);
     check_extensibility(record);
-}, "NDEFRecordMedia_extend");
+}, document.title);
 
 </script>
 </body>
index e550d9361b4ed5e61d9354fa84d7274ff0933bcd..093ae7d00651c7d540f2719dcd0f5737b1b041ad 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_id_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -50,7 +50,7 @@ test(function () {
     assert_array_equals(record.id, id_bytes, "record.id after assignment");
 
     check_invalid_array_assignments(record, "id", false);
-}, "NDEFRecordMedia_id_attribute");
+}, document.title);
 
 </script>
 </body>
index afc50aae474962044779793bb6c50667a52c3436..b49862dbc598d7a250a084d7eb7477a2b8466485 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_mimeType_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -45,7 +45,7 @@ test(function () {
 
     record.mimeType = null;
     assert_equals(record.mimeType, "text/plain", "record.mimeType should ignore null");
-}, "NDEFRecordMedia_mimeType_attribute");
+}, document.title);
 
 </script>
 </body>
index fa40c6b8e7472e642637540be7fe93d0b0cb16a7..8b08ed952e414efe6b07b5aaa088aed7001fa318 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_payload_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ test(function () {
     assert_array_equals(record.payload, bytes, "record.payload after assignment");
 
     check_invalid_array_assignments(record, "payload", false);
-}, "NDEFRecordMedia_payload_attribute");
+}, document.title);
 
 </script>
 </body>
index 7d75248f82c0ba54791ee74a799bceb83446b4fb..d57cf9e5b9cc2cad060fc2ca9c53abe01cf4c547 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_tnf_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -45,7 +45,7 @@ test(function () {
 
     record.tnf = null;
     assert_not_equals(record.tnf, null, "record.tnf should not accept null");
-}, "NDEFRecordMedia_tnf_attribute");
+}, document.title);
 
 </script>
 </body>
index 39495ba7c12bdfa39e8383900d118c7bd8b8a59f..1c9d022c34f89bba737b644a0aa1009980dca319 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordMedia_type_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -51,7 +51,7 @@ test(function () {
     assert_array_equals(record.type, type_bytes, "record.type after assignment");
 
     check_invalid_array_assignments(record, "type", false);
-}, "NDEFRecordMedia_type_attribute");
+}, document.title);
 
 </script>
 </body>
index 8d46d8cf67d7d7e7603a9360789932c69fde9251..5ef7dbab69c6d93d5c610b7c16984c2fa11b8a4c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -48,7 +48,7 @@ test(function () {
     assert_own_property(record, "text", "NDEFRecordText.text");
     assert_own_property(record, "languageCode", "NDEFRecordText.languageCode");
     assert_own_property(record, "encoding", "NDEFRecordText.encoding");
-}, "NDEFRecordText_constructor");
+}, document.title);
 
 </script>
 </body>
index edf727a48e4fb28afb3e5de90b47111875295055..c4565aad390604175949cdece7e62d4db71bc818 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_constructor_encoding_UTF16</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ test(function () {
     assert_own_property(record, "languageCode", "NDEFRecordText.languageCode");
     assert_own_property(record, "encoding", "NDEFRecordText.encoding");
     assert_equals(record.encoding, "UTF16", "record.encoding");
-}, "NDEFRecordText_constructor_encoding_UTF16");
+}, document.title);
 
 </script>
 </body>
index 34f9f0be16a79111ac40d538adbb665e956ac15e..4e38fad542cb24b1a5c11d60596f7e9ff2e9ac66 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_constructor_encoding_UTF8</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ test(function () {
     assert_own_property(record, "languageCode", "NDEFRecordText.languageCode");
     assert_own_property(record, "encoding", "NDEFRecordText.encoding");
     assert_equals(record.encoding, "UTF8", "record.encoding");
-}, "NDEFRecordText_constructor_encoding_UTF8");
+}, document.title);
 
 </script>
 </body>
index a296946ed0097e671457cf3137e98389932f065d..0ce77b6badfffa5833cb198d9276efee178972f0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_encoding_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -53,7 +53,7 @@ test(function () {
 
     record.encoding = "";
     assert_not_equals(record.encoding, null, "record.encoding should not accept '' (empty)");
-}, "NDEFRecordText_encoding_attribute");
+}, document.title);
 
 </script>
 </body>
index 1e11608bd30d0b0479ee28830090b0373dbe84ee..9d3a083457755c0d059f98046fb35686366357a2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,7 +37,7 @@ Authors:
 
 test(function () {
     check_constructor("NDEFRecordText");
-}, "NDEFRecordText_exist");
+}, document.title);
 
 </script>
 </body>
index 8e0fee0399e672a4ed0e3b57cdda7d2b94f8880c..e12a375e4738ae0f70c4dc381dca77f8e1541316 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ var record;
 test(function () {
     record = new tizen.NDEFRecordText("Hello World!", "en-GB");
     check_extensibility(record);
-}, "NDEFRecordText_extend");
+}, document.title);
 
 </script>
 </body>
index 57238fd74310420a25231a96c0af1979d0472047..c3ffc840105d4010bbf18e540c3482dccfe36e76 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_id_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ test(function () {
     assert_array_equals(record.id, id_bytes, "record.id after assignment");
 
     check_invalid_array_assignments(record, "id", false);
-}, "NDEFRecordText_id_attribute");
+}, document.title);
 
 </script>
 </body>
index b90b8e5533adb25403029f062f3e11af743e5b4e..a7f69975d09b4dfceb091f7b7a450816ebde8209 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_languageCode_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -43,7 +43,7 @@ test(function () {
 
     record.languageCode = null;
     assert_equals(record.languageCode, "en-GB", "record.languageCode should ignore null");
-}, "NDEFRecordText_languageCode_attribute");
+}, document.title);
 
 </script>
 </body>
index 91ab7504ae68728ed62eafca0bb41ee3c3f68336..b40a5322b686d3b27c42b848effafae432d79eb4 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_payload_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -52,7 +52,7 @@ test(function () {
     assert_array_equals(record.payload, payload_bytes, "record.payload after assignment");
 
     check_invalid_array_assignments(record, "payload", false);
-}, "NDEFRecordText_payload_attribute");
+}, document.title);
 
 </script>
 </body>
index f4b4707a99cfd31b4ffa100b54235b8f171ddd91..e789a5078f13f9705b3018385ee6ce9e0909f061 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_text_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -43,7 +43,7 @@ test(function () {
 
     record.text = null;
     assert_equals(record.text, text, "record.text should ignore null");
-}, "NDEFRecordText_text_attribute");
+}, document.title);
 
 </script>
 </body>
index 0c1ac8769c6dc82bc23430aefa210e9f25c18f94..46d200c8c28c0c02f3365ba9eb79a4a8dafd5fcf 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_tnf_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -43,7 +43,7 @@ test(function () {
 
     record.tnf = null;
     assert_equals(record.tnf, tizen.nfc.NFC_RECORD_TNF_WELL_KNOWN, "record.tnf should ignore null");
-}, "NDEFRecordText_tnf_attribute");
+}, document.title);
 
 </script>
 </body>
index 7a6007576337354782f1a8afe7b9546d148f2cf7..89b4aff804f2fa05e4ce0db3385b4bc8dca4106d 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordText_type_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     assert_array_equals(record.type, [84], "record.type after assignment");
 
     check_invalid_array_assignments(record, "type", false);
-}, "NDEFRecordText_type_attribute");
+}, document.title);
 
 </script>
 </body>
index 8dc859648e9e3d2e9040b00ac1057d6d32294248..84bbf907858346bcea494b3681089579b201dc9b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -48,7 +48,7 @@ test(function () {
     assert_own_property(record, "uri", "NDEFRecordURI.uri");
 
     assert_equals(record.uri, "https://www.tizen.org/", "record.uri");
-}, "NDEFRecordURI_constructor");
+}, document.title);
 
 </script>
 </body>
index cc7d21e1004eb24085928d743b16a1741202c659..9eb384192364219aff57af2e70e06875720b9e1e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,7 +37,7 @@ Authors:
 
 test(function () {
     check_constructor("NDEFRecordURI");
-}, "NDEFRecordURI_exist");
+}, document.title);
 
 </script>
 </body>
index 159a651f6a0afd31fe1893d5cf07000c98cea9e3..cb6cb744a4f42d693877528ed03390533ca726f1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ var record;
 test(function () {
     record = new tizen.NDEFRecordURI("https://www.tizen.org/");
     check_extensibility(record);
-}, "NDEFRecordURI_extend");
+}, document.title);
 
 </script>
 </body>
index 22aba996f6bc03fc78ec167a6f93226a6ba58480..b82d696294820e39daeb5aa85e861b2fe1ce59f2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_id_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ test(function () {
     assert_array_equals(record.id, id_bytes, "record.id after assignment");
 
     check_invalid_array_assignments(record, "id", false);
-}, "NDEFRecordURI_id_attribute");
+}, document.title);
 
 </script>
 </body>
index 63d17b06594a4cdc7eb8826a7104a2dda3cd33f8..beb6f1108dd8f0dad093280530681394def80bc5 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_payload_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -52,7 +52,7 @@ test(function () {
     assert_array_equals(record.payload, payload_bytes, "record.payload after assignment");
 
     check_invalid_array_assignments(record, "payload", false);
-}, "NDEFRecordURI_payload_attribute");
+}, document.title);
 
 </script>
 </body>
index 5b8818084fcf4e22d43321725f657ff551fc3f21..ad71f0f4a58c3a454b02d0bb4976f11802e41bc9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_tnf_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -43,7 +43,7 @@ test(function () {
 
     record.tnf = null;
     assert_equals(record.tnf, tizen.nfc.NFC_RECORD_TNF_WELL_KNOWN, "record.tnf should ignore null");
-}, "NDEFRecordURI_tnf_attribute");
+}, document.title);
 
 </script>
 </body>
index c52f82354e02d5cac9ba5256ee5e85b707e3d9ba..96c226e273e2e7a0cf25e31052e1956a99191e27 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_type_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     assert_array_equals(record.type, type_bytes, "record.type after assignment");
 
     check_invalid_array_assignments(record, "type", false);
-}, "NDEFRecordURI_type_attribute");
+}, document.title);
 
 </script>
 </body>
index 3c6b422b5ccc19c30145854aedf2751a849e05c0..c0f90f4c13b0c7e81781872daf90ef69e5acbcb9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecordURI_uri_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -43,7 +43,7 @@ test(function () {
 
     record.uri = null;
     assert_not_equals(record.uri, null, "record.uri should not accept null");
-}, "NDEFRecordURI_uri_attribute");
+}, document.title);
 
 </script>
 </body>
index 4aef54dc318e638e088187395e20b2f20dc3dbaa..923ebc8a07d3adb1ed9bc36b5ebf0e9550461137 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -45,7 +45,7 @@ test(function () {
     assert_own_property(record, "type", "NDEFRecord.type");
     assert_own_property(record, "id", "NDEFRecord.id");
     assert_own_property(record, "payload", "NDEFRecord.payload");
-}, "NDEFRecord_constructor");
+}, document.title);
 
 </script>
 </body>
index c4e0760f01dfe9d0b651da6416917f2bb34128d1..9d00a44b7808f1898f1c32988ed87d07e4b1540a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_constructor_raw_data</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>
@@ -55,7 +55,7 @@ test(function () {
     assert_array_equals(record2.type, [202], "record2.type should be set up from bytes");
     assert_array_equals(record2.payload, [240, 241], "record2.payload should be set up from bytes");
 
-}, "NDEFRecord_constructor_raw_data");
+}, document.title);
 
 </script>
 </body>
index c4d5ac3a7a4203572663640a087e8b0c49b58b22..ae8d0c7ade701d2370bf8489a07817836a314c1b 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NDEFRecord_constructor_tnf
-//==== LABEL check NDEFRecord.Constructor with all parameters
+//==== LABEL Check NDEFRecord constructor with all parameters
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:NFC:NDEFRecord:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
@@ -66,7 +66,7 @@ test(function () {
     assert_array_equals(newRecord.id, [], "newRecord.id");
     assert_array_equals(newRecord.payload, payload, "newRecord.payload");
 
-}, "NDEFRecord_constructor_tnf");
+}, document.title);
 
 </script>
 </body>
index 896f02ca76bb4a69fb21b19a3b7bbc4048e925ec..e1e0e48fa606afabf7476ea26a73337b3ab3eddb 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NDEFRecord_constructor_tnf_with_id
-//==== LABEL check NDEFRecord.Constructor with only mandatory parameters
+//==== LABEL Check NDEFRecord constructor with only mandatory parameters
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:NFC:NDEFRecord:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
@@ -67,7 +67,7 @@ test(function () {
     assert_array_equals(newRecord.id, record_id, "newRecord.id");
     assert_array_equals(newRecord.payload, payload, "newRecord.payload");
 
-}, "NDEFRecord_constructor_tnf_with_id");
+}, document.title);
 
 </script>
 </body>
index 6a1b357d52e97e55667b65c338e1ee02c5aec0ca..486559d0972f16b632561b08e322b637a39ccf3f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,7 +37,7 @@ Authors:
 
 test(function () {
     check_constructor("NDEFRecord");
-}, "NDEFRecord_exist");
+}, document.title);
 
 </script>
 </body>
index df0f8a86eb6e1a43afa313b8a1ce1a0447b5ff38..a16952e51addebcb6d1096b50012299790a9cc5f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ var record;
 test(function () {
     record = new tizen.NDEFRecord(tizen.nfc.NFC_RECORD_TNF_UNKNOWN, [0x20], [0x40, 0x41]);
     check_extensibility(record);
-}, "NDEFRecord_extend");
+}, document.title);
 
 </script>
 </body>
index 686aa0cc86e3eb91c96315ef29a900007c8cd5fc..b8072cf97580f3f182287897001998da6f03a2e4 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_id_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -54,7 +54,7 @@ test(function () {
     record = new tizen.NDEFRecord(tizen.nfc.NFC_RECORD_TNF_UNKNOWN, [], []);
     assert_array_equals(record.id, [], "default value of id");
 
-}, "NDEFRecord_id_attribute");
+}, document.title);
 
 </script>
 </body>
index d63c4a38e20e4b24b94685477b04414bd43384af..0704935e271bd405bcab24c670fda57c5c9fb602 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_payload_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -48,7 +48,7 @@ test(function () {
     assert_array_equals(record.payload, payload_bytes, "record.payload after assignment");
 
     check_invalid_array_assignments(record, "payload", false);
-}, "NDEFRecord_payload_attribute");
+}, document.title);
 
 </script>
 </body>
index 9efd3312957d043359ad524c45ca320efc161100..70ba6a582ef8bb6b837e57f4842f3b115ac118b3 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_tnf_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -43,7 +43,7 @@ test(function () {
 
     record.tnf = null;
     assert_equals(record.tnf, tizen.nfc.NFC_RECORD_TNF_UNKNOWN, "record.tnf should ignore null");
-}, "NDEFRecord_tnf_attribute");
+}, document.title);
 
 </script>
 </body>
index 96fcf8b037bdc9343aba665950e2f8d1c0cc9726..cc7316467f4d16230786a15eef0b6cf16a3bdc7c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NDEFRecord_type_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     assert_array_equals(record.type, [0x20], "record.type after assignment");
 
     check_invalid_array_assignments(record, "type", false);
-}, "NDEFRecord_type_attribute");
+}, document.title);
 
 </script>
 </body>
index e0b48c83c7ce8855600a86c02204849c8097f757..6a9ecf5c211956223f6fc8e8805c96c8994de773 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ test(function () {
     var adapter;
     adapter = tizen.nfc.getDefaultAdapter();
     check_extensibility(adapter);
-}, "NFCAdapter_extend");
+}, document.title);
 
 </script>
 </body>
index bdb0d3d4bcc89491d941c8d6d67b45fde15ae02a..588c5963d834a49a3eedd7d489e85c010c9f63d2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_getCachedMessage</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>
@@ -41,7 +41,7 @@ test(function () {
     message = adapter.getCachedMessage();
     assert_true(message === null || message instanceof tizen.NDEFMessage,
         "getCachedMessage() should return NDEFMessage or null");
-}, "NFCAdapter_getCachedMessage");
+}, document.title);
 
 </script>
 </body>
index 4b884a8c7cbabf55924b8b569c93b42ef025337f..4aa208672d060319091d41cb7b67c1badf889b4e 100644 (file)
@@ -35,14 +35,14 @@ Authors:
 <head>
 <title>NFCAdapter_getCachedMessage_exist</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_getCachedMessage_exist
-//==== LABEL check if NFCAdapter method getCachedMessage exists
+//==== LABEL Check if method NFCAdapter::getCachedMessage() exists
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:getCachedMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -53,7 +53,7 @@ test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     assert_true("getCachedMessage" in adapter, "getCachedMessage does not exist.");
     check_method_exists(adapter, "getCachedMessage");
-}, "NFCAdapter_getCachedMessage_exist");
+}, document.title);
 
 </script>
 </body>
index 63fe084b90efa9fe18f05a47873a1a6c36ddc22b..d68372fe2cc3cf192feaa03f8eaad43cf18fabf1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_getCachedMessage_extra_argument</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 @@ var adapter;
 test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     checkExtraArgument(adapter, "getCachedMessage");
-}, "NFCAdapter_getCachedMessage_extra_argument");
+}, document.title);
 
 </script>
 </body>
index cb39d5c840eba1f6c1c0daa3ef64b85779d3c05c..77be5df8a86946ace7b6e7a3d64b0bffb30b29ef 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NFCAdapter");
-}, "NFCAdapter_notexist");
+}, document.title);
 
 </script>
 </body>
index c32b5af45dab040c82acbd55db498fa4afd808ab..42a4b81e50a82b9c31bccc964d2fa931e808cd65 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_powered_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -46,7 +46,7 @@ test(function () {
     adapter.powered = !originalValue;
     assert_equals(adapter.powered, originalValue, "adapter.powered should not be changed");
 
-}, "NFCAdapter_powered_attribute");
+}, document.title);
 
 </script>
 </body>
index fea7d13a37127295b9fb651caa2b60102aff304f..1b22dfa9362a4f51ff67ab1eb32a6162a80ae681 100644 (file)
@@ -36,14 +36,14 @@ Authors:
 <head>
 <title>NFCAdapter_setPeerListener</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setPeerListener
-//==== LABEL check if detectCallback of setPeerListener can be called successfully when NFC peer-to-peer target is detected
+//==== LABEL Check if method NFCAdapter::setPeerListener() successfully registers listener for detecting NFC peer
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move other NFC device close so it will be detected.
 //==== EXPECT pass - peer detected
@@ -55,7 +55,7 @@ Authors:
 setup({timeout: 90000});
 
 var adapter, peerListener, result = null,
-    t = async_test("NFCAdapter_setPeerListener", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 t.step(function () {
 
index a024f598ae66cf17cd082b2970ffdab1605ea623..e3caa226eee54da048b7cd53597189254b5fdd63 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPeerListener_detectCallback_TypeMismatch</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>
@@ -57,7 +57,7 @@ test(function () {
             }, "[listener = " + value + "]"
         );
     }
-}, "NFCAdapter_setPeerListener_detectCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index 726d8cd68561ba3ea3fb2c706eb6da696dbb515d..3ec55e60d0a3feb8f51635f230a5368995523b64 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPeerListener_detectCallback_invalid_cb</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:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCAdapter_setPeerListener_detectCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     adapter, incorrectListeners, value, exceptionName, i;
 
 t.step(function () {
index 58c59442cee6909c771a5f11aa97569c24fa128e..1bd4789c81557e6648453a74da660c82273d11dd 100644 (file)
@@ -35,14 +35,14 @@ Authors:
 <head>
 <title>NFCAdapter_setPeerListener_exist</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setPeerListener_exist
-//==== LABEL check if NFCAdapter method setPeerListener exists
+//==== LABEL Check if method NFCAdapter::setPeerListener() exists
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:setPeerListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -52,7 +52,7 @@ test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     assert_true("setPeerListener" in adapter, "setPeerListener does not exist.");
     check_method_exists(adapter, "setPeerListener");
-}, "NFCAdapter_setPeerListener_exist");
+}, document.title);
 
 </script>
 </body>
index 7c67960bd67f82a330e7a028e1a263de4a0a3e5c..749068187a2cb5b6b48396dbc3c05a491f4ced5d 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPeerListener_missarg</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>
@@ -33,18 +33,16 @@ Authors:
 <script>
 
 //==== TEST: NFCAdapter_setPeerListener_missarg
-//==== LABEL check if adapter.setPeerListener() throws an exception when called without argument
+//==== LABEL Check if adapter.setPeerListener() throws an exception when called without argument
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:setPeerListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA MMA
 test(function () {
     var adapter = tizen.nfc.getDefaultAdapter();
-    assert_throws({
-        name: "TypeMismatchError"
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         adapter.setPeerListener();
     });
-}, "NFCAdapter_setPeerListener_missarg");
+}, document.title);
 
 </script>
 </body>
index 7f671453b6d53eef204ee137f9c80e710c938ed5..4efcacf50951c5036493d030ce4ef6bb2801cecb 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPowered_errorCallback_TypeMismatch</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>
@@ -55,7 +55,7 @@ test(function () {
     }
 
 
-}, "NFCAdapter_setPowered_errorCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index bd320cfdb8059255ebbde2ad317faa343c5b4cf7..eec9694122644fc3ef89e2a977a84b64bd414c47 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPowered_errorCallback_invalid_cb</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:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCAdapter_setPowered_errorCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     adapter, onSuccess, invalidOnError;
 
 t.step(function () {
@@ -54,9 +54,7 @@ t.step(function () {
         })
     };
 
-    assert_throws({
-        "name": "TypeMismatchError"
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         adapter.setPowered(true, onSuccess, invalidOnError);
     });
     t.done();
index 778271e04543a0dc39214394935f4d22ad333db5..9f5cdcda74d60dd7bb7268c663cff840bf3afa93 100644 (file)
@@ -35,14 +35,14 @@ Authors:
 <head>
 <title>NFCAdapter_setPowered_exist</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setPowered_exist
-//==== LABEL check if NFCAdapter method setPowered exists
+//==== LABEL Check if method NFCAdapter::setPowered() exists
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:setPowered M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -53,7 +53,7 @@ test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     assert_true("setPowered" in adapter, "setPowered does not exist.");
     check_method_exists(adapter, "setPowered");
-}, "NFCAdapter_setPowered_exist");
+}, document.title);
 
 </script>
 </body>
index d564fbf9aceacad8ec4c57da3b6adcda145fa5c4..c0c97aac50a97d7b74ebe954bee3435ce04841b4 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setPowered_off
-//==== LABEL check if NFCAdapter attribute powered can be got successfully when it is set to false
+//==== LABEL Check if method NFCAdapter::setPowered(false) sets a value of attribute NFCAdapter::powered to false
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run"
@@ -54,7 +54,7 @@ Authors:
 setup({timeout: 90000});
 
 var adapter, onSuccess, onError, result = null,
-    t = async_test("NFCAdapter_setPowered_off", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 t.step(function () {
     adapter = tizen.nfc.getDefaultAdapter();
index cf0ceb9cf362994763903c83067de5e6a5eb5d11..8ebc15a42a885760b5f76253e0ad45944e457d20 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setPowered_on
-//==== LABEL check if NFCAdapter attribute powered can be got successfully when it is set to true
+//==== LABEL Check if method NFCAdapter::setPowered(true) sets a value of attribute NFCAdapter::powered to true
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run"
@@ -54,7 +54,7 @@ Authors:
 setup({timeout: 90000});
 
 var adapter, onSuccess, onError, result = null,
-    t = async_test("NFCAdapter_setPowered_on", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 t.step(function () {
     adapter = tizen.nfc.getDefaultAdapter();
index 1320b5d913757af4dfbfe32eb94f217cf5d28a6d..c303f4a80b3a737f5b9fe3d970075330400f5f2a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPowered_successCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -54,7 +54,7 @@ test(function () {
         );
     }
 
-}, "NFCAdapter_setPowered_successCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index d7ff025c9aaea1a66ecbbaede0086678a0ca34c9..97dd5c4cb7243d4e95dc239b2724f1d94dabe3d6 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPowered_successCallback_invalid_cb</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:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCAdapter_setPowered_successCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     adapter, invalidOnSuccess, onError;
 
 t.step(function () {
@@ -54,9 +54,7 @@ t.step(function () {
         assert_unreached("onError was not expected");
     });
 
-    assert_throws({
-        "name": "TypeMismatchError"
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         adapter.setPowered(true, invalidOnSuccess, onError);
     });
     t.done();
index 20152473490184b8bfb282d9d8239bc2a2566100..d272fd1101570d983618bcca9ff8a6fb8e2b5a61 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPowered_without_errorCallback</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:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCAdapter_setPowered_without_errorCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     adapter, onSuccess;
 
 t.step(function () {
index 55be8242b968748e157279ce0d0e7f5d3f23cee2..addef29386492229be6912e334c867732073736a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setPowered_without_successCallback</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>
@@ -37,7 +37,7 @@ Authors:
 //==== TEST_CRITERIA MMINA
 //==== ONLOAD_DELAY 90
 
-var t = async_test("NFCAdapter_setPowered_without_successCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     adapter;
 
 setup({timeout: 90000});
index 249a926c8fea63d65b617ff4e7b462fef80fab49..5312dfb4b7fe05a751594173047dfa77e2fa20c9 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setTagListener
-//==== LABEL Check if tagListener.onattach is invoked in case of successful detection of the NFC tag
+//==== LABEL Check if method NFCAdapter::setTagListener() successfully registers listener for detecting NFC tag
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close so it will be detected.
 //==== EXPECT pass - tag detected
@@ -53,7 +53,7 @@ Authors:
 setup({timeout: 90000});
 
 var adapter, tagListener, result = null,
-    t = async_test("NFCAdapter_setTagListener", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 t.step(function () {
 
index 885308cc7a80a5f6f01395a0764314972d51732e..072e06010802c151e2280edd6989f0f53acf91d1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setTagListener_detectCallback_TypeMismatch</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>
@@ -57,7 +57,7 @@ test(function () {
             }, "[listener = " + value + "]"
         );
     }
-}, "NFCAdapter_setTagListener_detectCallback_TypeMismatch");
+}, document.title);
 
 </script>
 </body>
index fec52fbeec932280a3d976ee3dc5fe856e993d82..2622f49bacc5438eeeaf4a0b1aa134b970686e50 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setTagListener_detectCallback_invalid_cb</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:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCAdapter_setTagListener_detectCallback_invalid_cb", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     adapter, incorrectListeners, value, exceptionName, i;
 
 t.step(function () {
index 5379fd21ca505a5924495e05910fd76aa4260712..329b763ef1e5a3473fd1019ac512de301e9df769 100644 (file)
@@ -35,14 +35,14 @@ Authors:
 <head>
 <title>NFCAdapter_setTagListener_exist</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setTagListener_exist
-//==== LABEL Check if setTagListener method exists
+//==== LABEL Check if NFCAdapter::setTagListener() method exists
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:setTagListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -52,7 +52,7 @@ test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     assert_true("setTagListener" in adapter, "setTagListener does not exist.");
     check_method_exists(adapter, "setTagListener");
-}, "NFCAdapter_setTagListener_exist");
+}, document.title);
 
 </script>
 </body>
index 85c5bca26097c0e14b584288b9a0027909107d66..2f752fc6e436b6e6a2b71ccb3f477aee7fe7e688 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>NFCAdapter_setTagListener_missarg</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>
@@ -33,19 +33,17 @@ Authors:
 <script>
 
 //==== TEST: NFCAdapter_setTagListener_missarg
-//==== LABEL check if adapter.setTagListener() throws an exception
+//==== LABEL Check if adapter.setTagListener() throws an exception
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:setTagListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA MMA
 
 test(function () {
     var adapter = tizen.nfc.getDefaultAdapter();
-    assert_throws({
-        name: "TypeMismatchError"
-    }, function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
         adapter.setTagListener();
     });
-}, "NFCAdapter_setTagListener_missarg");
+}, document.title);
 
 </script>
 </body>
index c67b209a5585be3f83bb0c79ac64a4c44a9afbae..7e2a92c257d72811f940a300755948548df0e199 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_setTagListener_tagFilter_TypeMismatch</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,11 +39,10 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCAdapter_setTagListener_tagFilter_TypeMismatch", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), adapter = tizen.nfc.getDefaultAdapter(), i, badValues,
+    value, exceptionName, listener;
 
 t.step(function () {
-    var adapter = tizen.nfc.getDefaultAdapter(),
-        i, badValues, value, exceptionName, listener;
 
     listener = {
         onattach: this.step_func(function () { assert_unreached("onattach"); }),
index d55560a03773f7b8a7b47630d15d8da96b4a0e30..e56a39dbab27a8202659f5415d7ee36926e28100 100644 (file)
@@ -39,7 +39,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setTagListener_tagFilter_is_null
-//==== LABEL check if successful callback of setTagListener method is invoked when tagFilter is set to null
+//==== LABEL Check if onattach() callback is called successfully when NFC tag is detected after NFCAdapter::setTagListener() with null tagFilter
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close to the device so it will be detected.
@@ -52,10 +52,9 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCAdapter_setTagListener_tagFilter_is_null", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), adapter, tagListener;
 
 t.step(function () {
-    var adapter, tagListener;
 
     tagListener = {
         onattach: t.step_func(function (nfcTag) {
index e110b1aeb1e22c2c4fb6e894332b25652409181d..9728e51652138795c09447779dd2f2e691ef94f4 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_setTagListener_with_tagFilter
-//==== LABEL check if successful callback of setTagListener method is invoked with tagFilter parameters
+//==== LABEL Check if onattach() callback is called successfully when NFC tag is detected after NFCAdapter::setTagListener() with valid tagFilter
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close to the device so it will be detected.
@@ -55,7 +55,7 @@ setup({timeout: 90000});
 
 var adapter, tagListener,
     NFCTagTypeList = Object.getOwnPropertyNames(NFCTagType),
-    t = async_test("NFCAdapter_setTagListener_with_tagFilter", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 t.step(function () {
     tagListener = {
index ce395734f7d08f162b3bc2cda2549dfa549e01ba..14f7c42fe50a47920788bc21f54abf6052bc1ed9 100644 (file)
@@ -45,7 +45,7 @@ Authors:
 
 <script type="text/javascript">
 //==== TEST: NFCAdapter_unsetPeerListener
-//==== LABEL Check if successfully unset listener for detecting an NFC peer-to-peer target
+//==== LABEL Check if method NFCAdapter::unsetPeerListener() disables listener for detecting an NFC peer-to-peer target
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move other NFC device close so it will be detected and then click "Peer was attached" button.
 //==== EXPECT Pass
@@ -55,7 +55,7 @@ Authors:
 //==== TEST_CRITERIA MNAST MNA MR
 
 var adapter, peerListener, isWaiting = false, result = null,
-    t = async_test("NFCAdapter_unsetPeerListener", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
index 5e16ef2ea4e61a5c387c3fbe3b75b24ca129643c..f1efc4047a6f38746a0388c39d01f8f513b76d82 100644 (file)
@@ -35,14 +35,14 @@ Authors:
 <head>
 <title>NFCAdapter_unsetPeerListener_exist</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_unsetPeerListener_exist
-//==== LABEL Check if unsetPeerListener method exists
+//==== LABEL Check if method NFCAdapter::unsetPeerListener() exists
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:unsetPeerListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -52,7 +52,7 @@ test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     assert_true("unsetPeerListener" in adapter, "unsetPeerListener does not exist.");
     check_method_exists(adapter, "unsetPeerListener");
-}, "NFCAdapter_unsetPeerListener_exist");
+}, document.title);
 
 </script>
 </body>
index 573165f37f49e78dec10be138f8af5513a11e98c..afaee4b32bd21193267e83552da5f0717f2d4d16 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_unsetPeerListener_extra_argument</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 @@ var adapter;
 test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     checkExtraArgument(adapter, "unsetPeerListener");
-}, "NFCAdapter_unsetPeerListener_extra_argument");
+}, document.title);
 
 </script>
 </body>
index 5d8c90a7d118c0ad2f6d2f05ffedebd60c0c8c52..a69f2c6097bee0edc11d756003f19f90a21012ed 100644 (file)
@@ -45,7 +45,7 @@ Authors:
 
 <script type="text/javascript">
 //==== TEST: NFCAdapter_unsetTagListener
-//==== LABEL Check if successfully unset listener for detecting an NFC tag
+//==== LABEL Check if method NFCAdapter::unsetTagListener() disables listener for detecting an NFC tag
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close so it will be detected and then click "Tag was attached" button.
 //==== EXPECT pass
@@ -57,7 +57,7 @@ Authors:
 setup({timeout: 90000});
 
 var adapter, tagListener, isWaiting = false, result = null,
-    t = async_test("NFCAdapter_unsetTagListener", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: t.timeout_length});
 
index 1bfb03ab3cd07d794c1675bc6baf5d608edc1612..8a46fdb5b350f04295ad1d4e521a3c4784da5425 100644 (file)
@@ -35,14 +35,14 @@ Authors:
 <head>
 <title>NFCAdapter_unsetTagListener_exist</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCAdapter_unsetTagListener_exist
-//==== LABEL Check if unsetTagListener method exists
+//==== LABEL Check if method NFCAdapter::unsetTagListener() method exists
 //==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:unsetTagListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -53,7 +53,7 @@ test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     assert_true("unsetTagListener" in adapter, "unsetTagListener does not exist.");
     check_method_exists(adapter, "unsetTagListener");
-}, "NFCAdapter_unsetTagListener_exist");
+}, document.title);
 
 </script>
 </body>
index 63bc6542e033a00d65107b1059eb63fb799e6b45..914ee6e8e8471e072e067fbcadb247a813dbce55 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCAdapter_unsetTagListener_extra_argument</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 @@ var adapter;
 test(function () {
     adapter = tizen.nfc.getDefaultAdapter();
     checkExtraArgument(adapter, "unsetTagListener");
-}, "NFCAdapter_unsetTagListener_extra_argument");
+}, document.title);
 
 </script>
 </body>
index 00a12bc10f4c9c8596529c728b97adbe731b1495..280bae632941cb710cbf3af01acfd1795de1a38d 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManagerObject_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NFCManagerObject");
-}, "NFCManagerObject_notexist");
+}, document.title);
 
 </script>
 </body>
index 6dce5f6ac8a3d9db0be0ed56b81a83afe467aecb..8a4ec6a76bef8284b572c7e1b66385611d42830a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_NFC_RECORD_TNF_EMPTY_const</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_const(tizen.nfc, "NFC_RECORD_TNF_EMPTY", 0, "number", 2);
-}, "NFCManager_NFC_RECORD_TNF_EMPTY_const");
+}, document.title);
 
 </script>
 </body>
index d2a23e4665b67c9f4edab9ce6ca5a90b9a425fee..452b76885b900b18857becdc4f9faa381c7f03d3 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_NFC_RECORD_TNF_EXTERNAL_RTD_const</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_const(tizen.nfc, "NFC_RECORD_TNF_EXTERNAL_RTD", 4, "number", 2);
-}, "NFCManager_NFC_RECORD_TNF_EXTERNAL_RTD_const");
+}, document.title);
 
 </script>
 </body>
index 132292f974281b88a6504d6a4a56a06a65bce4cb..f3a066619630c8a9ecb6fc7bf87ac96f6d7baec9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_NFC_RECORD_TNF_MIME_MEDIA_const</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_const(tizen.nfc, "NFC_RECORD_TNF_MIME_MEDIA", 2, "number", 0);
-}, "NFCManager_NFC_RECORD_TNF_MIME_MEDIA_const");
+}, document.title);
 
 </script>
 </body>
index f226288f2f34acfbb3f55df39a054fc99dfd4659..a747fb31dd7cc6ed6f3e6820888a58a6bfd657ba 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_NFC_RECORD_TNF_UNCHANGED_const</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_const(tizen.nfc, "NFC_RECORD_TNF_UNCHANGED", 6, "number", 0);
-}, "NFCManager_NFC_RECORD_TNF_UNCHANGED_const");
+}, document.title);
 
 </script>
 </body>
index 520485b494afb3643f1e87b2b577aaf4c8ac87a2..dd51261864bd731c1a650eab5bb15dd022a3c41b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_NFC_RECORD_TNF_UNKNOWN_const</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_const(tizen.nfc, "NFC_RECORD_TNF_UNKNOWN", 5, "number", 0);
-}, "NFCManager_NFC_RECORD_TNF_UNKNOWN_const");
+}, document.title);
 
 </script>
 </body>
index 1eff88b36ebac417c5679f252ecb6100a6fc85b2..01aad29a27b26874db8d3b5dcf2a21b43a65c3b2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_NFC_RECORD_TNF_URI_const</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_const(tizen.nfc, "NFC_RECORD_TNF_URI", 3, "number", 0);
-}, "NFCManager_NFC_RECORD_TNF_URI_const");
+}, document.title);
 
 </script>
 </body>
index b751b94e9484d908353adf101e20c7f632f8e7f6..90a956ae53e0c9b259085524a53e0cb2df6154ba 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_NFC_RECORD_TNF_WELL_KNOWN_const</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_const(tizen.nfc, "NFC_RECORD_TNF_WELL_KNOWN", 1, "number", 0);
-}, "NFCManager_NFC_RECORD_TNF_WELL_KNOWN_const");
+}, document.title);
 
 </script>
 </body>
index 6e3507cf30afcff8c98495a6199aecda1cab192b..92fc0dede2316857acd85b84f8029ac41d238252 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_extensibility(tizen.nfc);
-}, "NFCManager_extend");
+}, document.title);
 
 </script>
 </body>
index 3856696767884bf5a1e2f75cd368c3454243cbaf..c4ef637e7cf2e18fd37aa5ae2fbf2016869a2522 100644 (file)
@@ -27,7 +27,7 @@ Authors:
 <title>NFCManager_getDefaultAdapter</title>
 <meta charset="utf-8">
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: NFCManager_getDefaultAdapter
-//==== LABEL check if NFCManager::getDefaultAdapter() method returns object
+//==== LABEL Check if NFCManager::getDefaultAdapter() method returns object
 //==== SPEC Tizen Web API:Communication:NFC:NFCManager:getDefaultAdapter M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA MR MNA
@@ -51,7 +51,7 @@ test(function () {
     assert_inherits(adapter, "unsetTagListener", "adapter does not inherits unsetTagListener");
     assert_inherits(adapter, "unsetPeerListener", "adapter does not inherits unsetPeerListener");
     assert_inherits(adapter, "getCachedMessage", "adapter does not inherits getCachedMessage");
-}, "NFCManager_getDefaultAdapter");
+}, document.title);
 
 </script>
 </body>
index 03621a2c0450eca2d556540ac6be6c6ee2e716d3..6747b432d16414cc6a963dd998bada94b2362a66 100644 (file)
@@ -34,14 +34,14 @@ Authors:
 <html>
 <head>
 <title>NFCManager_getDefaultAdapter_exists</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <p><a href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html">spec reference</a></p>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCManager_getDefaultAdapter_exists
-//==== LABEL Check if getDefaultAdapter method exists
+//==== LABEL Check if method NFCAdapter::getDefaultAdapter() exists
 //==== SPEC Tizen Web API:Communication:NFC:NFCManager:getDefaultAdapter M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
 //==== TEST_CRITERIA ME
@@ -50,7 +50,7 @@ Authors:
 test(function () {
     assert_true("getDefaultAdapter" in tizen.nfc, "Check if getDefaultAdapter method exists");
     check_method_exists(tizen.nfc, "getDefaultAdapter");
-}, "NFCManager_getDefaultAdapter_exists");
+}, document.title);
 
 </script>
 </body>
index fa64ec55ccf137168be71caba6bcea1100e156a0..ada5cbed075b87cbaed3bfed609be1aaca55b712 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_getDefaultAdapter_extra_argument</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>
@@ -37,7 +37,7 @@ Authors:
 
 test(function () {
     checkExtraArgument(tizen.nfc, "getDefaultAdapter");
-}, "NFCManager_getDefaultAdapter_extra_argument");
+}, document.title);
 
 </script>
 </body>
index 4238e46b65f50066e3ad3906d8f9936d836649aa..eb187ad6e8ed1c74f934fc6b532d82ff00cde50e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NFCManager");
-}, "NFCManager_notexist");
+}, document.title);
 
 </script>
 </body>
index a8eb187464ce75c527cef692a1d7442ed7dcee9e..aa5c0534401e7c55ae3a9a4cd748dc107dabaeb8 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_setExclusiveMode</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>
@@ -45,7 +45,7 @@ test(function () {
     result = null;
     result = tizen.nfc.setExclusiveMode(false);
     assert_equals(result, undefined, "setExclusiveMode() should return undefined");
-}, "NFCManager_setExclusiveMode");
+}, document.title);
 
 </script>
 </body>
index 297b93a48ab2c2dfc44452083f7298252fd00342..bf7ee8745bbe39edc754931a38de43b7022ff6b4 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCManager_setExclusiveMode_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -42,7 +42,7 @@ test(function () {
         "tizen.nfc object should have method setExclusiveMode");
     check_method_exists(tizen.nfc, "setExclusiveMode");
 
-}, "NFCManager_setExclusiveMode_exist");
+}, document.title);
 
 </script>
 </body>
index 0d9e369e5487e4b171ab7a5d9924757577e0a6d2..1b4071ab681289da65c9bf130ab0f4806d65cfcb 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCPeer</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/nfc_common.js"></script>
 </head>
 
@@ -85,7 +85,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCPeer_extend", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000});
 
 t.step(function () {
     var adapter, listener;
@@ -131,9 +131,7 @@ t.step(function () {
                     recordCount: 0
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     peer.sendNDEF(invalidMessage);
                 });
             }, "NFCPeer_sendNDEF_ndefMessage_invalid_obj");
@@ -168,9 +166,7 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     peer.sendNDEF(message, invalidCallback);
                 });
             }, "NFCPeer_sendNDEF_successCallback_invalid_cb");
@@ -205,18 +201,14 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     peer.sendNDEF(message, t.step_func(assert_unreached), invalidCallback);
                 });
             }, "NFCPeer_sendNDEF_errorCallback_invalid_cb");
 
             //------------ NFCPeer_sendNDEF_missarg
             test(function () {
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     peer.sendNDEF();
                 });
             }, "NFCPeer_sendNDEF_missarg");
@@ -255,18 +247,14 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     peer.setReceiveNDEFListener(invalidCallback);
                 });
             }, "NFCPeer_setReceiveNDEFListener_successCallback_invalid_cb");
 
             //------------ NFCPeer_setReceiveNDEFListener_missarg
             test(function () {
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     peer.setReceiveNDEFListener();
                 });
             }, "NFCPeer_setReceiveNDEFListener_missarg");
index 9de8a8fad6f3fc36b7491ff53e6468d48eb574cf..018763fcf0a79201f745003cb0d730307d1a1a0b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCPeerDetectCallback_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NFCPeerDetectCallback");
-}, "NFCPeerDetectCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index dd976dda03a4da8605c16fc2c1c5cf9717157dd9..4ea6ff0c62cb9152894a42449e39c5a60af8db09 100644 (file)
@@ -34,13 +34,13 @@ Authors:
 <head>
 <title>NFCPeerDetectCallback_onattach</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCPeerDetectCallback_onattach
-//==== LABEL Test setPeerListener for check NFCPeerDetectCallback onattach method
+//==== LABEL Check if NFCPeerDetectCallback::onattach() callback is called with proper argument when NFC peer is detected
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move other NFC device close so it will be detected.
 //==== EXPECT pass - setPeerListener onSuccess called
@@ -49,14 +49,14 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare the other device with NFC turned on.
 //==== TEST_CRITERIA CBOA CBT
 
-var adapter, t = async_test("NFCPeerDetectCallback_onattach", {timeout: 90000}), onSuccessCB;
+var adapter, t = async_test(document.title, {timeout: 90000}), onSuccessCB;
 
 setup({timeout: 90000});
 
 t.step(function () {
 
     onSuccessCB = {
-        onattach : t.step_func(function (nfcPeer) {
+        onattach: t.step_func(function (nfcPeer) {
             assert_not_equals(nfcPeer, null, "nfcPeer should not be null");
 
             assert_own_property(nfcPeer, "isConnected", "nfcPeer");
@@ -66,7 +66,7 @@ t.step(function () {
 
             t.done();
         }),
-        ondetach : t.step_func(function () {
+        ondetach: t.step_func(function () {
             adapter.unsetPeerListener();
         })
     };
index 832d23df4cdfe801d66afb4aa71806d2b5c8a329..5e1f4bf8292de945387d2e498b847b1ccf071453 100644 (file)
@@ -34,13 +34,13 @@ Authors:
 <head>
 <title>NFCPeerDetectCallback_ondetach</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCPeerDetectCallback_ondetach
-//==== LABEL Test NFCAdapter.setPeerListener for check NFCPeerDetectCallback.ondetach
+//==== LABEL Check if NFCPeerDetectCallback::ondetach() is called when NFC peer is taken away
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Put the other NFC device close to your device until it will be detected and then take it away.
 //==== EXPECT pass - peerListener ondetach callback should be invoked
@@ -49,13 +49,13 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare the other device with NFC turned on.
 //==== TEST_CRITERIA CBOA
 
-var adapter, peerListener, t = async_test("NFCPeerDetectCallback_ondetach", {timeout: 90000});
+var adapter, peerListener, t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
 t.step(function () {
     peerListener = {
-        onattach : t.step_func(function (nfcPeer) {
+        onattach: t.step_func(function (nfcPeer) {
             assert_not_equals(nfcPeer, undefined, "nfcPeer");
 
             assert_own_property(nfcPeer, "isConnected", "nfcPeer");
@@ -63,7 +63,7 @@ t.step(function () {
             assert_type(nfcPeer.unsetReceiveNDEFListener, "function", "nfcPeer.unsetReceiveNDEFListener");
             assert_type(nfcPeer.sendNDEF, "function", "nfcPeer.sendNDEF");
         }),
-        ondetach : t.step_func(function () {
+        ondetach: t.step_func(function () {
             adapter.unsetPeerListener();
             t.done();
         })
index b9392d41703ab8d369a8d964e84822e3a68bfa5e..b1a5394cfabfacfd769848f82dd668fbab4bc915 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCPeer_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NFCPeer");
-}, "NFCPeer_notexist");
+}, document.title);
 
 </script>
 </body>
index 65076b8c265468a10b4294574aabf77e59c4fe5a..f02d37b100f483177a499370a51f63a99f13c48e 100644 (file)
@@ -34,13 +34,13 @@ Authors:
 <head>
 <title>NFCPeer_sendNDEF_errorCallback</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCPeer_sendNDEF_errorCallback
-//==== LABEL check if errorCallback of sendNDEF can be called successfully when error occurs
+//==== LABEL Check if method NFCPeer::sendNDEF() reports error by calling errorCallback when peer is disconnected
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Put the other NFC device close to your device until it will be detected and then take it away before the expiration of 3 seconds.
@@ -52,7 +52,7 @@ Authors:
 
 
 var adapter, ndefMessage, onSuccessCB, successCallback, errorCallback, delayedSend,
-    t = async_test("NFCPeer_sendNDEF_errorCallback", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
@@ -75,10 +75,10 @@ t.step(function () {
     });
 
     onSuccessCB = {
-        onattach : t.step_func(function (nfcPeer) {
+        onattach: t.step_func(function (nfcPeer) {
             setTimeout(delayedSend, 3000, nfcPeer);
         }),
-        ondetach : t.step_func(function () {
+        ondetach: t.step_func(function () {
             adapter.unsetPeerListener();
         })
     };
index 7cdaceec8d2d408125c4c5f28bbb098bea9add7b..242819b6226ab7ea8903f2c145b34017f0837bc7 100644 (file)
@@ -39,7 +39,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCPeer_sendNDEF_sendData
-//==== LABEL Check using sendNDEF method which is in NFCPeer interface to send data
+//==== LABEL Check if method NFCPeer::sendNDEF() sends data to other NFC device
 //==== PRIORITY P1
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move other NFC device close so it will be detected.
@@ -50,7 +50,7 @@ Authors:
 //==== TEST_CRITERIA MMINA MR
 
 var adapter, nfcPeer,
-    t = async_test("NFCPeer_sendNDEF_sendData", {timeout: 90000}),
+    t = async_test(document.title, {timeout: 90000}),
     powerOnSuccess, powerOnError,
     peerListener, ndefMessage, returned = null;
 
index e090717b49c162a0689d294b04f0dcb5b107f3e2..e8412901063c55ffccad6df609d94e996f359670 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <title>NFCPeer_sendNDEF_with_errorCallback</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
@@ -39,7 +39,7 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare the other device with NFC turned on. Other device should be able to take NDEF message from NFC.
 //==== TEST_CRITERIA MOA MR
 
-var t = async_test("NFCPeer_sendNDEF_with_errorCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     adapter, listener, ndefMessage, successCallback, errorCallback,
     returnedValue = null;
 
index 271747c78c82916e9b63d63fcf1aa8512de5f0b4..005ff035db1d77d8cbe2e69dd19ca6bc979c10df 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <title>NFCPeer_sendNDEF_with_successCallback</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare the other device with NFC turned on. Other device should be able to take NDEF message from NFC.
 //==== TEST_CRITERIA MOA MR
 
-var t = async_test("NFCPeer_sendNDEF_with_successCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     returnedValue = null, adapter, listener, ndefMessage, successCallback;
 
 setup({timeout: 90000});
index 9f794dd25f9c693dba7d26408e7b3f1a16a9e72c..9f3e89fbcbf02d494c4d2f024a88eddfb59cf95f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCPeer_unsetReceiveNDEFListener</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>
@@ -42,13 +42,11 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare the other device with NFC turned on. Other device should be able to send NDEF message by NFC.
 //==== TEST_CRITERIA MR MNA MNAST
 
-var t = async_test("NFCPeer_unsetReceiveNDEFListener", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), adapter, listener, onMessage, returnedValue = null, button = document.getElementById("doneButton");
 
 setup({timeout: 90000});
 
 t.step(function () {
-    var adapter, listener, onMessage, returnedValue = null,
-        button = document.getElementById("doneButton");
 
     onMessage = t.step_func(function (message) {
         assert_unreached("Message received by listener - unsetReceiveNDEFListener() does not work");
index 5926bf5fef53289237e1503d12788c7607183e59..346a8cd31fe893b5c437c9176897d728a4b38d90 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCPeer_unsetReceiveNDEFListener_extra_argument</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>
@@ -40,11 +40,10 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare the other device with NFC turned on.
 //==== TEST_CRITERIA MNAEX
 
-var adapter, t = async_test("NFCPeer_unsetReceiveNDEFListener_extra_argument", {timeout: 90000});
+var adapter, t = async_test(document.title, {timeout: 90000}), listener;
 
 setup({timeout: 90000});
 t.step(function () {
-    var listener;
 
     listener = {
         onattach: t.step_func(function (peer) {
index b51cdd30a64f3df1d8bae8f771e49ea02db5c62e..18e1113adeee83d31fe75e237685d0ca09c977fa 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCTag</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/nfc_common.js"></script>
 </head>
 
@@ -121,7 +121,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCTag_extend", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000});
 
 
 t.step(function () {
@@ -213,9 +213,7 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.readNDEF(invalidCallback);
                 });
             }, "NFCTag_readNDEF_readCallback_invalid_cb");
@@ -246,18 +244,14 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.readNDEF(t.step_func(assert_unreached), invalidCallback);
                 });
             }, "NFCTag_readNDEF_errorCallback_invalid_cb");
 
             //------------ NFCTag_readNDEF_missarg
             test(function () {
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.readNDEF();
                 });
             }, "NFCTag_readNDEF_missarg");
@@ -293,9 +287,7 @@ t.step(function () {
                     recordCount: 0
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.writeNDEF(invalidMessage);
                 });
             }, "NFCTag_writeNDEF_ndefMessage_invalid_obj");
@@ -330,9 +322,7 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.writeNDEF(message, invalidCallback);
                 });
             }, "NFCTag_writeNDEF_successCallback_invalid_cb");
@@ -367,18 +357,14 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.writeNDEF(message, t.step_func(assert_unreached), invalidCallback);
                 });
             }, "NFCTag_writeNDEF_errorCallback_invalid_cb");
 
             //------------ NFCTag_writeNDEF_missarg
             test(function () {
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.writeNDEF();
                 });
             }, "NFCTag_writeNDEF_missarg");
@@ -436,9 +422,7 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.transceive(bytes, invalidCallback);
                 });
             }, "NFCTag_transceive_dataCallback_invalid_cb");
@@ -473,18 +457,14 @@ t.step(function () {
                     })
                 };
 
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.transceive(bytes, t.step_func(assert_unreached), invalidCallback);
                 });
             }, "NFCTag_transceive_errorCallback_invalid_cb");
 
             //------------ NFCTag_transceive_missarg
             test(function () {
-                assert_throws({
-                    name: "TypeMismatchError"
-                }, function () {
+                assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                     tag.transceive([]);
                 });
             }, "NFCTag_transceive_missarg");
index 81149fc1834a51001daefb411f4b9878ba55362c..a104becb8e61ddd156a49d4723927f9cd41f1fd0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCTagDetectCallback_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NFCTagDetectCallback");
-}, "NFCTagDetectCallback_notexist");
+}, document.title);
 
 </script>
 </body>
index fa969e9ce173ee2ad5a5ed5a2b7ed5504ca2c0bf..314b3c2ccae42924502d728b6505a0640881183a 100644 (file)
@@ -39,7 +39,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTagDetectCallback_onattach
-//==== LABEL Test unsetTagListener for check NFCTagDetectCallback onattach method
+//==== LABEL Check if NFCTagDetectCallback::onattach() callback is called with proper argument when NFC tag is detected
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close so it will be detected.
 //==== EXPECT pass - after setTagListener onattach callback was called
@@ -49,13 +49,13 @@ Authors:
 //==== TEST_CRITERIA CBOA CBT
 
 var adapter, onSuccessCB,
-    t = async_test("NFCTagDetectCallback_onattach", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
 t.step(function () {
     onSuccessCB = {
-        onattach : t.step_func(function (nfcTag) {
+        onattach: t.step_func(function (nfcTag) {
             assert_not_equals(nfcTag, null, "nfcTag should not be null");
 
             assert_own_property(nfcTag, "type", "nfcTag");
@@ -66,7 +66,7 @@ t.step(function () {
 
             t.done();
         }),
-        ondetach : t.step_func(function () {
+        ondetach: t.step_func(function () {
             adapter.unsetTagListener();
         })
     };
index d29a7f859b72de4017e8f92a512affbf62115e82..20dcdbbe250c6dcf442d426f868cbc43a13c13e9 100644 (file)
@@ -39,7 +39,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTagDetectCallback_ondetach
-//==== LABEL Test NFCAdapter.setTagListener for check NFCTagDetectCallback.ondetach
+//==== LABEL Check if NFCTagDetectCallback::ondetach() callback is called when NFC tag is disconnected
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close until it will be detected and then take it away.
 //==== EXPECT pass - after setTagListener ondetach callback is called
@@ -50,9 +50,8 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCTagDetectCallback_ondetach", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), adapter, tagListener;
 t.step(function () {
-    var adapter, tagListener;
 
     tagListener = {
         onattach: t.step_func(function (nfcTag) {
index 101b7390fdf2feea33bc32e69c557ba9ba50be5f..d8cc2747b84b9a9c346735d84068421e35c82bc7 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>NFCTag_notexist</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>
@@ -38,7 +38,7 @@ Authors:
 
 test(function () {
     check_no_interface_object("NFCTag");
-}, "NFCTag_notexist");
+}, document.title);
 
 </script>
 </body>
index 68341e9c6115f31aac78696b7df0dcf36ad7a94d..b18aaee1ff5c01fb70ed5166ba037cfe806a3ed8 100644 (file)
@@ -39,7 +39,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTag_readNDEF_errorCallback
-//==== LABEL check if errorCallback of readNDEF can be called successfully when error occurs
+//==== LABEL Check if method NFCTag::readNDEF() reports error by calling errorCallback when NFC tag was disconnected
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close until it will be detected and then take it away before the expiration of 3 seconds.
@@ -51,7 +51,7 @@ Authors:
 
 
 var adapter, onSuccessCB, readCallback, errorCallback, doRead,
-    t = async_test("NFCTag_readNDEF_errorCallback", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
@@ -70,10 +70,10 @@ t.step(function () {
     });
 
     onSuccessCB = {
-        onattach : t.step_func(function (nfcTag) {
+        onattach: t.step_func(function (nfcTag) {
             setTimeout(doRead, 3000, nfcTag);
         }),
-        ondetach : t.step_func(function () {
+        ondetach: t.step_func(function () {
             adapter.unsetTagListener();
         })
     };
index 3d992b9394dff4c2fa9a41613a907f522c0faa5a..2a2524f8a2606f3a3e0693c01a7c3ec9de25a94b 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTag_readNDEF_without_errorCallback
-//==== LABEL Check reading NDEF data from NFC tag
+//==== LABEL Check if method NFCTag::readNDEF() successfully reads data from NFC tag
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close so it will be detected.
 //==== EXPECT pass - read the NDEF data successfully
@@ -56,7 +56,7 @@ Authors:
 //==== TEST_CRITERIA CBT CBOA
 
 var adapter, tagListener, readCallback, result = null,
-    t = async_test("NFCTag_readNDEF_without_errorCallback", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
index c3f37f8e8d82fb77aaee0f6f5c0310429b1a1927..6ee9cbf79aae0a456d0b313b1a7643ccfe556424 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTag_transceive_with_errorCallback
-//==== LABEL check if errorCallback of transceive can be called successfully when error occurs
+//==== LABEL Check if method NFCTag::transceive() reports error by calling errorCallback when NFC tag is disconnected
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close until it will be detected and then take it away before the expiration of 3 seconds.
@@ -52,12 +52,11 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("NFCTag_transceive_with_errorCallback", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), adapter, tagListener,
+    message = [0x30, 0x00, 0x02, 0xa8];       // READ command for MIFARE tags
 
 t.step(function () {
 
-    var adapter, tagListener,
-        message = [0x30, 0x00, 0x02, 0xa8];       // READ command for MIFARE tags
 
     message[4] = 0;              // make CRC wrong
 
index bf38c2c66e3d56424c7d5671743d69b9128b8c1a..d186e532b925f3bb257b0b3f5618fdf338e38fae 100644 (file)
@@ -39,7 +39,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTag_writeNDEF
-//==== LABEL check writeNDEF method
+//==== LABEL Check if method NFCTag::writeNDEF() can be called with only mandatory argument
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close so it will be detected.
@@ -50,7 +50,7 @@ Authors:
 //==== TEST_CRITERIA MR MMINA
 
 var adapter, tagListener, ndefMessage, returned = null,
-    t = async_test("NFCTag_writeNDEF", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
index c7a3b81277cc88678d1f137d30e624a6183c4ca8..d624a4755f659908d3e1ba1afeb02b61bf179201 100644 (file)
@@ -34,13 +34,13 @@ Authors:
 <head>
 <title>NFCTag_writeNDEF_with_errorCallback</title>
 <script type="text/javascript" src="support/nfc_common.js"></script>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTag_writeNDEF_with_errorCallback
-//==== LABEL check if errorCallback of writeNDEF can be called successfully when error occurs
+//==== LABEL Check if method NFCTag::writeNDEF() reports error by calling errorCallback when NFC tag is disconnected
 //==== PRIORITY P2
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close until it will be detected and then take it away before the expiration of 3 seconds.
@@ -51,7 +51,7 @@ Authors:
 //==== TEST_CRITERIA MERRCB
 
 var adapter, ndefMessage, onSuccessCB, successCallback, errorCallback, doWrite,
-    t = async_test("NFCTag_writeNDEF_with_errorCallback", {timeout: 90000});
+    t = async_test(document.title, {timeout: 90000});
 
 setup({timeout: 90000});
 
@@ -73,10 +73,10 @@ t.step(function () {
     });
 
     onSuccessCB = {
-        onattach : t.step_func(function (nfcTag) {
+        onattach: t.step_func(function (nfcTag) {
             setTimeout(doWrite, 3000, nfcTag);
         }),
-        ondetach : t.step_func(function () {
+        ondetach: t.step_func(function () {
             adapter.unsetTagListener();
         })
     };
index 1b212a907cb5b01a0dc17d154b2d9ce8f85f469c..bfaf18645d98f90d081f7a9f6d2b05db8468abf7 100644 (file)
@@ -42,7 +42,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: NFCTag_writeNDEF_with_successCallback
-//==== LABEL Check if successfully writing the NDEF Data
+//==== LABEL Check if method NFCTag::writeNDEF() calls successCallback
 //==== EXECUTION_TYPE manual
 //==== STEP Click "Run". Move NFC tag close so it will be detected.
 //==== EXPECT pass - writing the NDEF Data successfully
@@ -51,12 +51,12 @@ Authors:
 //==== PRE Turn on NFC adapter. Prepare NFC tag.
 //==== TEST_CRITERIA MOA MAST
 
-var t = async_test("NFCTag_writeNDEF_with_successCallback", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), adapter, nfcTag, tagListener, ndefMessage, successCallback,
+    errorCallback, readSuccess, readError;
 
 setup({timeout: 90000});
 
 t.step(function () {
-    var adapter, nfcTag, tagListener, ndefMessage, successCallback, errorCallback, readSuccess, readError;
 
     readSuccess = t.step_func(function (message) {
         assert_equals(message.records[0].text, ndefMessage.records[0].text, "message.records[0].text");
index 6c075553a6be6a83138b1e615fcfb4adab40fbb0..916c8fbefea03a506d8b02ab39240c6e94f08454 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Tizen_nfc_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -39,7 +39,7 @@ Authors:
 test(function () {
     assert_own_property(tizen, "nfc", "Tizen should implement NFCManagerObject");
     assert_equals(typeof(tizen.nfc), "object", "tizen.nfc should be object");
-}, "Tizen_nfc_exist");
+}, document.title);
 
 </script>
 </body>
diff --git a/tct-nfc-tizen-tests/nfc/support/unitcommon.js b/tct-nfc-tizen-tests/nfc/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;
+}
diff --git a/tct-nfc-tizen-tests/resources/unitcommon.js b/tct-nfc-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 3ed8bdf594c87b4000ed3c097808bfa9329117ab..95364fed32fb67816e691820a4a8d72b9514c9d3 100644 (file)
@@ -6,7 +6,7 @@
       <capabilities>
         <capability name="nfc"/>
       </capabilities>
-      <testcase purpose="check if NFCAdapter attribute powered can be got successfully when it is set to true" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setPowered_on">
+      <testcase purpose="Check if method NFCAdapter::setPowered(true) sets a value of attribute NFCAdapter::powered to true" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setPowered_on">
         <description>
           <pre_condition>Turn OFF NFC adapter.</pre_condition>
           <steps>
@@ -25,7 +25,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if errorCallback of readNDEF can be called successfully when error occurs" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_readNDEF_errorCallback">
+      <testcase purpose="Check if method NFCTag::readNDEF() reports error by calling errorCallback when NFC tag was disconnected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_readNDEF_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -44,7 +44,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test NFCAdapter.setTagListener for check NFCTagDetectCallback.ondetach" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTagDetectCallback_ondetach">
+      <testcase purpose="Check if NFCTagDetectCallback::ondetach() callback is called when NFC tag is disconnected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTagDetectCallback_ondetach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -63,7 +63,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if errorCallback of transceive can be called successfully when error occurs" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_transceive_with_errorCallback">
+      <testcase purpose="Check if method NFCTag::transceive() reports error by calling errorCallback when NFC tag is disconnected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_transceive_with_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -82,7 +82,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if errorCallback of writeNDEF can be called successfully when error occurs" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_writeNDEF_with_errorCallback">
+      <testcase purpose="Check if method NFCTag::writeNDEF() reports error by calling errorCallback when NFC tag is disconnected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_writeNDEF_with_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if successfully unset listener for detecting an NFC tag" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_unsetTagListener">
+      <testcase purpose="Check if method NFCAdapter::unsetTagListener() disables listener for detecting an NFC tag" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_unsetTagListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if successfully unset listener for detecting an NFC peer-to-peer target" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_unsetPeerListener">
+      <testcase purpose="Check if method NFCAdapter::unsetPeerListener() disables listener for detecting an NFC peer-to-peer target" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_unsetPeerListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if errorCallback of sendNDEF can be called successfully when error occurs" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCPeer_sendNDEF_errorCallback">
+      <testcase purpose="Check if method NFCPeer::sendNDEF() reports error by calling errorCallback when peer is disconnected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCPeer_sendNDEF_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on. Other device should be able to take NDEF message from NFC.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test NFCAdapter.setPeerListener for check NFCPeerDetectCallback.ondetach" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCPeerDetectCallback_ondetach">
+      <testcase purpose="Check if NFCPeerDetectCallback::ondetach() is called when NFC peer is taken away" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCPeerDetectCallback_ondetach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test method NDEFMessage.toByte exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_toByte_exists">
+      <testcase purpose="Check if method NDEFMessage::toByte() exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_toByte_exists">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_exists.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getDefaultAdapter method exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCManager_getDefaultAdapter_exists">
+      <testcase purpose="Check if method NFCAdapter::getDefaultAdapter() exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCManager_getDefaultAdapter_exists">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCManager_getDefaultAdapter_exists.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check using sendNDEF method which is in NFCPeer interface to send data" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCPeer_sendNDEF_sendData">
+      <testcase purpose="Check if method NFCPeer::sendNDEF() sends data to other NFC device" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCPeer_sendNDEF_sendData">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on. Other device should be able to take NDEF message from NFC.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if NDEFMessage constructor works without arguments" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_constructor">
+      <testcase purpose="Check if NDEFMessage constructor works without arguments" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_constructor">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_constructor.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if NDEFMessage constructor works with rawData" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_constructor_rawData">
+      <testcase purpose="Check if NDEFMessage constructor works with rawData" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_constructor_rawData">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_constructor_rawData.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check NDEFMessage constructor with records array" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_constructor_records">
+      <testcase purpose="Check NDEFMessage constructor with NDEF records array" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_constructor_records">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_constructor_records.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute recordCount of NDEFMessage exists, has type Number and is readonly" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_recordCount_attribute">
+      <testcase purpose="Check if attribute NDEFMessage::recordCount exists, has type Number and is readonly" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_recordCount_attribute">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_recordCount_attribute.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether NDEFMessage:toByte() returns correct byte array of the NDEF message" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_toByte">
+      <testcase purpose="Check whether NDEFMessage:toByte() returns correct byte array of the NDEF message" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_toByte">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether NDEFMessage::toByte() returns empty array for empty NDEF message" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_toByte_empty">
+      <testcase purpose="Check whether NDEFMessage::toByte() returns empty array for empty NDEF message" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NDEFMessage_toByte_empty">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_empty.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check NDEFRecord.Constructor with all parameters" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P2" id="NDEFRecord_constructor_tnf">
+      <testcase purpose="Check NDEFRecord constructor with all parameters" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P2" id="NDEFRecord_constructor_tnf">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_tnf.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check NDEFRecord.Constructor with only mandatory parameters" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P2" id="NDEFRecord_constructor_tnf_with_id">
+      <testcase purpose="Check NDEFRecord constructor with only mandatory parameters" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P2" id="NDEFRecord_constructor_tnf_with_id">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_tnf_with_id.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if adapter.setPeerListener() throws an exception when called without argument" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setPeerListener_missarg">
+      <testcase purpose="Check if adapter.setPeerListener() throws an exception when called without argument" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setPeerListener_missarg">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if adapter.setTagListener() throws an exception" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setTagListener_missarg">
+      <testcase purpose="Check if adapter.setTagListener() throws an exception" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setTagListener_missarg">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if NFCManager::getDefaultAdapter() method returns object" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCManager_getDefaultAdapter">
+      <testcase purpose="Check if NFCManager::getDefaultAdapter() method returns object" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCManager_getDefaultAdapter">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCManager_getDefaultAdapter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if NFCAdapter method getCachedMessage exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_getCachedMessage_exist">
+      <testcase purpose="Check if method NFCAdapter::getCachedMessage() exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_getCachedMessage_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_getCachedMessage_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if detectCallback of setPeerListener can be called successfully when NFC peer-to-peer target is detected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_setPeerListener">
+      <testcase purpose="Check if method NFCAdapter::setPeerListener() successfully registers listener for detecting NFC peer" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_setPeerListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if NFCAdapter method setPeerListener exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setPeerListener_exist">
+      <testcase purpose="Check if method NFCAdapter::setPeerListener() exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setPeerListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if NFCAdapter method setPowered exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setPowered_exist">
+      <testcase purpose="Check if method NFCAdapter::setPowered() exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setPowered_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if setTagListener method exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setTagListener_exist">
+      <testcase purpose="Check if NFCAdapter::setTagListener() method exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_setTagListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if unsetPeerListener method exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_unsetPeerListener_exist">
+      <testcase purpose="Check if method NFCAdapter::unsetPeerListener() exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_unsetPeerListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_unsetPeerListener_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if unsetTagListener method exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_unsetTagListener_exist">
+      <testcase purpose="Check if method NFCAdapter::unsetTagListener() method exists" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P1" id="NFCAdapter_unsetTagListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_unsetTagListener_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test setPeerListener for check NFCPeerDetectCallback onattach method" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCPeerDetectCallback_onattach">
+      <testcase purpose="Check if NFCPeerDetectCallback::onattach() callback is called with proper argument when NFC peer is detected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCPeerDetectCallback_onattach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if successful callback of setTagListener method is invoked when tagFilter is set to null" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setTagListener_tagFilter_is_null">
+      <testcase purpose="Check if onattach() callback is called successfully when NFC tag is detected after NFCAdapter::setTagListener() with null tagFilter" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setTagListener_tagFilter_is_null">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if successful callback of setTagListener method is invoked with tagFilter parameters" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setTagListener_with_tagFilter">
+      <testcase purpose="Check if onattach() callback is called successfully when NFC tag is detected after NFCAdapter::setTagListener() with valid tagFilter" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setTagListener_with_tagFilter">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check reading NDEF data from NFC tag" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTag_readNDEF_without_errorCallback">
+      <testcase purpose="Check if method NFCTag::readNDEF() successfully reads data from NFC tag" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTag_readNDEF_without_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if tagListener.onattach is invoked in case of successful detection of the NFC tag" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_setTagListener">
+      <testcase purpose="Check if method NFCAdapter::setTagListener() successfully registers listener for detecting NFC tag" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCAdapter_setTagListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Test unsetTagListener for check NFCTagDetectCallback onattach method" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTagDetectCallback_onattach">
+      <testcase purpose="Check if NFCTagDetectCallback::onattach() callback is called with proper argument when NFC tag is detected" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTagDetectCallback_onattach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check writeNDEF method" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_writeNDEF">
+      <testcase purpose="Check if method NFCTag::writeNDEF() can be called with only mandatory argument" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCTag_writeNDEF">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if successfully writing the NDEF Data" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTag_writeNDEF_with_successCallback">
+      <testcase purpose="Check if method NFCTag::writeNDEF() calls successCallback" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P1" id="NFCTag_writeNDEF_with_successCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if NFCAdapter attribute powered can be got successfully when it is set to false" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setPowered_off">
+      <testcase purpose="Check if method NFCAdapter::setPowered(false) sets a value of attribute NFCAdapter::powered to false" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="manual" priority="P2" id="NFCAdapter_setPowered_off">
         <description>
           <pre_condition>Turn ON NFC adapter.</pre_condition>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether NDEFMessage:toByte() throws exception when NDEFMessage.records contains invalid object" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P2" id="NDEFMessage_toByte_TypeMismatch">
+      <testcase purpose="Check whether NDEFMessage:toByte() throws exception when NDEFMessage.records contains invalid object" type="compliance" status="approved" component="TizenAPI/Communication/NFC" execution_type="auto" priority="P2" id="NDEFMessage_toByte_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_TypeMismatch.html</test_script_entry>
         </description>
index f2810b6cc10f9fc5c150854b6cfe9b38cae2a12b..0f11439b9eb9062784126dac82a3986fd88bf31b 100644 (file)
@@ -6,7 +6,7 @@
       <capabilities>
         <capability name="nfc"/>
       </capabilities>
-      <testcase purpose="check if NFCAdapter attribute powered can be got successfully when it is set to true" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setPowered_on">
+      <testcase purpose="Check if method NFCAdapter::setPowered(true) sets a value of attribute NFCAdapter::powered to true" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setPowered_on">
         <description>
           <pre_condition>Turn OFF NFC adapter.</pre_condition>
           <steps>
@@ -18,7 +18,7 @@
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_on.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if errorCallback of readNDEF can be called successfully when error occurs" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_readNDEF_errorCallback">
+      <testcase purpose="Check if method NFCTag::readNDEF() reports error by calling errorCallback when NFC tag was disconnected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_readNDEF_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -30,7 +30,7 @@
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTag_readNDEF_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test NFCAdapter.setTagListener for check NFCTagDetectCallback.ondetach" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTagDetectCallback_ondetach">
+      <testcase purpose="Check if NFCTagDetectCallback::ondetach() callback is called when NFC tag is disconnected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTagDetectCallback_ondetach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -42,7 +42,7 @@
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTagDetectCallback_ondetach.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if errorCallback of transceive can be called successfully when error occurs" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_transceive_with_errorCallback">
+      <testcase purpose="Check if method NFCTag::transceive() reports error by calling errorCallback when NFC tag is disconnected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_transceive_with_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -54,7 +54,7 @@
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTag_transceive_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if errorCallback of writeNDEF can be called successfully when error occurs" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_writeNDEF_with_errorCallback">
+      <testcase purpose="Check if method NFCTag::writeNDEF() reports error by calling errorCallback when NFC tag is disconnected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_writeNDEF_with_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -66,7 +66,7 @@
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTag_writeNDEF_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if successfully unset listener for detecting an NFC tag" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_unsetTagListener">
+      <testcase purpose="Check if method NFCAdapter::unsetTagListener() disables listener for detecting an NFC tag" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_unsetTagListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
@@ -78,7 +78,7 @@
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_unsetTagListener.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if successfully unset listener for detecting an NFC peer-to-peer target" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_unsetPeerListener">
+      <testcase purpose="Check if method NFCAdapter::unsetPeerListener() disables listener for detecting an NFC peer-to-peer target" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_unsetPeerListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_with_successCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if errorCallback of sendNDEF can be called successfully when error occurs" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeer_sendNDEF_errorCallback">
+      <testcase purpose="Check if method NFCPeer::sendNDEF() reports error by calling errorCallback when peer is disconnected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeer_sendNDEF_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on. Other device should be able to take NDEF message from NFC.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCPeer_sendNDEF_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test NFCAdapter.setPeerListener for check NFCPeerDetectCallback.ondetach" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeerDetectCallback_ondetach">
+      <testcase purpose="Check if NFCPeerDetectCallback::ondetach() is called when NFC peer is taken away" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeerDetectCallback_ondetach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCPeerDetectCallback_ondetach.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test method NDEFMessage.toByte exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte_exists">
+      <testcase purpose="Check if method NDEFMessage::toByte() exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte_exists">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_exists.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getDefaultAdapter method exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCManager_getDefaultAdapter_exists">
+      <testcase purpose="Check if method NFCAdapter::getDefaultAdapter() exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCManager_getDefaultAdapter_exists">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCManager_getDefaultAdapter_exists.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check using sendNDEF method which is in NFCPeer interface to send data" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeer_sendNDEF_sendData">
+      <testcase purpose="Check if method NFCPeer::sendNDEF() sends data to other NFC device" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeer_sendNDEF_sendData">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on. Other device should be able to take NDEF message from NFC.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessageReadCallback_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if NDEFMessage constructor works without arguments" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_constructor">
+      <testcase purpose="Check if NDEFMessage constructor works without arguments" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_constructor">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_constructor.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if NDEFMessage constructor works with rawData" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_constructor_rawData">
+      <testcase purpose="Check if NDEFMessage constructor works with rawData" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_constructor_rawData">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_constructor_rawData.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check NDEFMessage constructor with records array" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_constructor_records">
+      <testcase purpose="Check NDEFMessage constructor with NDEF records array" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_constructor_records">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_constructor_records.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute recordCount of NDEFMessage exists, has type Number and is readonly" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_recordCount_attribute">
+      <testcase purpose="Check if attribute NDEFMessage::recordCount exists, has type Number and is readonly" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_recordCount_attribute">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_recordCount_attribute.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_records_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether NDEFMessage:toByte() returns correct byte array of the NDEF message" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte">
+      <testcase purpose="Check whether NDEFMessage:toByte() returns correct byte array of the NDEF message" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether NDEFMessage::toByte() returns empty array for empty NDEF message" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte_empty">
+      <testcase purpose="Check whether NDEFMessage::toByte() returns empty array for empty NDEF message" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte_empty">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_empty.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_raw_data.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check NDEFRecord.Constructor with all parameters" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFRecord_constructor_tnf">
+      <testcase purpose="Check NDEFRecord constructor with all parameters" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFRecord_constructor_tnf">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_tnf.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check NDEFRecord.Constructor with only mandatory parameters" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFRecord_constructor_tnf_with_id">
+      <testcase purpose="Check NDEFRecord constructor with only mandatory parameters" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFRecord_constructor_tnf_with_id">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFRecord_constructor_tnf_with_id.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_detectCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if adapter.setPeerListener() throws an exception when called without argument" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setPeerListener_missarg">
+      <testcase purpose="Check if adapter.setPeerListener() throws an exception when called without argument" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setPeerListener_missarg">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_missarg.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_detectCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if adapter.setTagListener() throws an exception" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setTagListener_missarg">
+      <testcase purpose="Check if adapter.setTagListener() throws an exception" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setTagListener_missarg">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_missarg.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCManager_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if NFCManager::getDefaultAdapter() method returns object" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCManager_getDefaultAdapter">
+      <testcase purpose="Check if NFCManager::getDefaultAdapter() method returns object" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCManager_getDefaultAdapter">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCManager_getDefaultAdapter.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCManager_setExclusiveMode_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if NFCAdapter method getCachedMessage exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_getCachedMessage_exist">
+      <testcase purpose="Check if method NFCAdapter::getCachedMessage() exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_getCachedMessage_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_getCachedMessage_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if detectCallback of setPeerListener can be called successfully when NFC peer-to-peer target is detected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setPeerListener">
+      <testcase purpose="Check if method NFCAdapter::setPeerListener() successfully registers listener for detecting NFC peer" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setPeerListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if NFCAdapter method setPeerListener exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setPeerListener_exist">
+      <testcase purpose="Check if method NFCAdapter::setPeerListener() exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setPeerListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPeerListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if NFCAdapter method setPowered exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setPowered_exist">
+      <testcase purpose="Check if method NFCAdapter::setPowered() exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setPowered_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if setTagListener method exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setTagListener_exist">
+      <testcase purpose="Check if NFCAdapter::setTagListener() method exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_setTagListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if unsetPeerListener method exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_unsetPeerListener_exist">
+      <testcase purpose="Check if method NFCAdapter::unsetPeerListener() exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_unsetPeerListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_unsetPeerListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if unsetTagListener method exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_unsetTagListener_exist">
+      <testcase purpose="Check if method NFCAdapter::unsetTagListener() method exists" component="TizenAPI/Communication/NFC" execution_type="auto" id="NFCAdapter_unsetTagListener_exist">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_unsetTagListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test setPeerListener for check NFCPeerDetectCallback onattach method" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeerDetectCallback_onattach">
+      <testcase purpose="Check if NFCPeerDetectCallback::onattach() callback is called with proper argument when NFC peer is detected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCPeerDetectCallback_onattach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare the other device with NFC turned on.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCPeer.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if successful callback of setTagListener method is invoked when tagFilter is set to null" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setTagListener_tagFilter_is_null">
+      <testcase purpose="Check if onattach() callback is called successfully when NFC tag is detected after NFCAdapter::setTagListener() with null tagFilter" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setTagListener_tagFilter_is_null">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_tagFilter_is_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if successful callback of setTagListener method is invoked with tagFilter parameters" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setTagListener_with_tagFilter">
+      <testcase purpose="Check if onattach() callback is called successfully when NFC tag is detected after NFCAdapter::setTagListener() with valid tagFilter" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setTagListener_with_tagFilter">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener_with_tagFilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check reading NDEF data from NFC tag" onload_delay="90" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_readNDEF_without_errorCallback">
+      <testcase purpose="Check if method NFCTag::readNDEF() successfully reads data from NFC tag" onload_delay="90" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_readNDEF_without_errorCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTag_readNDEF_without_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if tagListener.onattach is invoked in case of successful detection of the NFC tag" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setTagListener">
+      <testcase purpose="Check if method NFCAdapter::setTagListener() successfully registers listener for detecting NFC tag" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setTagListener">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setTagListener.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Test unsetTagListener for check NFCTagDetectCallback onattach method" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTagDetectCallback_onattach">
+      <testcase purpose="Check if NFCTagDetectCallback::onattach() callback is called with proper argument when NFC tag is detected" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTagDetectCallback_onattach">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTagDetectCallback_onattach.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check writeNDEF method" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_writeNDEF">
+      <testcase purpose="Check if method NFCTag::writeNDEF() can be called with only mandatory argument" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_writeNDEF">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTag_writeNDEF.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if successfully writing the NDEF Data" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_writeNDEF_with_successCallback">
+      <testcase purpose="Check if method NFCTag::writeNDEF() calls successCallback" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCTag_writeNDEF_with_successCallback">
         <description>
           <pre_condition>Turn on NFC adapter. Prepare NFC tag.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCTag.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if NFCAdapter attribute powered can be got successfully when it is set to false" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setPowered_off">
+      <testcase purpose="Check if method NFCAdapter::setPowered(false) sets a value of attribute NFCAdapter::powered to false" component="TizenAPI/Communication/NFC" execution_type="manual" id="NFCAdapter_setPowered_off">
         <description>
           <pre_condition>Turn ON NFC adapter.</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NFCAdapter_setPowered_off.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether NDEFMessage:toByte() throws exception when NDEFMessage.records contains invalid object" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte_TypeMismatch">
+      <testcase purpose="Check whether NDEFMessage:toByte() throws exception when NDEFMessage.records contains invalid object" component="TizenAPI/Communication/NFC" execution_type="auto" id="NDEFMessage_toByte_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-nfc-tizen-tests/nfc/NDEFMessage_toByte_TypeMismatch.html</test_script_entry>
         </description>