--- /dev/null
+#!/bin/bash
+PATH=/bin:/usr/bin:/sbin:/usr/sbin
+for i in `grep -r "0xA" /var/cynara/db/_ | grep $1`
+do
+ CLIENT=`echo $i | cut -d ";" -f1`
+ USER=`echo $i | cut -d ";" -f2`
+ PRIVILEGE=`echo $i | cut -d ";" -f3`
+ #echo "cyad --erase=\"\" -r=no -c $CLIENT -u $USER -p $PRIVILEGE"
+ cyad --erase="" -r=no -c $CLIENT -u $USER -p $PRIVILEGE
+done
Authors:
Dong-Young Kim <dydot1.kim@samsung.com>
Junghyuk Park <junghyuk.park@samsung.com>
+ Xiaoyan Qian <xy.qian@samsung.com>
-->
//==== TEST_CRITERIA CBT CBOA
setup({timeout: 30000});
-var t = async_test(document.title, {timeout: 30000}), changeCallback, onCopySuccess,
+var t = async_test(document.title, {timeout: 30000}), changeCallback, listenerId, onCopySuccess,
addedImagePath=TEST_CONTENT_PATH + "/ContentChangeCallback_oncontentadded.png";
t.step(function () {
//cleanup after TC
add_result_callback(function () {
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
} catch (err) {}
});
};
onCopySuccess = t.step_func(function () {
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
tizen.content.scanFile("file://" + addedImagePath, null,
function (error) {
assert_unreached("Failed to scan a file: " + addedImagePath + " with message: " + error.message);
setup({timeout: 30000, explicit_done:true});
var t = async_test(document.title, {timeout: 30000}), contentDirectory, changeCallback, resolveSuccess, resolveError, newDir,
- onCopySuccess, onCopyError, onScanError;
+ onCopySuccess, onCopyError, onScanError, listenerId;
t.step(function () {
add_result_callback(function () {
done();
}
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
contentDirectory.deleteDirectory(newDir.fullPath, true, function () {
tizen.content.scanDirectory("file://" + newDir.fullPath, true, ScanCB);
});
});
onCopySuccess = t.step_func(function () {
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
tizen.content.scanDirectory("file://" + newDir.fullPath, true, null, onScanError);
});
setup({timeout: 30000});
var t = async_test(document.title, {timeout: 30000}), contentDirectory, changeCallback, resolveSuccess, resolveError, newDir,
- onCopySuccess, onCopyError, onScanSuccess, onScanError, expectedContentDirId = null;
+ onCopySuccess, onCopyError, onScanSuccess, onScanError, expectedContentDirId = null, listenerId;
t.step(function () {
add_result_callback(function () {
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
} catch (err) {}
});
});
onCopySuccess = t.step_func(function () {
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
tizen.content.scanDirectory("file://" + newDir.fullPath, true, onScanSuccess, onScanError);
});
done();
}
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
contentDirectory.deleteDirectory(newDir.fullPath, true, function () {
tizen.content.scanDirectory("file://" + newDir.fullPath, true, ScanCB);
});
scanSuccess = t.step_func(function (error) {
contentDirectory.copyTo(CONTENT_PATH + TEST_CONTENT_IMAGES[1], newDir.fullPath + "/ContentChangeCallback_oncontentdirupdated2.png", true);
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
tizen.content.scanDirectory("file://" + newDir.fullPath, true);
});
Authors:
Dong-Young Kim <dydot1.kim@samsung.com>
Junghyuk Park <junghyuk.park@samsung.com>
+ Xiaoyan Qian <xy.qian@samsung.com>
-->
var t = async_test(document.title, {timeout: 30000}),
contentDirectory, sharedDirectory, addedImagePath=TEST_CONTENT_PATH + "/ContentChangeCallback_oncontentremoved.png",
- addedContent, changeCallback, onCopySuccess, onCopyError, onDeleteSuccess, onDeleteError,
+ addedContent, changeCallback, onCopySuccess, onCopyError, onDeleteSuccess, onDeleteError, listenerId,
onScanSuccess, onScanError;
add_result_callback(function (result) {
//cleanup after TC
add_result_callback(function () {
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
} catch (err) {}
});
assert_unreached("Failed to copy a file to " + addedImagePath);
});
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
tizen.filesystem.resolve(
"file://" + CONTENT_PATH,
Authors:
Wei Zhang <wei625.zhang@samsung.com>
+ Xiaoyan Qian <xy.qian@samsung.com>
-->
var t = async_test(document.title, {timeout: 30000}),
contentDirectory, sharedDirectory, addedImagePath = TEST_CONTENT_PATH + "/ContentChangeCallback_oncontentremoved.png",
- addedContent, changeCallback, onCopySuccess, onCopyError, onDeleteSuccess, onDeleteError,
+ addedContent, changeCallback, onCopySuccess, onCopyError, onDeleteSuccess, onDeleteError, listenerId,
onScanSuccess, onScanError;
add_result_callback(function (result) {
//cleanup after TC
add_result_callback(function () {
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
} catch (err) {}
});
assert_unreached("Failed to copy a file to " + addedImagePath);
});
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
tizen.filesystem.resolve(
"file://" + CONTENT_PATH,
function (directory) {
Authors:
Krzysztof Lachacz <k.lachacz@samsung.com>
+ Xiaoyan Qian <xy.qian@samsung.com>
-->
setup({timeout: 30000});
var t = async_test(document.title, {timeout: 30000}),
- changeCallback, testDescription = "TEST DESCRIPTION", onSuccess, onError;
+ changeCallback, testDescription = "TEST DESCRIPTION", onSuccess, onError, listenerId;
t.step(function () {
//cleanup after TC
add_result_callback(function () {
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
} catch (err) {}
});
assert_unreached("Find() Error callback was invoked: " + error.name + " msg: " + error.message);
});
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
tizen.content.find(onSuccess, onError);
});
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ContentManager_addChangeListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/content_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ContentManager_addChangeListener
+//==== LABEL Check if addChangeListener method works properly
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Content:Content:ContentManager:addChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MMINA MAST MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onSuccess, onError,
+ changeCallback, returnedValue = null, filter, description = "changeCallback_"+ new Date().getTime();
+
+t.step(function () {
+ add_result_callback(function () {
+ try {
+ tizen.content.removeChangeListener(returnedValue);
+ } catch (err) {}
+ });
+
+ changeCallback = {
+ oncontentadded: t.step_func(function (content) {
+
+ }),
+
+ oncontentupdated: t.step_func(function (content) {
+ assert_equals(content.description, description, "updated content has wrong value.");
+ assert_type(returnedValue, "long", "addChangeListener should return long type.");
+ t.done();
+ }),
+
+ oncontentremoved: t.step_func(function (id) {
+
+ })
+ };
+
+ onSuccess = t.step_func(function (contents) {
+ assert_type(contents, "array", "contents should be an array");
+ assert_greater_than(contents.length, 0, "media item is not found");
+
+ contents[0].description = description;
+ tizen.content.update(contents[0]);
+ });
+
+ onError = t.step_func(function (error) {
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
+ });
+
+ returnedValue = tizen.content.addChangeListener(changeCallback);
+ filter = new tizen.AttributeFilter("description", "EXISTS");
+ tizen.content.find(onSuccess, onError, null, filter);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ContentManager_addChangeListener_changeCallback_TypeMismatch</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/content_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ContentManager_addChangeListener_changeCallback_TypeMismatch
+//==== LABEL Check if addChangeListener throws exception when changeCallback is incorrect
+//==== PRIORITY: P2
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Content:Content:ContentManager:addChangeListener M
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), conversionTable, changeCallback, exceptionName, i;
+
+t.step(function () {
+ conversionTable = getTypeConversionExceptions("object", false);
+
+ for (i = 0; i < conversionTable.length; i++) {
+ changeCallback = conversionTable[i][0];
+ exceptionName = conversionTable[i][1];
+
+ assert_throws({name: exceptionName},
+ function () {
+ tizen.content.addChangeListener(changeCallback);
+ }, "Given incorrect changeCallback.");
+ }
+ t.done();
+});
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ContentManager_addChangeListener_changeCallback_invalid_cb</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/content_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ContentManager_addChangeListener_changeCallback_invalid_cb
+//==== LABEL Check if addChangeListener throws exception when changeCallback is invalid listener
+//==== PRIORITY: P2
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Content:Content:ContentManager:addChangeListener M
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MTL
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), exceptionName, incorrectListeners, i, changeCallback;
+
+t.step(function () {
+ incorrectListeners = getListenerConversionExceptions(["oncontentadded", "oncontentupdated", "oncontentremoved", "oncontentdiradded", "oncontentdirupdated", "oncontentdirremoved"]);
+ for(i = 0; i < incorrectListeners.length; i++) {
+ changeCallback = incorrectListeners[i][0];
+ exceptionName = incorrectListeners[i][1];
+ assert_throws({name: exceptionName},
+ function () {
+ tizen.content.addChangeListener(changeCallback);
+ }, "Given invalid changeCallback.");
+ }
+ t.done();
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ContentManager_addChangeListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/content_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ContentManager_addChangeListener_exist
+//==== LABEL Check if addChangeListener exists
+//==== SPEC Tizen Web API:Content:Content:ContentManager:addChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ assert_true("addChangeListener" in tizen.content, "ContentManager should have addChangeListener method");
+ check_method_exists(tizen.content, "addChangeListener");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ContentManager_addChangeListener_misarg</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/content_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ContentManager_addChangeListener_misarg
+//==== LABEL Check if addChangeListener method called with missing non-optional argument throws an exception
+//==== SPEC Tizen Web API:Content:Content:ContentManager:addChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+ assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+ tizen.content.addChangeListener();
+ }, "Invoked without non-optional arguments.");
+}, document.title);
+
+</script>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ContentManager_removeChangeListener</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/content_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ContentManager_removeChangeListener
+//==== LABEL Check if removeChangeListener method works properly
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removeChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MAST MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), onSuccess, onError, listenerId, retVal = null, changeCallback, filter, description = "changeCallback";
+
+t.step(function () {
+ changeCallback= {
+ oncontentadded: t.step_func(function (content) {
+ assert_unreached("Listener oncontentadded invoked.");
+ }),
+ oncontentupdated: t.step_func(function (content) {
+ assert_unreached("Listener oncontentupdated invoked.");
+ }),
+ oncontentremoved: t.step_func(function (id) {
+ assert_unreached("Listener oncontentremoved invoked.");
+ })
+ };
+
+ onSuccess = t.step_func(function (contents) {
+ assert_type(contents, "array", "contents should be an array");
+ assert_greater_than(contents.length, 0, "media item is not found");
+
+ contents[0].description = description;
+ tizen.content.update(contents[0]);
+ });
+
+ onError = t.step_func(function (error) {
+ assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
+ });
+
+ listenerId = tizen.content.addChangeListener(changeCallback);
+ retVal = tizen.content.removeChangeListener(listenerId);
+ assert_equals(retVal, undefined, "removeChangeListener should not return anything");
+
+ filter = new tizen.AttributeFilter("description", "EXISTS");
+ tizen.content.find(onSuccess, onError, null, filter);
+
+ setTimeout(t.step_func(function () {
+ t.done();
+ }), 500);
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
--- /dev/null
+<!DOCTYPE html>
+<!--
+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:
+ Xiaoyan <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ContentManager_removeChangeListener_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+<script src="support/content_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ContentManager_removeChangeListener_exist
+//==== LABEL Check if removeChangeListener exists
+//==== SPEC Tizen Web API:Content:Content:ContentManager:removeChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+ assert_true("removeChangeListener" in tizen.content, "ContentManager should have removeChangeListener method");
+ check_method_exists(tizen.content, "removeChangeListener");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
Authors:
Krzysztof Lachacz <k.lachacz@samsung.com>
+ Xiaoyan Qian <xy.qian@samsung.com>
-->
//==== TEST_CRITERIA MMINA MAST MR
setup({timeout: 30000});
-var t = async_test(document.title, {timeout: 30000}), returnedValue = null,
+var t = async_test(document.title, {timeout: 30000}), returnedValue = null, listenerId,
addedImagePath=TEST_CONTENT_PATH + "/ContentChangeCallback_oncontentadded.png", changeCallback, onCopySuccess;
setup_contents(t, t.step_func(function () {
//cleanup after TC
add_result_callback(function () {
try {
- tizen.content.unsetChangeListener();
+ tizen.content.removeChangeListener(listenerId);
} catch (err) {}
});
};
onCopySuccess = t.step_func(function () {
- tizen.content.setChangeListener(changeCallback);
+ listenerId = tizen.content.addChangeListener(changeCallback);
returnedValue = tizen.content.scanFile("file://" + addedImagePath, null,
function (error) {
assert_unreached("Failed to scan a file: " + addedImagePath + " with message: " + error.message);
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Tomasz Kusmierz <t.kusmierz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_setChangeListener</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_setChangeListener
-//==== LABEL Check if setChangeListener method works properly
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:setChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MMINA MAST MR
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), onSuccess, onError,
- changeCallback, returnedValue = null, filter, description = "changeCallback_"+ new Date().getTime();
-t.step(function () {
- //cleanup after TC
- add_result_callback(function () {
- try {
- tizen.content.unsetChangeListener();
- } catch (err) {}
- });
-
- changeCallback = {
- oncontentadded: t.step_func(function (content) {
-
- }),
- oncontentupdated: t.step_func(function (content) {
- assert_equals(content.description, description,
- "updated content has wrong value.");
- assert_equals(returnedValue, undefined,
- "setChangeListener should return undefined.");
-
- t.done();
- }),
- oncontentremoved: t.step_func(function (id) {
-
- })
- };
- onSuccess = t.step_func(function (contents) {
- assert_type(contents, "array", "contents should be an array");
- assert_greater_than(contents.length, 0, "media item is not found");
-
- contents[0].description = description;
- tizen.content.update(contents[0]);
- });
- onError = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
- returnedValue = tizen.content.setChangeListener(changeCallback);
- filter = new tizen.AttributeFilter("description", "EXISTS");
- tizen.content.find(onSuccess, onError, null, filter);
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_setChangeListener_changeCallback_TypeMismatch</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_setChangeListener_changeCallback_TypeMismatch
-//==== LABEL Check if setChangeListener throws exception when changeCallback is incorrect
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:setChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== TEST_CRITERIA MC
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- conversionTable, changeCallback, exceptionName, i;
-
-t.step(function () {
- conversionTable = getTypeConversionExceptions("object", false);
-
- for(i = 0; i < conversionTable.length; i++) {
- changeCallback = conversionTable[i][0];
- exceptionName = conversionTable[i][1];
-
- assert_throws({name: exceptionName},
- function () {
- tizen.content.setChangeListener(changeCallback);
- }, "Given incorrect changeCallback.");
- }
- t.done();
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_setChangeListener_changeCallback_invalid_cb</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_setChangeListener_changeCallback_invalid_cb
-//==== LABEL Check if setChangeListener throws exception when changeCallback is invalid listener
-//==== PRIORITY: P2
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:setChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== TEST_CRITERIA MTL
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}),
- exceptionName, incorrectListeners, i, changeCallback;
-
-t.step(function () {
- incorrectListeners = getListenerConversionExceptions(["oncontentadded",
- "oncontentupdated", "oncontentremoved"]);
- for(i = 0; i < incorrectListeners.length; i++) {
- changeCallback = incorrectListeners[i][0];
- exceptionName = incorrectListeners[i][1];
- assert_throws({name: exceptionName},
- function () {
- tizen.content.setChangeListener(changeCallback);
- }, "Given invalid changeCallback.");
- }
- t.done();
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_setChangeListener_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_setChangeListener_exist
-//==== LABEL Check if setChangeListener exists
-//==== SPEC Tizen Web API:Content:Content:ContentManager:setChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-test(function () {
- assert_true("setChangeListener" in tizen.content,
- "ContentManager should have setChangeListener method");
- check_method_exists(tizen.content, "setChangeListener");
-}, document.title);
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_setChangeListener_missarg</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_setChangeListener_missarg
-//==== LABEL Check if setChangeListener method called with missing non-optional argument throws an exception
-//==== SPEC Tizen Web API:Content:Content:ContentManager:setChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MMA
-test(function () {
- assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
- tizen.content.setChangeListener();
- }, "Invoked without non-optional arguments.");
-}, document.title);
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_unsetChangeListener</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_unsetChangeListener
-//==== LABEL Check if unsetChangeListener method called with non-optional arguments does what it should
-//==== ONLOAD_DELAY 30
-//==== SPEC Tizen Web API:Content:Content:ContentManager:unsetChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P1
-//==== TEST_CRITERIA MNA MNAST MR
-
-setup({timeout: 30000});
-
-var t = async_test(document.title, {timeout: 30000}), onSuccess, onError, retVal = null,
- changeCallback, filter, description = "changeCallback";
-t.step(function () {
- changeCallback= {
- oncontentadded: t.step_func(function (content) {
- assert_unreached("Listener oncontentadded invoked.");
- }),
- oncontentupdated: t.step_func(function (content) {
- assert_unreached("Listener oncontentupdated invoked.");
- }),
- oncontentremoved: t.step_func(function (id) {
- assert_unreached("Listener oncontentremoved invoked.");
- })
- };
- onSuccess = t.step_func(function (contents) {
- assert_type(contents, "array", "contents should be an array");
- assert_greater_than(contents.length, 0, "media item is not found");
-
- contents[0].description = description;
- tizen.content.update(contents[0]);
- });
- onError = t.step_func(function (error) {
- assert_unreached("find() error callback was invoked: " + error.name + " msg: " + error.message);
- });
-
- tizen.content.setChangeListener(changeCallback);
- retVal = tizen.content.unsetChangeListener();
- assert_equals(retVal, undefined, "unsetChangeListener should not return anything");
-
- filter = new tizen.AttributeFilter("description", "EXISTS");
- tizen.content.find(onSuccess, onError, null, filter);
-
- setTimeout(t.step_func(function () {
- t.done();
- }), 500);
-});
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_unsetChangeListener_exist</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_unsetChangeListener_exist
-//==== LABEL Check if unsetChangeListener exists
-//==== SPEC Tizen Web API:Content:Content:ContentManager:unsetChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P0
-//==== TEST_CRITERIA ME
-test(function () {
- assert_true("unsetChangeListener" in tizen.content,
- "ContentManager should have unsetChangeListener method");
- check_method_exists(tizen.content, "unsetChangeListener");
-}, document.title);
-
-</script>
-</body>
-</html>
+++ /dev/null
-<!DOCTYPE html>
-<!--
-Copyright (c) 2013 Samsung Electronics Co., Ltd.
-
-Licensed under the Apache License, Version 2.0 (the License);
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-Authors:
- Krzysztof Lachacz <k.lachacz@samsung.com>
-
--->
-
-<html>
-<head>
-<title>ContentManager_unsetChangeListener_extra_argument</title>
-<script src="support/unitcommon.js"></script>
-<script src="support/content_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: ContentManager_unsetChangeListener_extra_argument
-//==== LABEL Check if unsetChangeListener method can be invoked with extra argument
-//==== SPEC Tizen Web API:Content:Content:ContentManager:unsetChangeListener M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
-//==== PRIORITY P2
-//==== TEST_CRITERIA MNAEX
-test(function () {
- checkExtraArgument(tizen.content, "unsetChangeListener");
-}, document.title);
-
-</script>
-</body>
-</html>
SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
#INTERNAL_STORAGE = tct_parser.get('DEVICE', 'DEVICE_STORAGE_30')
PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
+EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')
+ADMIN_USER_30 = tct_parser.get('DEVICE', 'DEVICE_ADMIN_USER_30')
+def userCheck():
+ global GLOVAL_OPT
+ if ADMIN_USER_30 == EXECUTION_MODE_30:
+ GLOVAL_OPT="--global"
+ else:
+ GLOVAL_OPT=""
#def getInternalStorage1():
# if PARAMETERS.mode == "SDB":
shell_mgr = ShellManager()
shell_mgr.open_shellpipe(PARAMETERS.device.strip())
#shell_mgr.open_shellpipe('0000d8dd00006200')
- shell_mgr.write_cmd('export `tzplatform-get TZ_SYS_DEFAULT_USER`', '', None)
- shell_mgr.write_cmd('export `tzplatform-get --user $TZ_SYS_DEFAULT_USER TZ_USER_CONTENT`','', None)
+ shell_mgr.write_cmd('export `tzplatform-get --user ' +PARAMETERS.user+' TZ_USER_CONTENT`', '', None)
INTERNAL_STORAGE=shell_mgr.write_cmd('echo $TZ_USER_CONTENT','', None)
INTERNAL_STORAGE=str(INTERNAL_STORAGE[len(INTERNAL_STORAGE)-1])
print str(INTERNAL_STORAGE)
finally:
shell_mgr.close_shellpipe()
+def askpolicyremoving():
+ print "0"
+ print "0"
+ print "0"
+ print "0"
+ print "0"
+ for root, dirs, files in os.walk(SCRIPT_DIR):
+ for file in files:
+ if file.endswith(".wgt"):
+ pkg_id = getPKGID(os.path.basename(os.path.splitext(file)[0]))
+
+ print pkg_id
+ print pkg_id
+ print pkg_id
+ print pkg_id
+ print (os.getcwd())
+ print (os.getcwd())
+ print (os.path.dirname(os.path.realpath(__file__)) )
+ print (os.path.dirname(os.path.realpath(__file__)) )
+ if not doRemoteCopy("%s/askpolicy.sh" % SCRIPT_DIR, "%s" % (SRC_DIR)):
+ action_status = False
+ print "1"
+ print "1"
+ print "1"
+ print "1"
+ print "1"
+ if PARAMETERS.mode == "SDB":
+ cmd = "sdb -s %s shell .%s/askpolicy.sh %s" % (PARAMETERS.device,
+ SRC_DIR, pkg_id)
+ print cmd
+ print cmd
+ print cmd
+ print cmd
+ print cmd
+ return doCMD(cmd)
+ print "2"
+ print "2"
+ print "2"
+
def recordInternalStorage():
try:
f = open("/opt/tools/TCT_CONFIG", "a")
action_status = False
continue
(return_code, output) = doRemoteCMD(
- "pkgcmd -u -t wgt -q -n %s" % pkg_id)
+ "pkgcmd %s -u -t wgt -q -n %s" % (GLOVAL_OPT, pkg_id))
for line in output:
if "Failure" in line:
action_status = False
if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
action_status = False
(return_code, output) = doRemoteCMD(
- "pkgcmd -i -t wgt -q -p %s/%s" % (SRC_DIR, file))
+ "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
for line in output:
if "Failure" in line:
sys.exit(1)
if not PARAMETERS.user:
- PARAMETERS.user = "owner"
+ PARAMETERS.user = EXECUTION_MODE_30
if not PARAMETERS.mode:
PARAMETERS.mode = "SDB"
if not PARAMETERS.device:
print "No device provided"
sys.exit(1)
+
+ userCheck()
+
getInternalStorage()
#recordInternalStorage()
user_info = getUSERID()
sys.exit(1)
else:
if not instPKGs():
+ print "inst"
+ print "inst"
+ print "inst"
+ print "inst"
+ print "inst"
+ #askpolicyremoving()
sys.exit(1)
if __name__ == "__main__":
"inst.wgt.py": "inst.py",
"shellmanager.py": "shellmanager.py",
"Queue.py": "Queue.py",
+ "askpolicy.sh": "askpolicy.sh",
"media": "media",
"tests.xml": "tests.xml"
},
</spec>
</specs>
</testcase>
- <testcase purpose="Check if setChangeListener exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_setChangeListener_exist">
+ <testcase purpose="Check if addChangeListener exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_addChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_exist.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="setChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="addChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
+ <spec_url>TBD</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if setChangeListener method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_setChangeListener_missarg">
+ <testcase purpose="Check if addChangeListener method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_addChangeListener_misarg">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_misarg.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="setChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="addChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
+ <spec_url>TBD</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if setChangeListener throws exception when changeCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_setChangeListener_changeCallback_TypeMismatch">
+ <testcase purpose="Check if addChangeListener throws exception when changeCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_addChangeListener_changeCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_changeCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_changeCallback_TypeMismatch.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="setChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="addChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
+ <spec_url>TBD</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if setChangeListener throws exception when changeCallback is invalid listener" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_setChangeListener_changeCallback_invalid_cb">
+ <testcase purpose="Check if addChangeListener throws exception when changeCallback is invalid listener" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_addChangeListener_changeCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_changeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_changeCallback_invalid_cb.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="setChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="addChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
+ <spec_url>TBD</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if unsetChangeListener exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_unsetChangeListener_exist">
+ <testcase purpose="Check if removeChangeListener exists" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removeChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_unsetChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removeChangeListener_exist.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="unsetChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removeChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
+ <spec_url>TBD</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if unsetChangeListener method can be invoked with extra argument" type="compliance" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_unsetChangeListener_extra_argument">
- <description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_unsetChangeListener_extra_argument.html</test_script_entry>
- </description>
- <specs>
- <spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="unsetChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
- <spec_statement>TBD</spec_statement>
- </spec>
- </specs>
- </testcase>
<testcase purpose="Check if ContentArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentArraySuccessCallback_onsuccess">
<description>
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentArraySuccessCallback_onsuccess.html</test_script_entry>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if unsetChangeListener method called with non-optional arguments does what it should" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_unsetChangeListener">
+ <testcase purpose="Check if removeChangeListener method called with non-optional arguments does what it should" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removeChangeListener">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_unsetChangeListener.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removeChangeListener.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="unsetChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="removeChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
+ <spec_url>TBD</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
</spec>
</specs>
</testcase>
- <testcase purpose="Check if setChangeListener method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_setChangeListener">
+ <testcase purpose="Check if addChangeListener method works properly" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_addChangeListener">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion interface="ContentManager" element_type="method" element_name="setChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
- <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html</spec_url>
+ <spec_assertion interface="ContentManager" element_type="method" element_name="addChangeListener" specification="Content" section="Content" category="Tizen Device API Specifications"/>
+ <spec_url>TBD</spec_url>
<spec_statement>TBD</spec_statement>
</spec>
</specs>
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_scanFile_errorCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if setChangeListener exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_setChangeListener_exist">
+ <testcase purpose="Check if addChangeListener exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_addChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_exist.html</test_script_entry>
</description>
</testcase>
<testcase purpose="Check if ContentArraySuccessCallback cannot be called in new expression and as a function or in new expression" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="ContentArraySuccessCallback_notexist">
<test_script_entry>/opt/tct-content-tizen-tests/content/AudioContent_notexist.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if setChangeListener method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_setChangeListener_missarg">
+ <testcase purpose="Check if addChangeListener method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_addChangeListener_misarg">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_missarg.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_misarg.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if setChangeListener throws exception when changeCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_setChangeListener_changeCallback_TypeMismatch">
+ <testcase purpose="Check if addChangeListener throws exception when changeCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_addChangeListener_changeCallback_TypeMismatch">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_changeCallback_TypeMismatch.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_changeCallback_TypeMismatch.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if setChangeListener throws exception when changeCallback is invalid listener" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_setChangeListener_changeCallback_invalid_cb">
+ <testcase purpose="Check if addChangeListener throws exception when changeCallback is invalid listener" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_addChangeListener_changeCallback_invalid_cb">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener_changeCallback_invalid_cb.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener_changeCallback_invalid_cb.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if unsetChangeListener exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_unsetChangeListener_exist">
+ <testcase purpose="Check if removeChangeListener exists" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P0" id="ContentManager_removeChangeListener_exist">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_unsetChangeListener_exist.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removeChangeListener_exist.html</test_script_entry>
</description>
</testcase>
<testcase purpose="Check if ImageContent can have new properties added" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="ImageContent_extend">
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_find_sortMode_invalid_obj.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if unsetChangeListener method can be invoked with extra argument" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P2" id="ContentManager_unsetChangeListener_extra_argument">
- <description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_unsetChangeListener_extra_argument.html</test_script_entry>
- </description>
- </testcase>
<testcase purpose="Check if ContentArraySuccessCallback onsuccess is called and if its arguments have proper type" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentArraySuccessCallback_onsuccess">
<description>
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentArraySuccessCallback_onsuccess.html</test_script_entry>
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_scanFile_with_successCallback.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if unsetChangeListener method called with non-optional arguments does what it should" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_unsetChangeListener">
+ <testcase purpose="Check if removeChangeListener method called with non-optional arguments does what it should" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_removeChangeListener">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_unsetChangeListener.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_removeChangeListener.html</test_script_entry>
</description>
</testcase>
<testcase purpose="Check if VideoContent can have new properties added" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P3" id="VideoContent_extend">
<test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_updateBatch_image_orientation.html</test_script_entry>
</description>
</testcase>
- <testcase purpose="Check if setChangeListener method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_setChangeListener">
+ <testcase purpose="Check if addChangeListener method works properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_addChangeListener">
<description>
- <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_setChangeListener.html</test_script_entry>
+ <test_script_entry>/opt/tct-content-tizen-tests/content/ContentManager_addChangeListener.html</test_script_entry>
</description>
</testcase>
<testcase purpose="Check if updateBatch called without callback is invoked properly" onload_delay="30" component="Tizen Device APIs/Content/Content" execution_type="auto" priority="P1" id="ContentManager_updateBatch_without_callback">