[systeminfo] - update test
authorTomasz Paciorek <t.paciorek@samsung.com>
Thu, 10 Oct 2013 10:15:17 +0000 (12:15 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 10 Oct 2013 10:52:12 +0000 (10:52 +0000)
Change-Id: I3723a92a42a275b9ae3c74b97c81da7c0266a239

12 files changed:
tct-systeminfo-tizen-tests/systeminfo/SystemInfoDisplay_constructor_display.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Battery.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_CellularNetwork.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Display.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_SIM.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_Storage.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfoPropertySuccessCallback_onsuccess_WifiNetwork.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfo_addPropertyValueChangeListener_options_TypeMismatch.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getCapabilities.html
tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue.html
tct-systeminfo-tizen-tests/tests.full.xml
tct-systeminfo-tizen-tests/tests.xml

index 9e615fd5a50eb75b47b63dabc5278b9b347f88b6..f668d873b5330a95a3622094719da8ecd9053012 100644 (file)
@@ -42,13 +42,13 @@ var t = async_test(document.title, {timeout: 90000}),
 setup({timeout: 90000});
 t.step(function () {
     getPropertyValueSuccess = t.step_func(function (display) {
-        assert_type(display.resolutionWidth, "number", "resolutionWidth");
-        assert_type(display.resolutionHeight, "number", "resolutionHeight");
-        assert_type(display.dotsPerInchWidth, "number", "dotsPerInchWidth");
-        assert_type(display.dotsPerInchHeight, "number", "dotsPerInchHeight");
-        assert_type(display.physicalWidth, "number", "physicalWidth");
-        assert_type(display.physicalHeight, "number", "physicalHeight");
-        assert_type(display.brightness, "number", "brightness");
+        assert_type(display.resolutionWidth, "unsigned long", "resolutionWidth");
+        assert_type(display.resolutionHeight, "unsigned long", "resolutionHeight");
+        assert_type(display.dotsPerInchWidth, "unsigned long", "dotsPerInchWidth");
+        assert_type(display.dotsPerInchHeight, "unsigned long", "dotsPerInchHeight");
+        assert_type(display.physicalWidth, "double", "physicalWidth");
+        assert_type(display.physicalHeight, "double", "physicalHeight");
+        assert_type(display.brightness, "double", "brightness");
         t.done();
     });
 
index dfcbec54dff8920fc820df6541ff8b191352245c..6bd93ca206a3857755a61aedbdd134e104e000da 100644 (file)
@@ -43,7 +43,7 @@ var t = async_test(document.title, {timeout: 90000}),
 setup({timeout: 90000});
 t.step(function () {
     getPropertyValueSuccess = t.step_func(function (battery) {
-        assert_type(battery.level, "number", "level type check");
+        assert_type(battery.level, "double", "level type check");
         assert_type(battery.isCharging, "boolean", "isCharging type check");
         t.done();
     });
index eae42b3a94117000176b04db1759706e2072de2d..f4ea2e6a4fe6885fa93545a10541b9292b8095e8 100644 (file)
@@ -47,10 +47,10 @@ t.step(function () {
         assert_type(cellularnetwork.ipAddress, "string", "ipAddress type check");
         assert_type(cellularnetwork.ipv6Address, "string", "ipv6Address type check");
         assert_type(cellularnetwork.apn, "string", "apn type check");
-        assert_type(cellularnetwork.mcc, "number", "mcc type check");
-        assert_type(cellularnetwork.mnc, "number", "mnc type check");
-        assert_type(cellularnetwork.lac, "number", "lac type check");
-        assert_type(cellularnetwork.cellId, "number", "cellId type check");
+        assert_type(cellularnetwork.mcc, "unsigned short", "mcc type check");
+        assert_type(cellularnetwork.mnc, "unsigned short", "mnc type check");
+        assert_type(cellularnetwork.lac, "unsigned short", "lac type check");
+        assert_type(cellularnetwork.cellId, "unsigned short", "cellId type check");
         assert_type(cellularnetwork.isRoaming, "boolean", "isRoaming type check");
         assert_type(cellularnetwork.isFlightMode, "boolean", "isFlightMode type check");
         assert_type(cellularnetwork.imei, "string", "imei type check");
index 65a69dbcbb465978c2d73da39cd2dcef5b0c342d..4bf49f45af0c444a9d87904c21b3fa0f2d0f0ff5 100644 (file)
@@ -43,13 +43,13 @@ var t = async_test(document.title, {timeout: 90000}),
 setup({timeout: 90000});
 t.step(function () {
     getPropertyValueSuccess = t.step_func(function (display) {
-        assert_type(display.resolutionWidth, "number", "resolutionWidth type check");
-        assert_type(display.resolutionHeight, "number", "resolutionHeight type check");
-        assert_type(display.dotsPerInchWidth, "number", "dotsPerInchWidth type check");
-        assert_type(display.dotsPerInchHeight, "number", "dotsPerInchHeight type check");
-        assert_type(display.physicalWidth, "number", "physicalWidth type check");
-        assert_type(display.physicalHeight, "number", "physicalHeight type check");
-        assert_type(display.brightness, "number", "brightness type check");
+        assert_type(display.resolutionWidth, "unsigned long", "resolutionWidth type check");
+        assert_type(display.resolutionHeight, "unsigned long", "resolutionHeight type check");
+        assert_type(display.dotsPerInchWidth, "unsigned long", "dotsPerInchWidth type check");
+        assert_type(display.dotsPerInchHeight, "unsigned long", "dotsPerInchHeight type check");
+        assert_type(display.physicalWidth, "double", "physicalWidth type check");
+        assert_type(display.physicalHeight, "double", "physicalHeight type check");
+        assert_type(display.brightness, "double", "brightness type check");
         t.done();
     });
     getPropertyValueError = t.step_func(function (error) {
index c611a02608b3a5173d2baa2a119ad7fdeab47a92..0619818d4d219837c83cd8fb3954f8afe7a76a2e 100644 (file)
@@ -47,8 +47,8 @@ t.step(function () {
         assert_type(sim.operatorName, "string", "operatorName type check");
         assert_type(sim.msisdn, "string", "msisdn type check");
         assert_type(sim.iccid, "string", "iccid type check");
-        assert_type(sim.mcc, "number", "mcc type check");
-        assert_type(sim.mnc, "number", "mnc type check");
+        assert_type(sim.mcc, "unsigned short", "mcc type check");
+        assert_type(sim.mnc, "unsigned short", "mnc type check");
         assert_type(sim.msin, "string", "msin type check");
         assert_type(sim.spn, "string", "spn type check");
         t.done();
index 0964032a535ad84811726141f7db4a5ce5dd25d2..b9ddb6f464529a24838f3c23af9106adb70894e4 100644 (file)
@@ -49,8 +49,8 @@ t.step(function () {
             "SystemInfoStorage_units is not an array");
         assert_true(property.units.length > 0, "No available units.");
         assert_type(property.units[0].type, "string", "type attribute");
-        assert_type(property.units[0].capacity, "number", "capacity attribute");
-        assert_type(property.units[0].availableCapacity, "number", "availableCapacity attribute");
+        assert_type(property.units[0].capacity, "unsigned long long", "capacity attribute");
+        assert_type(property.units[0].availableCapacity, "unsigned long long", "availableCapacity attribute");
         assert_type(property.units[0].isRemovable, "boolean", "isRemovable attribute");
         t.done();
     });
index 97ef7de4b4f8c90e51e9dd5aa7fe443d38b1654c..8497854094ae9cc2c202239dfb30ef1e4b847ca1 100644 (file)
@@ -47,7 +47,7 @@ t.step(function () {
         assert_type(wifinetwork.ipAddress, "string", "ipAddress type check");
         assert_type(wifinetwork.ipv6Address, "string", "ipv6Address type check");
         assert_type(wifinetwork.ssid, "string", "ssid type check");
-        assert_type(wifinetwork.signalStrength, "number", "signalStrength type check");
+        assert_type(wifinetwork.signalStrength, "double", "signalStrength type check");
         t.done();
     });
     getPropertyValueError = t.step_func(function (error) {
index b54696843742121c81bd4fed617906e630d26844..93b76efdea83c2e62eeab9cb625503f7701e7e98 100644 (file)
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA MC
 //==== ONLOAD_DELAY 90
 var t = async_test(document.title, {timeout: 90000}), i, conversionTable,
-    SystemInfoOption, exceptionName, addPropertyValueChangeListenerSuccess;
+    systemInfoOption, exceptionName, addPropertyValueChangeListenerSuccess;
 
 setup({timeout: 90000});
 
@@ -50,14 +50,14 @@ t.step(function () {
     conversionTable = getTypeConversionExceptions("dictionary", true);
 
     for(i = 0; i < conversionTable.length; i++) {
-        SystemInfoOption = conversionTable[i][0];
+        systemInfoOption = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
         assert_throws({name: exceptionName},
             function () {
                 tizen.systeminfo.addPropertyValueChangeListener("BATTERY",
-                    addPropertyValueChangeListenerSuccess, SystemInfoOption);
-            }, exceptionName + " should be thrown - given incorrect SystemInfoOption - " + SystemInfoOption);
+                    addPropertyValueChangeListenerSuccess, systemInfoOption);
+            }, exceptionName + " should be thrown - given incorrect systemInfoOption - " + systemInfoOption);
     }
     t.done();
 });
index 97e0fb0c3a0263c9ac811e6d8fd9c3d6070b2c14..c01ace53f2378b1733874dc1d3ec89a1e0e99a0c 100644 (file)
@@ -30,7 +30,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: SystemInfo_getCapabilities
-//==== LABEL Check method SystemInfo_getCapabilities
+//==== LABEL Check method getCapabilities of SystemInfo
 //==== SPEC Tizen Web API:System:SystemInfo:SystemInfo:getCapabilities M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
 //==== TEST_CRITERIA MNA MR
index 5d8b1bb52fc0283f78b2146835f3a1c88998b312..1077623a52949acf95b8f315cb2a6a0b83e23bd9 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: SystemInfo_getPropertyValue
-//==== LABEL Check method SystemInfo_getPropertyValue
+//==== LABEL Check method getPropertyValue of SystemInfo
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:System:SystemInfo:SystemInfo:getPropertyValue M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
index f9790a2d6c119b865d71d7e90dbad9f22aff2d5e..55fc3615e53d88869db30d6e7e415c40c4383b6a 100644 (file)
@@ -15,7 +15,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check method SystemInfo_getPropertyValue" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getPropertyValue">
+      <testcase purpose="Check method getPropertyValue of SystemInfo" type="compliance" onload_delay="90" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getPropertyValue">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check method SystemInfo_getCapabilities" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getCapabilities">
+      <testcase purpose="Check method getCapabilities of SystemInfo" type="compliance" status="approved" component="TizenAPI/System/SystemInfo" execution_type="auto" priority="P1" id="SystemInfo_getCapabilities">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getCapabilities.html</test_script_entry>
         </description>
index 4a60752271cf875bc877d0f75752358c9d16d806..5ee1430432771f46d9b9fbbee095cc12443b5e0c 100644 (file)
@@ -8,7 +8,7 @@
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check method SystemInfo_getPropertyValue" onload_delay="90" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getPropertyValue">
+      <testcase purpose="Check method getPropertyValue of SystemInfo" onload_delay="90" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getPropertyValue">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getPropertyValue.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getCapabilities_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check method SystemInfo_getCapabilities" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getCapabilities">
+      <testcase purpose="Check method getCapabilities of SystemInfo" component="TizenAPI/System/SystemInfo" execution_type="auto" id="SystemInfo_getCapabilities">
         <description>
           <test_script_entry>/opt/tct-systeminfo-tizen-tests/systeminfo/SystemInfo_getCapabilities.html</test_script_entry>
         </description>