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();
});
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();
});
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");
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) {
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();
"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();
});
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) {
//==== 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});
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();
});
<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
<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
</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>
<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>