[Messaging] moved tests from sms directory to email and mms directories
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Mon, 7 Oct 2013 16:43:20 +0000 (18:43 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 10:07:51 +0000 (10:07 +0000)
Change-Id: I09af0fefc3dccec9d0b99ec5dc3224439569e9ff

tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0644]
tct-messaging-email-tizen-tests/tests.full.xml
tct-messaging-email-tizen-tests/tests.xml
tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [new file with mode: 0644]
tct-messaging-mms-tizen-tests/tests.full.xml
tct-messaging-mms-tizen-tests/tests.xml
tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [deleted file]
tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html [deleted file]
tct-messaging-sms-tizen-tests/tests.full.xml
tct-messaging-sms-tizen-tests/tests.xml

diff --git a/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..5bd6bdb
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>
+<!--
+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:
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
+
+-->
+<html>
+<head>
+<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)
+//==== PRIORITY: P2
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
+//==== ONLOAD_DELAY 90
+//==== TEST_CRITERIA MC
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectChangeListener, exceptionName, i, conversionTable;
+t.step(function () {
+
+    serviceSuccess = t.step_func(function (services) {
+        assert_true(services.length > 0, "Received empty services array");
+        messageService = services[0];
+        messageStorage = messageService.messageStorage;
+
+        conversionTable = getTypeConversionExceptions("object", false);
+        for(i = 0; i < conversionTable.length; i++) {
+            incorrectChangeListener  = conversionTable[i][0];
+            exceptionName = conversionTable[i][1];
+
+            assert_throws({name: exceptionName},
+                function () {
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
+        }
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
+});
+
+</script>
+</body>
+</html>
index dd54d2128f913705734bcd02641b26ebb467ca20..afa9b2f2ac9440e21e369c41a4a72ee2339bd226 100644 (file)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
 </test_definition>
index 1a132e20d636a19127d6c7c4dca91dce6bf3a0ce..1aae3bf7ff05f2761c93e66eeff67dc721c47956 100644 (file)
           <test_script_entry timeout="180">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
   </suite>
 </test_definition>
diff --git a/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..c365ab9
--- /dev/null
@@ -0,0 +1,72 @@
+<!DOCTYPE html>
+<!--
+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:
+        Andrzej Krolikowski <a.krolikowsk@samsung.com>
+
+-->
+<html>
+<head>
+<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)
+//==== PRIORITY: P2
+//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
+//==== ONLOAD_DELAY 90
+//==== TEST_CRITERIA MC
+setup({timeout: 90000});
+
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectChangeListener, exceptionName, i, conversionTable;
+t.step(function () {
+
+    serviceSuccess = t.step_func(function (services) {
+        assert_true(services.length > 0, "Received empty services array");
+        messageService = services[0];
+        messageStorage = messageService.messageStorage;
+
+        conversionTable = getTypeConversionExceptions("object", false);
+        for(i = 0; i < conversionTable.length; i++) {
+            incorrectChangeListener  = conversionTable[i][0];
+            exceptionName = conversionTable[i][1];
+
+            assert_throws({name: exceptionName},
+                function () {
+                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
+                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
+        }
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+    tizen.messaging.getMessageServices("messaging.mms", serviceSuccess, serviceError);
+});
+
+</script>
+</body>
+</html>
index 41bd63d91d9a7ac5cb70cf18cec47bbcc8749e32..ebbe9453749b514be1c9c2b6e73dcf91fd02ed64 100644 (file)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
 </test_definition>
index a1957fc36eb644620003012eaa1183c78a4a7304..4cd52f96d9cd9b86c03d05f2df99c492e49bae74 100644 (file)
           <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageService_mms_type_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-messaging-mms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
   </suite>
 </test_definition>
diff --git a/tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
deleted file mode 100644 (file)
index 4fd2965..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-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:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectChangeListener, exceptionName, i, conversionTable;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
diff --git a/tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html b/tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
deleted file mode 100644 (file)
index b623477..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<!--
-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:
-        Andrzej Krolikowski <a.krolikowsk@samsung.com>
-
--->
-<html>
-<head>
-<title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>
-<meta charset="utf-8"/>
-<script type="text/javascript" src="support/unitcommon.js"></script>
-<script type="text/javascript" src="support/messaging_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script>
-//==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)
-//==== PRIORITY: P2
-//==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
-//==== TEST_CRITERIA MC
-setup({timeout: 90000});
-
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
-    incorrectChangeListener, exceptionName, i, conversionTable;
-t.step(function () {
-
-    serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
-
-        conversionTable = getTypeConversionExceptions("object", false);
-        for(i = 0; i < conversionTable.length; i++) {
-            incorrectChangeListener  = conversionTable[i][0];
-            exceptionName = conversionTable[i][1];
-
-            assert_throws({name: exceptionName},
-                function () {
-                    messageStorage.addConversationsChangeListener(incorrectChangeListener);
-                }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
-        }
-        t.done();
-    });
-
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
-});
-
-</script>
-</body>
-</html>
index 15718cbf14c3f4c3077b090c8da6c7258a8203ee..e4b9192969fd1f8b1e75a3856bb779e545c28957 100644 (file)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
       <testcase purpose="Check if MessageStorage.findMessages method works properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="MessageStorage" element_type="method" element_name="addConversationsChangeListener" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
       <testcase purpose="Check if method removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
index 5a191cde492b3ab419e893b0b85f48868f57cb58..59187abf72f6e83b8b7aef46a18c37bbce865997 100644 (file)
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
       <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
-        <description>
-          <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
-        </description>
-      </testcase>
       <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>