From: chen Date: Thu, 24 Aug 2023 07:57:42 +0000 (+0800) Subject: [common][widgetservice][fix TSEVEN-6551 handle armv8 aarch64 support] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ddd9ebb8b888d27a0bde1246a980e77472667790;p=test%2Ftct%2Fweb%2Fapi.git [common][widgetservice][fix TSEVEN-6551 handle armv8 aarch64 support] Change-Id: Id87b62902875e190be9fee58ba2da5dfe9b9f25c Signed-off-by: chen --- diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html index 074f7c4b0..82b0bc7b4 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetChangeCallback_onchange.html @@ -1,95 +1,95 @@ - - - - -WidgetChangeCallback_onchange - - - - -
- - + + + + +WidgetChangeCallback_onchange + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html index d443379b1..adc08686c 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetContentCallback_onsuccess.html @@ -1,96 +1,96 @@ - - - - -WidgetContentCallback_onsuccess - - - - -
- - + + + + +WidgetContentCallback_onsuccess + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html index cd4343607..0c8ff89b3 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod.html @@ -1,86 +1,86 @@ - - - - -WidgetInstance_changeUpdatePeriod - - - - -
- - + + + + +WidgetInstance_changeUpdatePeriod + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html index f574b22b2..3d3545c12 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_exist.html @@ -1,85 +1,85 @@ - - - - -WidgetInstance_changeUpdatePeriod_exist - - - - -
- - + + + + +WidgetInstance_changeUpdatePeriod_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html index 45d701b21..09783c6c6 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_changeUpdatePeriod_seconds_invalid.html @@ -1,87 +1,87 @@ - - - - -WidgetInstance_changeUpdatePeriod_seconds_invalid - - - - -
- - + + + + +WidgetInstance_changeUpdatePeriod_seconds_invalid + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html index c1a2244ca..c287fa938 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_extend.html @@ -1,85 +1,85 @@ - - - - - -WidgetInstance_extend - - - - -
- - + + + + + +WidgetInstance_extend + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html index efab3eead..a7a2f6964 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent.html @@ -1,94 +1,94 @@ - - - - -WidgetInstance_getContent - - - - -
- - + + + + +WidgetInstance_getContent + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html index 3bd577bd3..cfdc13f9e 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_TypeMismatch.html @@ -1,95 +1,95 @@ - - - - -WidgetInstance_getContent_errorCallback_TypeMismatch - - - - -
- - + + + + +WidgetInstance_getContent_errorCallback_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html index 9d67751b7..5b4984333 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_errorCallback_invalid_cb.html @@ -1,98 +1,98 @@ - - - - -WidgetInstance_getContent_errorCallback_invalid_cb - - - - -
- - + + + + +WidgetInstance_getContent_errorCallback_invalid_cb + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html index 5648c42d9..e6e9de8a9 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_exist.html @@ -1,85 +1,85 @@ - - - - -WidgetInstance_getContent_exist - - - - -
- - + + + + +WidgetInstance_getContent_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html index 4d7d1ffba..61bf46715 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_misarg.html @@ -1,87 +1,87 @@ - - - - -WidgetInstance_getContent_misarg - - - - -
- - + + + + +WidgetInstance_getContent_misarg + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html index 039a2f475..f926282a2 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_TypeMismatch.html @@ -1,95 +1,95 @@ - - - - -WidgetInstance_getContent_successCallback_TypeMismatch - - - - -
- - + + + + +WidgetInstance_getContent_successCallback_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html index e3b666e75..d31c42227 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_getContent_successCallback_invalid_cb.html @@ -1,98 +1,98 @@ - - - - -WidgetInstance_getContent_successCallback_invalid_cb - - - - -
- - + + + + +WidgetInstance_getContent_successCallback_invalid_cb + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html index 9711a0e8a..ddf6f494b 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_id_attribute.html @@ -1,85 +1,85 @@ - - - - -WidgetInstance_id_attribute - - - - -
- - + + + + +WidgetInstance_id_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html index f2336d414..54fae2a3f 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent.html @@ -1,91 +1,91 @@ - - - - -WidgetInstance_sendContent - - - - -
- - + + + + +WidgetInstance_sendContent + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html index 8d80e64c7..4daf2cd38 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_data_TypeMismatch.html @@ -1,91 +1,91 @@ - - - - -WidgetInstance_sendContent_data_TypeMismatch - - - - -
- - + + + + +WidgetInstance_sendContent_data_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html index d01029821..f7b367db4 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_exist.html @@ -1,85 +1,85 @@ - - - - -WidgetInstance_sendContent_exist - - - - -
- - + + + + +WidgetInstance_sendContent_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html index 4b5fa3907..ca24b4f10 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_sendContent_misarg.html @@ -1,87 +1,87 @@ - - - - -WidgetInstance_sendContent_misarg - - - - -
- - + + + + +WidgetInstance_sendContent_misarg + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html index 01ced8eb2..b6c8a7f93 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstance_widget_attribute.html @@ -1,88 +1,88 @@ - - - - -WidgetInstance_widget_attribute - - - - -
- - + + + + +WidgetInstance_widget_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html index ea8a4ea31..e2974df08 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetInstancesCallback_onsuccess.html @@ -1,85 +1,85 @@ - - - - - -WidgetInstancesCallback_onsuccess - - - - -
- - + + + + + +WidgetInstancesCallback_onsuccess + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html index c364d5801..0be12da73 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetServiceManager_getWidget.html @@ -1,66 +1,66 @@ - - - - - -WidgetServiceManager_getWidget - - - - -
- - + + + + + +WidgetServiceManager_getWidget + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html index 7c5c95175..24dcd3c1b 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_extend.html @@ -1,66 +1,66 @@ - - - - - -WidgetVariant_extend - - - - -
- - + + + + + +WidgetVariant_extend + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html index e5b2ca08d..202ae5e18 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_height_attribute.html @@ -1,66 +1,66 @@ - - - - - -WidgetVariant_height_attribute - - - - -
- - + + + + + +WidgetVariant_height_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html index acb6e7c22..74258e2f6 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsFrame_attribute.html @@ -1,66 +1,66 @@ - - - - - -WidgetVariant_needsFrame_attribute - - - - -
- - + + + + + +WidgetVariant_needsFrame_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html index 4a147144c..26b37ece5 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsMouseEvents_attribute.html @@ -1,66 +1,66 @@ - - - - - -WidgetVariant_needsMouseEvents_attribute - - - - -
- - + + + + + +WidgetVariant_needsMouseEvents_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html index 6cb4e046d..def7ac608 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_needsTouchEffect_attribute.html @@ -1,66 +1,66 @@ - - - - - -WidgetVariant_needsTouchEffect_attribute - - - - -
- - + + + + + +WidgetVariant_needsTouchEffect_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html index 3536e4f38..8ec52874a 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_previewImagePath_attribute.html @@ -1,66 +1,66 @@ - - - - - -WidgetVariant_previewImagePath_attribute - - - - -
- - + + + + + +WidgetVariant_previewImagePath_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html index eeadc604d..d36b62707 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_sizeType_attribute.html @@ -1,69 +1,69 @@ - - - - - -WidgetVariant_sizeType_attribute - - - - -
- - + + + + + +WidgetVariant_sizeType_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html index 5ad1f4800..1a32618ee 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariant_width_attribute.html @@ -1,66 +1,66 @@ - - - - - -WidgetVariant_width_attribute - - - - -
- - + + + + + +WidgetVariant_width_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html index a1e7ccafe..e8183c08a 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/WidgetVariantsCallback_onsuccess.html @@ -1,73 +1,73 @@ - - - - - -WidgetVariantsCallback_onsuccess - - - - -
- - + + + + + +WidgetVariantsCallback_onsuccess + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html index decb8f846..b26061ca6 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener.html @@ -1,89 +1,89 @@ - - - - - -Widget_addStateChangeListener - - - - -
- - + + + + + +Widget_addStateChangeListener + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html index 69c11d0e6..fa18f16e8 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_TypeMismatch.html @@ -1,74 +1,75 @@ - - - - - -Widget_addStateChangeListener_callback_TypeMismatch - - - - -
- - + + + + + +Widget_addStateChangeListener_callback_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html index c698280a6..09fe25c92 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_callback_invalid_cb.html @@ -1,74 +1,72 @@ - - - - - -Widget_addStateChangeListener_callback_invalid_cb - - - - -
- - + + + + + +Widget_addStateChangeListener_callback_invalid_cb + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html index 76dc569f4..dcba0f4c6 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_exist.html @@ -1,52 +1,52 @@ - - - - - -Widget_addStateChangeListener_exist - - - - -
- - + + + + + +Widget_addStateChangeListener_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html index 04bb609b2..ecd71c72f 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_addStateChangeListener_misarg.html @@ -1,54 +1,54 @@ - - - - - -Widget_addStateChangeListener_misarg - - - - -
- - + + + + + +Widget_addStateChangeListener_misarg + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html index 423dcb2d2..6e316747f 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_applicationId_attribute.html @@ -1,51 +1,51 @@ - - - - - -Widget_applicationId_attribute - - - - -
- - + + + + + +Widget_applicationId_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html index 679fe6979..634b0f018 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_extend.html @@ -1,51 +1,51 @@ - - - - - -Widget_extend - - - - -
- - + + + + + +Widget_extend + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html index 5197d1427..974f140f3 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances.html @@ -1,80 +1,80 @@ - - - - - -Widget_getInstances - - - - -
- - + + + + + +Widget_getInstances + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html index 8954841e7..53441b31e 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_TypeMismatch.html @@ -1,78 +1,78 @@ - - - - - -Widget_getInstances_errorCallback_TypeMismatch - - - - -
- - + + + + + +Widget_getInstances_errorCallback_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html index 5cea5dfaf..c00ca0c68 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invalid_cb.html @@ -1,81 +1,81 @@ - - - - - -Widget_getInstances_errorCallback_invalid_cb - - - - -
- - + + + + + +Widget_getInstances_errorCallback_invalid_cb + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html index 8d1ed2e77..286e084f5 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_errorCallback_invoked_NotFoundError.html @@ -1,76 +1,76 @@ - - - - - -Widget_getInstances_errorCallback_invoked_NotFoundError - - - - -
- - + + + + + +Widget_getInstances_errorCallback_invoked_NotFoundError + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html index 47c6b193a..0e317117e 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_exist.html @@ -1,51 +1,51 @@ - - - - - -Widget_getInstances_exist - - - - -
- - + + + + + +Widget_getInstances_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html index fd030bc46..4b8f57044 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_misarg.html @@ -1,53 +1,53 @@ - - - - - -Widget_getInstances_misarg - - - - -
- - + + + + + +Widget_getInstances_misarg + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html index a3df3b4b5..111eb5023 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_TypeMismatch.html @@ -1,74 +1,74 @@ - - - - - -Widget_getInstances_successCallback_TypeMismatch - - - - -
- - + + + + + +Widget_getInstances_successCallback_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html index 3343c2ca5..ddd07dbbd 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_successCallback_invalid_cb.html @@ -1,77 +1,77 @@ - - - - - -Widget_getInstances_successCallback_invalid_cb - - - - -
- - + + + + + +Widget_getInstances_successCallback_invalid_cb + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html index 1fd4b230c..f701be718 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getInstances_with_errorCallback.html @@ -1,84 +1,84 @@ - - - - - -Widget_getInstances_with_errorCallback - - - - -
- - + + + + + +Widget_getInstances_with_errorCallback + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html index 399d44938..8a6ab9f1a 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName.html @@ -1,66 +1,66 @@ - - - - - -Widget_getName - - - - -
- - + + + + + +Widget_getName + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html index 3defefdff..117fe1b15 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_exist.html @@ -1,51 +1,51 @@ - - - - - -Widget_getName_exist - - - - -
- - + + + + + +Widget_getName_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html index d497f988e..9f5cb60d9 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getName_with_locale.html @@ -1,66 +1,66 @@ - - - - - -Widget_getName_with_locale - - - - -
- - + + + + + +Widget_getName_with_locale + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html index 5440277b1..79c1b0949 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant.html @@ -1,66 +1,65 @@ - - - - - -Widget_getVariant - - - - -
- - + + + + + +Widget_getVariant + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html index b8c205357..f50d1022a 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_exist.html @@ -1,65 +1,65 @@ - - - - - -Widget_getVariant_exist - - - - -
- - + + + + + +Widget_getVariant_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html index c52f67d98..8b4278edb 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariant_sizeType_TypeMismatch.html @@ -1,70 +1,70 @@ - - - - - -Widget_getVariant_sizeType_TypeMismatch - - - - -
- - + + + + + +Widget_getVariant_sizeType_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html index 31cb3dd4c..542b33bde 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants.html @@ -1,73 +1,73 @@ - - - - - -Widget_getVariants - - - - -
- - + + + + + +Widget_getVariants + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html index af655c138..0e5da90d7 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_TypeMismatch.html @@ -1,79 +1,79 @@ - - - - - -Widget_getVariants_errorCallback_TypeMismatch - - - - -
- - + + + + + +Widget_getVariants_errorCallback_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html index 3c04da8b9..4772dfbca 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_errorCallback_invalid_cb.html @@ -1,82 +1,82 @@ - - - - - -Widget_getVariants_errorCallback_invalid_cb - - - - -
- - + + + + + +Widget_getVariants_errorCallback_invalid_cb + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html index dd8068a4d..a81b5b5e0 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_exist.html @@ -1,66 +1,66 @@ - - - - - -Widget_getVariants_exist - - - - -
- - + + + + + +Widget_getVariants_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html index 8ea9900f1..5a1e5694e 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_misarg.html @@ -1,68 +1,68 @@ - - - - - -Widget_getVariants_misarg - - - - -
- - + + + + + +Widget_getVariants_misarg + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html index c1658f5d3..85df34282 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_TypeMismatch.html @@ -1,75 +1,75 @@ - - - - - -Widget_getVariants_successCallback_TypeMismatch - - - - -
- - + + + + + +Widget_getVariants_successCallback_TypeMismatch + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html index 87931d42f..6c1b7ad5f 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_successCallback_invalid_cb.html @@ -1,78 +1,78 @@ - - - - - -Widget_getVariants_successCallback_invalid_cb - - - - -
- - + + + + + +Widget_getVariants_successCallback_invalid_cb + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html index d037fec70..9b048ab01 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_getVariants_with_errorCallback.html @@ -1,77 +1,77 @@ - - - - - -Widget_getVariants_with_errorCallback - - - - -
- - + + + + + +Widget_getVariants_with_errorCallback + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html index f50896fc4..eb591cdb5 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_id_attribute.html @@ -1,65 +1,65 @@ - - - - - -Widget_id_attribute - - - - -
- - + + + + + +Widget_id_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html index 51592d206..2c3c1bec9 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_noDisplay_attribute.html @@ -1,65 +1,65 @@ - - - - - -Widget_noDisplay_attribute - - - - -
- - + + + + + +Widget_noDisplay_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html index 823054720..df9d0fc6f 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_packageId_attribute.html @@ -1,65 +1,65 @@ - - - - - -Widget_packageId_attribute - - - - -
- - + + + + + +Widget_packageId_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html index 985d78e92..d9918fd41 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener.html @@ -1,89 +1,89 @@ - - - - - -Widget_removeStateChangeListener - - - - -
- - + + + + + +Widget_removeStateChangeListener + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html index 8a8d7c550..4a710038b 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_removeStateChangeListener_exist.html @@ -1,65 +1,65 @@ - - - - - -Widget_removeStateChangeListener_exist - - - - -
- - + + + + + +Widget_removeStateChangeListener_exist + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html index b76907012..815de6654 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html +++ b/common/tct-widgetservice-tizen-tests/widgetservice/Widget_setupApplicationId_attribute.html @@ -1,65 +1,65 @@ - - - - - -Widget_setupApplicationId_attribute - - - - -
- - + + + + + +Widget_setupApplicationId_attribute + + + + +
+ + \ No newline at end of file diff --git a/common/tct-widgetservice-tizen-tests/widgetservice/support/unitcommon.js b/common/tct-widgetservice-tizen-tests/widgetservice/support/unitcommon.js index 93eb1e14a..e29c9fe10 100755 --- a/common/tct-widgetservice-tizen-tests/widgetservice/support/unitcommon.js +++ b/common/tct-widgetservice-tizen-tests/widgetservice/support/unitcommon.js @@ -1,594 +1,599 @@ -/* - -Copyright (c) 2016 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'}; -UNKNOWN_EXCEPTION = {name: 'UnknownError'}; -INVALID_STATE_EXCEPTION = {name: 'InvalidStateError'}; -INVALID_ACCESS_EXCEPTION = {name: 'InvalidAccessError'}; - -(function () { - var head_src = document.head.innerHTML; - if (head_src.search(/\/testharness.js\W/) === -1) { - document.write('\n'); - } - if (head_src.search(/\/testharnessreport.js\W/) === -1) { - document.write('\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], - [0, exceptionName], - [true, exceptionName], - ["dummyInvalidEnumValue", exceptionName], - [{ }, exceptionName] - ]; - if (!isOptional) { - conversionTable.push([null, 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 "boolean": - conversionTable = [ - [undefined, exceptionName], - [NaN, exceptionName], - [Number.POSITIVE_INFINITY, exceptionName], - [Number.NEGATIVE_INFINITY, exceptionName], - ["TIZEN", exceptionName], - [{ name : "TIZEN" }, exceptionName], - [function () { }, exceptionName] - ]; - if (!isOptional) { - conversionTable.push([null, exceptionName]); - } - break; - case "long": - conversionTable = [ - [undefined, exceptionName], - [NaN, exceptionName], - [Number.POSITIVE_INFINITY, exceptionName], - [Number.NEGATIVE_INFINITY, exceptionName], - ["TIZEN", exceptionName], - [{ name : "TIZEN" }, exceptionName], - [function () { }, exceptionName] - ]; - if (!isOptional) { - conversionTable.push([null, 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; - case 'double': - assert_equals(typeof (obj), 'number', description); - 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; -} +/* + +Copyright (c) 2016 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'}; +UNKNOWN_EXCEPTION = {name: 'UnknownError'}; +INVALID_STATE_EXCEPTION = {name: 'InvalidStateError'}; +INVALID_ACCESS_EXCEPTION = {name: 'InvalidAccessError'}; + +var ARMV7 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv7"); +var X86 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.x86"); +var ARMV8 = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch.armv8"); +var ARCH = tizen.systeminfo.getCapability("http://tizen.org/feature/platform.core.cpu.arch"); + +(function () { + var head_src = document.head.innerHTML; + if (head_src.search(/\/testharness.js\W/) === -1) { + document.write('\n'); + } + if (head_src.search(/\/testharnessreport.js\W/) === -1) { + document.write('\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], + [0, exceptionName], + [true, exceptionName], + ["dummyInvalidEnumValue", exceptionName], + [{ }, exceptionName] + ]; + if (!isOptional) { + conversionTable.push([null, 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 "boolean": + conversionTable = [ + [undefined, exceptionName], + [NaN, exceptionName], + [Number.POSITIVE_INFINITY, exceptionName], + [Number.NEGATIVE_INFINITY, exceptionName], + ["TIZEN", exceptionName], + [{ name : "TIZEN" }, exceptionName], + [function () { }, exceptionName] + ]; + if (!isOptional) { + conversionTable.push([null, exceptionName]); + } + break; + case "long": + conversionTable = [ + [undefined, exceptionName], + [NaN, exceptionName], + [Number.POSITIVE_INFINITY, exceptionName], + [Number.NEGATIVE_INFINITY, exceptionName], + ["TIZEN", exceptionName], + [{ name : "TIZEN" }, exceptionName], + [function () { }, exceptionName] + ]; + if (!isOptional) { + conversionTable.push([null, 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; + case 'double': + assert_equals(typeof (obj), 'number', description); + 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; +}