<div id="log"></div>
<script>
//==== PRIORITY P1
-
test(function () {
- check_unsupported("http://tizen.org/feature/sensor.accelerometer", tizen.sensorservice);
- }, document.title);
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.accelerometer") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.sensorservice.getDefaultSensor("PRESSURE");
+ });
+ }
+ }
+ }
+ });
</script>
</body>
-</html>
\ No newline at end of file
+</html>
});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<script>
//==== PRIORITY P1
test(function () {
- check_unsupported("http://tizen.org/feature/sensor.heart_rate_monitor", tizen.sensorservice);
- }, document.title);
-
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.heart_rate_monitor") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.sensorservice.getDefaultSensor("PRESSURE");
+ });
+ }
+ }
+ }
+ });
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<div id="log"></div>
<script>
//==== PRIORITY P1
-
test(function () {
- check_unsupported("http://tizen.org/feature/sensor.magnetometer", tizen.sensorservice);
- }, document.title);
-
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.magnetometer") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.sensorservice.getDefaultSensor("PRESSURE");
+ });
+ }
+ }
+ }
+ });
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<div id="log"></div>
<script>
//==== PRIORITY P1
-
test(function () {
- if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.pedometer") === false) {
- assert_throws({
- name: "NotSupportedError"
- }, function () {
- tizen.humanactivitymonitor.start("PEDOMETER");
- });
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.pedometer") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.humanactivitymonitor.start("PEDOMETER");
+ });
+ }
+ }
}
});
-
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<div id="log"></div>
<script>
//==== PRIORITY P1
-
test(function () {
- check_unsupported("http://tizen.org/feature/sensor.photometer", tizen.sensorservice);
- }, document.title);
-
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.photometer") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.sensorservice.getDefaultSensor("LIGHT");
+ });
+ }
+ }
+ }
+ });
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<div id="log"></div>
<script>
//==== PRIORITY P1
-
test(function () {
- check_unsupported("http://tizen.org/feature/sensor.proximity", tizen.sensorservice);
- }, document.title);
-
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.proximity") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.sensorservice.getDefaultSensor("PROXIMITY");
+ });
+ }
+ }
+ }
+ });
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<div id="log"></div>
<script>
//==== PRIORITY P1
-
test(function () {
- check_unsupported("http://tizen.org/feature/sensor.ultraviolet", tizen.sensorservice);
- }, document.title);
-
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.ultraviolet") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.sensorservice.getDefaultSensor("PRESSURE");
+ });
+ }
+ }
+ }
+ });
</script>
</body>
-</html>
\ No newline at end of file
+</html>
<div id="log"></div>
<script>
//==== PRIORITY P1
-
test(function () {
- if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.wrist_up") === false) {
- assert_throws({
- name: "NotSupportedError"
- }, function () {
- tizen.humanactivitymonitor.start("WRIST_UP");
- });
+ if (tizen.systeminfo.getCapability("http://tizen.org/feature/profile") != "TV"){
+ if(tizen.sensorservice === undefined){
+ assert_false(false, "unsupported sensor");
+ } else{
+ if (is_caps_supported_by_system_info("http://tizen.org/feature/sensor.wrist_up") === false) {
+ assert_throws({
+ name: "NotSupportedError"
+ }, function () {
+ tizen.humanactivitymonitor.start("WRIST_UP");
+ });
+ }
+ }
}
});
-
</script>
</body>
-</html>
\ No newline at end of file
+</html>