AC_CONFIG_FILES([Makefile \
privilege/Makefile \
-resources/Makefile \
-testkit/Makefile])
+privilege/support/Makefile \
+resources/Makefile testkit/Makefile])
AC_OUTPUT
<head>
<title>AlarmManager_add_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: AlarmManager_add_check_privilege
-//==== LABEL: Check if method AlarmManager::add() is forbidden without proper privilege
+//==== LABEL Check if method AlarmManager::add() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Alarm:AlarmManager:add M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html
}, function () {
tizen.alarm.add(alarm);
});
-}, "AlarmManager_add");
+}, document.title);
</script>
</body>
<head>
<title>AlarmManager_remove_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: AlarmManager_remove_check_privilege
-//==== LABEL: Check if method AlarmManager::remove() is forbidden without proper privilege
+//==== LABEL Check if method AlarmManager::remove() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Alarm:AlarmManager:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html
}, function () {
tizen.alarm.remove();
});
-}, "AlarmManager_remove");
+}, document.title);
</script>
</body>
<head>
<title>AlarmManager_removeAll_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: AlarmManager_removeAll_check_privilege
-//==== LABEL: Check if method AlarmManager::removeAll() is forbidden without proper privilege
+//==== LABEL Check if method AlarmManager::removeAll() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Alarm:AlarmManager:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html
}, function () {
tizen.alarm.removeAll();
});
-}, "AlarmManager_removeAll");
+}, document.title);
</script>
</body>
<head>
<title>ApplicationManager_getAppCerts_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: ApplicationManager_getAppCerts_check_privilege
-//==== LABEL: Check if method ApplicationManager::getAppCerts() is forbidden without proper privilege
+//==== LABEL Check if method ApplicationManager::getAppCerts() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Application:ApplicationManager:getAppCerts M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
assert_throws({"name": "SecurityError"}, function () {
tizen.application.getAppCerts();
});
-}, "ApplicationManager_getAppCerts");
+}, document.title);
</script>
</body>
<head>
<title>ApplicationManager_getAppMetaData_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: ApplicationManager_getAppMetaData_check_privilege
-//==== LABEL: Check if method ApplicationManager::getAppMetaData() is forbidden without proper privilege
+//==== LABEL Check if method ApplicationManager::getAppMetaData() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Application:ApplicationManager:getAppMetaData M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
assert_throws({"name": "SecurityError"}, function () {
tizen.application.getAppMetaData();
});
-}, "ApplicationManager_getAppMetaData");
+}, document.title);
</script>
</body>
<head>
<title>ApplicationManager_kill_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: ApplicationManager_kill_check_privilege
-//==== LABEL: Check if method ApplicationManager::kill() is forbidden without proper privilege
+//==== LABEL Check if method ApplicationManager::kill() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Application:ApplicationManager:kill M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
assert_throws({"name": "SecurityError"}, function () {
tizen.application.kill();
});
-}, "ApplicationManager_kill");
+}, document.title);
</script>
</body>
<head>
<title>ApplicationManager_launch_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: ApplicationManager_launch_check_privilege
-//==== LABEL: Check if method ApplicationManager::launch() is forbidden without proper privilege
+//==== LABEL Check if method ApplicationManager::launch() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Application:ApplicationManager:launch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
assert_throws({"name": "SecurityError"}, function () {
tizen.application.launch();
});
-}, "ApplicationManager_launch");
+}, document.title);
</script>
</body>
<head>
<title>ApplicationManager_launchAppControl_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: ApplicationManager_launchAppControl_check_privilege
-//==== LABEL: Check if method ApplicationManager::launchAppControl() is forbidden without proper privilege
+//==== LABEL Check if method ApplicationManager::launchAppControl() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Application:ApplicationManager:launchAppControl M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html
assert_throws({"name": "SecurityError"}, function () {
tizen.application.launchAppControl(app);
});
-}, "ApplicationManager_launchAppControl");
+}, document.title);
</script>
</body>
<head>
<title>BluetoothManager_getDefaultAdapter_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: BluetoothManager_getDefaultAdapter_check_privilege
-//==== LABEL: Check if method BluetoothManager::getDefaultAdapter is forbidden without proper privilege
+//==== LABEL Check if method BluetoothManager::getDefaultAdapter is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Bluetooth:BluetoothManager:getDefaultAdapter M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bluetooth.html
test(function () {
assert_throws({"name": "SecurityError"}, function () {
tizen.bluetooth.getDefaultAdapter();
});
-}, "BluetoothManagerr_getDefaultAdapter");
+}, document.title);
</script>
</body>
<head>
<title>BookmarkManager_add_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: BookmarkManager_add_check_privilege
-//==== LABEL: Check if method BookmarkManager::add() is forbidden without proper privilege
+//==== LABEL Check if method BookmarkManager::add() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Bookmark:BookmarkManager:add M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bookmark.html
assert_throws({"name": "SecurityError"}, function () {
tizen.bookmark.add(bookmark);
});
-}, "BookmarkManager_add");
+}, document.title);
</script>
</body>
<head>
<title>BookmarkManager_get_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: BookmarkManager_get_check_privilege
-//==== LABEL: Check if method BookmarkManager::get() is forbidden without proper privilege
+//==== LABEL Check if method BookmarkManager::get() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Bookmark:BookmarkManager:get M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bookmark.html
assert_throws({"name": "SecurityError"}, function () {
tizen.bookmark.get();
});
-}, "BookmarkManager_get");
+}, document.title);
</script>
</body>
<head>
<title>BookmarkManager_remove_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: BookmarkManager_remove_check_privilege
-//==== LABEL: Check if method BookmarkManager::remove() is forbidden without proper privilege
+//==== LABEL Check if method BookmarkManager::remove() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Bookmark:BookmarkManager:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/bookmark.html
assert_throws({"name": "SecurityError"}, function () {
tizen.bookmark.remove();
});
-}, "BookmarkManager_remove");
+}, document.title);
</script>
</body>
<head>
<title>CalendarEvent_expandRecurrence_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: CalendarEvent_expandRecurrence_check_privilege
-//==== LABEL check if method CalendarEvent::expandRecurrence() is denied without privilege
+//==== LABEL Check if method CalendarEvent::expandRecurrence() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Calendar:CalendarEvent:expandRecurrence M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
}, function () {
calendar_event.expandRecurrence(calendar_event.startDate, calendar_event.endDate, function () {});
});
-}, "CalendarEvent_expandRecurrence");
+}, document.title);
</script>
</body>
<head>
<title>CalendarManager_getCalendar_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: CalendarManager_getCalendar_check_privilege
-//==== LABEL check if method CalendarManager::getCalendar() is denied without privilege
+//==== LABEL Check if method CalendarManager::getCalendar() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Calendar:CalendarManager:getCalendar M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
}, function () {
tizen.calendar.getCalendar("TASK", "x");
});
-}, "CalendarManager_getCalendar");
+}, document.title);
</script>
</body>
<head>
<title>CalendarManager_getCalendars_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: CalendarManager_getCalendars_check_privilege
-//==== LABEL check if method CalendarManager::getCalendars() is denied without privilege
+//==== LABEL Check if method CalendarManager::getCalendars() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Calendar:CalendarManager:getCalendars M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
test(function () {
}, function () {
tizen.calendar.getCalendars("TASK", function () {});
});
-}, "CalendarManager_getCalendars");
+}, document.title);
</script>
</body>
<head>
<title>CalendarManager_getDefaultCalendar_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: CalendarManager_getDefaultCalendar_check_privilege
-//==== LABEL check if method CalendarManager::getDefaultCalendar() is denied without privilege
+//==== LABEL Check if method CalendarManager::getDefaultCalendar() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Calendar:CalendarManager:getDefaultCalendar M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
test(function () {
}, function () {
tizen.calendar.getDefaultCalendar("TASK");
});
-}, "CalendarManager_getDefaultCalendar");
+}, document.title);
</script>
</body>
<head>
<title>CalendarManager_getUnifiedCalendar_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: CalendarManager_getUnifiedCalendar_check_privilege
-//==== LABEL check if method CalendarManager::getUnifiedCalendar() is denied without privilege
+//==== LABEL Check if method CalendarManager::getUnifiedCalendar() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Calendar:CalendarManager:getUnifiedCalendar M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/calendar.html
test(function () {
}, function () {
tizen.calendar.getUnifiedCalendar("EVENT");
});
-}, "CalendarManager_getUnifiedCalendar");
+}, document.title);
</script>
</body>
<head>
<title>CallHistory_addChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: CallHistory_addChangeListener_check_privilege
-//==== LABEL: Check if method CallHistory::addChangeListener is forbidden without proper privilege
+//==== LABEL Check if method CallHistory::addChangeListener is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Callhistory:CallHistory:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
test(function () {
assert_throws({"name": "SecurityError"}, function () {
tizen.callhistory.addChangeListener({});
});
-}, "CallHistory_addChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>CallHistory_find_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: CallHistory_find_check_privilege
-//==== LABEL: Check if method CallHistory::find is forbidden without proper privilege
+//==== LABEL Check if method CallHistory::find is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Callhistory:CallHistory:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
test(function () {
assert_throws({"name": "SecurityError"}, function () {
tizen.callhistory.find(function () {});
});
-}, "CallHistory_find");
+}, document.title);
</script>
</body>
<head>
<title>CallHistory_remove_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: CallHistory_remove_check_privilege
-//==== LABEL: Check if method CallHistory::remove is forbidden without proper privilege
+//==== LABEL Check if method CallHistory::remove is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Callhistory:CallHistory:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
test(function () {
assert_throws({"name": "SecurityError"}, function () {
tizen.callhistory.remove();
});
-}, "CallHistory_remove");
+}, document.title);
</script>
</body>
<head>
<title>CallHistory_removeAll_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: CallHistory_removeAll_check_privilege
-//==== LABEL: Check if method CallHistory::removeAll is forbidden without proper privilege
+//==== LABEL Check if method CallHistory::removeAll is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Callhistory:CallHistory:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
test(function () {
assert_throws({"name": "SecurityError"}, function () {
tizen.callhistory.removeAll();
});
-}, "CallHistory_removeAll");
+}, document.title);
</script>
</body>
<head>
<title>CallHistory_removeBatch_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: CallHistory_removeBatch_check_privilege
-//==== LABEL: Check if method CallHistory::removeBatch is forbidden without proper privilege
+//==== LABEL Check if method CallHistory::removeBatch is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Callhistory:CallHistory:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
test(function () {
assert_throws({"name": "SecurityError"}, function () {
tizen.callhistory.removeBatch([]);
});
-}, "CallHistory_removeBatch");
+}, document.title);
</script>
</body>
<head>
<title>CallHistory_removeChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: CallHistory_removeChangeListener_check_privilege
-//==== LABEL: Check if method CallHistory::removeChangeListener is forbidden without proper privilege
+//==== LABEL Check if method CallHistory::removeChangeListener is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Callhistory:CallHistory:removeChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
test(function () {
assert_throws({"name": "SecurityError"}, function () {
tizen.callhistory.removeChangeListener(1);
});
-}, "CallHistory_removeChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_addChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_addChangeListener_check_privilege
-//==== LABEL check if method ContactManager::addChangeListener() is denied without privilege
+//==== LABEL Check if method ContactManager::addChangeListener() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:addChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.addChangeListener({"onpersonsadded": function () {}});
});
-}, "ContactManager_addChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_find_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_find_check_privilege
-//==== LABEL check if method ContactManager::find() is denied without privilege
+//==== LABEL Check if method ContactManager::find() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.find(function () {});
});
-}, "ContactManager_find");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_get_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_get_check_privilege
-//==== LABEL check if method ContactManager::get() is denied without privilege
+//==== LABEL Check if method ContactManager::get() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:get M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.get("1");
});
-}, "ContactManager_get");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_getAddressBook_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_getAddressBook_check_privilege
-//==== LABEL check if method ContactManager::getAddressBook() is denied without privilege
+//==== LABEL Check if method ContactManager::getAddressBook() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:getAddressBook M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.getAddressBook("1");
});
-}, "ContactManager_getAddressBook");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_getAddressBooks_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_getAddressBooks_check_privilege
-//==== LABEL check if method ContactManager::getAddressBooks() is denied without privilege
+//==== LABEL Check if method ContactManager::getAddressBooks() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:getAddressBooks M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.getAddressBooks(function () {});
});
-}, "ContactManager_getAddressBooks");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_getDefaultAddressBook_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_getDefaultAddressBook_check_privilege
-//==== LABEL check if method ContactManager::getDefaultAddressBook() is denied without privilege
+//==== LABEL Check if method ContactManager::getDefaultAddressBook() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:getDefaultAddressBook M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.getDefaultAddressBook();
});
-}, "ContactManager_getDefaultAddressBook");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_getUnifiedAddressBook_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_getUnifiedAddressBook_check_privilege
-//==== LABEL check if method ContactManager::getUnifiedAddressBook() is denied without privilege
+//==== LABEL Check if method ContactManager::getUnifiedAddressBook() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:getUnifiedAddressBook M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.getUnifiedAddressBook();
});
-}, "ContactManager_getUnifiedAddressBook");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_remove_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_remove_check_privilege
-//==== LABEL check if method ContactManager::remove() is denied without privilege
+//==== LABEL Check if method ContactManager::remove() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.remove("1");
});
-}, "ContactManager_remove");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_removeBatch_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_removeBatch_check_privilege
-//==== LABEL check if method ContactManager::removeBatch() is denied without privilege
+//==== LABEL Check if method ContactManager::removeBatch() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:removeBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.removeBatch([]);
});
-}, "ContactManager_removeBatch");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_removeChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_removeChangeListener_check_privilege
-//==== LABEL check if method ContactManager::removeChangeListener() is denied without privilege
+//==== LABEL Check if method ContactManager::removeChangeListener() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:removeChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.removeChangeListener(1);
});
-}, "ContactManager_removeChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_update_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_update_check_privilege
-//==== LABEL check if method ContactManager::update() is denied without privilege
+//==== LABEL Check if method ContactManager::update() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.update();
});
-}, "ContactManager_update");
+}, document.title);
</script>
</body>
<head>
<title>ContactManager_updateBatch_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContactManager_updateBatch_check_privilege
-//==== LABEL check if method ContactManager::updateBatch() is denied without privilege
+//==== LABEL Check if method ContactManager::updateBatch() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Contact:ContactManager:updateBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/contact.html
test(function () {
}, function () {
tizen.contact.updateBatch([]);
});
-}, "ContactManager_updateBatch");
+}, document.title);
</script>
</body>
<head>
<title>ContentManager_find_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContentManager_find_check_privilege
-//==== LABEL check if method ContentManager::find() is denied without privilege
+//==== LABEL Check if method ContentManager::find() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Content:ContentManager:find M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
test(function () {
}, function () {
tizen.content.find(function () {});
});
-}, "ContentManager_find");
+}, document.title);
</script>
</body>
<head>
<title>ContentManager_scanFile_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContentManager_scanFile_check_privilege
-//==== LABEL check if method ContentManager::scanFile() is denied without privilege
+//==== LABEL Check if method ContentManager::scanFile() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Content:ContentManager:scanFile M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
test(function () {
}, function () {
tizen.content.scanFile("/opt/usr/media");
});
-}, "ContentManager_scanFile");
+}, document.title);
</script>
</body>
<head>
<title>ContentManager_setChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContentManager_setChangeListener_check_privilege
-//==== LABEL check if method ContentManager::setChangeListener() is denied without privilege
+//==== LABEL Check if method ContentManager::setChangeListener() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Content:ContentManager:setChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
test(function () {
}, function () {
tizen.content.setChangeListener({});
});
-}, "ContentManager_setChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>ContentManager_unsetChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContentManager_unsetChangeListener_check_privilege
-//==== LABEL check if method ContentManager::unsetChangeListener() is denied without privilege
+//==== LABEL Check if method ContentManager::unsetChangeListener() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Content:ContentManager:unsetChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
test(function () {
}, function () {
tizen.content.unsetChangeListener();
});
-}, "ContentManager_unsetChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>ContentManager_update_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContentManager_update_check_privilege
-//==== LABEL check if method ContentManager::update() is denied without privilege
+//==== LABEL Check if method ContentManager::update() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Content:ContentManager:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
test(function () {
}, function () {
tizen.content.update();
});
-}, "ContentManager_update");
+}, document.title);
</script>
</body>
<head>
<title>ContentManager_updateBatch_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: ContentManager_updateBatch_check_privilege
-//==== LABEL check if method ContentManager::updateBatch() is denied without privilege
+//==== LABEL Check if method ContentManager::updateBatch() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Content:ContentManager:updateBatch M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/content.html
test(function () {
}, function () {
tizen.content.updateBatch([]);
});
-}, "ContentManager_updateBatch");
+}, document.title);
</script>
</body>
<head>
<title>DataControlManager_getDataControlConsumer_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataControlManager_getDataControlConsumer_check_privilege
-//==== LABEL: Check if method DataControlManager::getDataControlConsumer() is forbidden without proper privilege
+//==== LABEL Check if method DataControlManager::getDataControlConsumer() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datacontrol:DataControlManager:getDataControlConsumer M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datacontrol.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datacontrol.getDataControlConsumer("providerId", "dataId", "SQL");
});
-}, "DataControlManager_getDataControlConsumer");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_add_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_add_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::add() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::add() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:add M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.add(profile);
});
-}, "DataSynchronizationManager_add");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_get_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_get_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::get() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::get() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:get M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.get("profileId");
});
-}, "DataSynchronizationManager_get");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_getAll_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_getAll_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::getAll() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::getAll() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:getAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.getAll();
});
-}, "DataSynchronizationManager_getAll");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_getLastSyncStatistics_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_getLastSyncStatistics_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::getLastSyncStatistics() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::getLastSyncStatistics() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:getLastSyncStatistics M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.getLastSyncStatistics("profileId");
});
-}, "DataSynchronizationManager_getLastSyncStatistics");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_getMaxProfilesNum_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_getMaxProfilesNum_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::getMaxProfilesNum() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::getMaxProfilesNum() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:getMaxProfilesNum M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.getMaxProfilesNum();
});
-}, "DataSynchronizationManager_getMaxProfilesNum");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_getProfilesNum_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_getProfilesNum_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::getProfilesNum() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::getProfilesNum() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:getProfilesNum M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.getProfilesNum();
});
-}, "DataSynchronizationManager_getProfilesNum");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_remove_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_remove_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::remove() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::remove() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.remove("profileId");
});
-}, "DataSynchronizationManager_remove");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_startSync_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_startSync_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::startSync() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::startSync() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:startSync M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.startSync("profileId");
});
-}, "DataSynchronizationManager_startSync");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_stopSync_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_stopSync_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::stopSync() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::stopSync() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:stopSync M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.stopSync("profileId");
});
-}, "DataSynchronizationManager_stopSync");
+}, document.title);
</script>
</body>
<head>
<title>DataSynchronizationManager_update_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: DataSynchronizationManager_update_check_privilege
-//==== LABEL: Check if method DataSynchronizationManager::update() is forbidden without proper privilege
+//==== LABEL Check if method DataSynchronizationManager::update() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Datasync:DataSynchronizationManager:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/datasync.html
assert_throws({"name": "SecurityError"}, function () {
tizen.datasync.update(profile);
});
-}, "DataSynchronizationManager_update");
+}, document.title);
</script>
</body>
<head>
<title>DownloadManager_start_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<script>
//==== TEST: DownloadManager_start_check_privilege
-//==== LABEL check if method DownloadManager::start() is denied without privilege
+//==== LABEL Check if method DownloadManager::start() is denied without privilege
//==== SPEC: Tizen Web API:Tizen Specification:Download:DownloadManager:start M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/download.html
test(function () {
}, function () {
tizen.download.start(request);
});
-}, "DownloadManager_start");
+}, document.title);
</script>
</body>
<head>
<title>FileSystemManager_addStorageStateChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: FileSystemManager_addStorageStateChangeListener_check_privilege
-//==== LABEL: Check if method FileSystemManager::addStorageStateChangeListener() is forbidden without proper privilege
+//==== LABEL Check if method FileSystemManager::addStorageStateChangeListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Filesystem:FileSystemManager:addStorageStateChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
assert_throws({"name": "SecurityError"}, function () {
tizen.filesystem.addStorageStateChangeListener(function () {});
});
-}, "FileSystemManager_addStorageStateChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>FileSystemManager_getStorage_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: FileSystemManager_getStorage_check_privilege
-//==== LABEL: Check if method FileSystemManager::getStorage() is forbidden without proper privilege
+//==== LABEL Check if method FileSystemManager::getStorage() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Filesystem:FileSystemManager:getStorage M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
assert_throws({"name": "SecurityError"}, function () {
tizen.filesystem.getStorage("label", function () {});
});
-}, "FileSystemManager_getStorage");
+}, document.title);
</script>
</body>
<head>
<title>FileSystemManager_listStorages_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: FileSystemManager_listStorages_check_privilege
-//==== LABEL: Check if method FileSystemManager::listStorages() is forbidden without proper privilege
+//==== LABEL Check if method FileSystemManager::listStorages() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Filesystem:FileSystemManager:listStorages M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
assert_throws({"name": "SecurityError"}, function () {
tizen.filesystem.listStorages(function () {});
});
-}, "FileSystemManager_listStorages");
+}, document.title);
</script>
</body>
<head>
<title>FileSystemManager_removeStorageStateChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: FileSystemManager_removeStorageStateChangeListener_check_privilege
-//==== LABEL: Check if method FileSystemManager::removeStorageStateChangeListener() is forbidden without proper privilege
+//==== LABEL Check if method FileSystemManager::removeStorageStateChangeListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Filesystem:FileSystemManager:removeStorageStateChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
assert_throws({"name": "SecurityError"}, function () {
tizen.filesystem.removeStorageStateChangeListener(3);
});
-}, "FileSystemManager_removeStorageStateChangeListener");
+}, document.title);
</script>
</body>
<head>
<title>FileSystemManager_resolve_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: FileSystemManager_resolve_check_privilege
-//==== LABEL: Check if method FileSystemManager::resolve() is forbidden without proper privilege
+//==== LABEL Check if method FileSystemManager::resolve() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Filesystem:FileSystemManager:resolve M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html
assert_throws({"name": "SecurityError"}, function () {
tizen.filesystem.resolve("music", function () {});
});
-}, "FileSystemManager_resolve");
+}, document.title);
</script>
</body>
-worker_DATA = *
-workerdir = /opt/tct-privilege-tizen-tests/privilege
-EXTRA_DIST = $(worker_DATA)
+SUBDIRS = support
+privilege_DATA = *.html
+privilegedir = /opt/tct-privilege-tizen-tests/privilege
+EXTRA_DIST = $(privilege_DATA)
<head>
<title>MessageService_loadMessageAttachment_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageService_loadMessageAttachment_check_privilege
-//==== LABEL: Check if method MessageService::loadMessageAttachment() is forbidden without proper privilege
+//==== LABEL Check if method MessageService::loadMessageAttachment() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageService:loadMessageAttachment M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageService_loadMessageAttachment");
+var t = async_test(document.title), service, onService, onServiceError, attachment = new tizen.MessageAttachment("path");
t.step(function () {
- var service, onService, onServiceError,
- attachment = new tizen.MessageAttachment("path");
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageService_loadMessageBody_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageService_loadMessageBody_check_privilege
-//==== LABEL: Check if method MessageService::loadMessageBody() is forbidden without proper privilege
+//==== LABEL Check if method MessageService::loadMessageBody() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageService:loadMessageBody M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageService_loadMessageBody");
+var t = async_test(document.title), service, onService, onServiceError, message = new tizen.Message("messaging.sms");
t.step(function () {
- var service, onService, onServiceError,
- message = new tizen.Message("messaging.sms");
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageService_sendMessage_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageService_sendMessage_check_privilege
-//==== LABEL: Check if method MessageService::sendMessage() is forbidden without proper privilege
+//==== LABEL Check if method MessageService::sendMessage() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageService:sendMessage M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageService_sendMessage");
+var t = async_test(document.title), service, onService, onServiceError, message = new tizen.Message("messaging.sms");
t.step(function () {
- var service, onService, onServiceError,
- message = new tizen.Message("messaging.sms");
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageService_sync_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageService_sync_check_privilege
-//==== LABEL: Check if method MessageService::sync() is forbidden without proper privilege
+//==== LABEL Check if method MessageService::sync() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageService:sync M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageService_sync");
+var t = async_test(document.title), service, onService, onServiceError;
t.step(function () {
- var service, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageService_syncFolder_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageService_syncFolder_check_privilege
-//==== LABEL: Check if method MessageService::syncFolder() is forbidden without proper privilege
+//==== LABEL Check if method MessageService::syncFolder() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageService:syncFolder M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageService_syncFolder");
+var t = async_test(document.title), service, onService, onServiceError;
t.step(function () {
- var service, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_addConversationsChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_addConversationsChangeListener_check_privilege
-//==== LABEL: Check if method MessageStorage::addConversationsChangeListener() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::addConversationsChangeListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:addConversationsChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_addConversationsChangeListener");
+var t = async_test(document.title), service, storage, onService, onServiceError;
t.step(function () {
- var service, storage, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_addDraftMessage_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_addDraftMessage_check_privilege
-//==== LABEL: Check if method MessageStorage::addDraftMessage() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::addDraftMessage() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:addDraftMessage M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_addDraftMessage");
+var t = async_test(document.title), service, storage, onService, onServiceError, message = new tizen.Message("messaging.sms");
t.step(function () {
- var service, storage, onService, onServiceError,
- message = new tizen.Message("messaging.sms");
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_addFoldersChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_addFoldersChangeListener_check_privilege
-//==== LABEL: Check if method MessageStorage::addFoldersChangeListener() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::addFoldersChangeListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:addFoldersChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_addFoldersChangeListener");
+var t = async_test(document.title), service, storage, onService, onServiceError;
t.step(function () {
- var service, storage, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_addMessagesChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_addMessagesChangeListener_check_privilege
-//==== LABEL: Check if method MessageStorage::addMessagesChangeListener() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::addMessagesChangeListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:addMessagesChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_addMessagesChangeListener");
+var t = async_test(document.title), service, storage, onService, onServiceError;
t.step(function () {
- var service, storage, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_findConversations_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_findConversations_check_privilege
-//==== LABEL: Check if method MessageStorage::findConversations() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::findConversations() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:findConversations M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_findConversations");
+var t = async_test(document.title), service, storage, onService, onServiceError, filter = new tizen.AttributeFilter("attr");
t.step(function () {
- var service, storage, onService, onServiceError,
- filter = new tizen.AttributeFilter("attr");
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_findFolders_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_findFolders_check_privilege
-//==== LABEL: Check if method MessageStorage::findFolders() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::findFolders() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:findFolders M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_findFolders");
+var t = async_test(document.title), service, storage, onService, onServiceError, filter = new tizen.AttributeFilter("attr");
t.step(function () {
- var service, storage, onService, onServiceError,
- filter = new tizen.AttributeFilter("attr");
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_findMessages_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_findMessages_check_privilege
-//==== LABEL: Check if method MessageStorage::findMessages() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::findMessages() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:findMessages M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_findMessages");
+var t = async_test(document.title), service, storage, onService, onServiceError, filter = new tizen.AttributeFilter("attr");
t.step(function () {
- var service, storage, onService, onServiceError,
- filter = new tizen.AttributeFilter("attr");
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_removeChangeListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_removeChangeListener_check_privilege
-//==== LABEL: Check if method MessageStorage::removeChangeListener() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::removeChangeListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:removeChangeListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_removeChangeListener");
+var t = async_test(document.title), service, storage, onService, onServiceError;
t.step(function () {
- var service, storage, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_removeConversations_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_removeConversations_check_privilege
-//==== LABEL: Check if method MessageStorage::removeConversations() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::removeConversations() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:removeConversations M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_removeConversations");
+var t = async_test(document.title), service, storage, onService, onServiceError;
t.step(function () {
- var service, storage, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_removeMessages_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_removeMessages_check_privilege
-//==== LABEL: Check if method MessageStorage::removeMessages() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::removeMessages() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:removeMessages M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_removeMessages");
+var t = async_test(document.title), service, storage, onService, onServiceError;
t.step(function () {
- var service, storage, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>MessageStorage_updateMessages_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: MessageStorage_updateMessages_check_privilege
-//==== LABEL: Check if method MessageStorage::updateMessages() is forbidden without proper privilege
+//==== LABEL Check if method MessageStorage::updateMessages() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Messaging:MessageStorage:updateMessages M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-var t = async_test("MessageStorage_updateMessages");
+var t = async_test(document.title), service, storage, onService, onServiceError;
t.step(function () {
- var service, storage, onService, onServiceError;
onService = t.step_func(function (services) {
assert_true(services.length > 0, "services list is empty");
service = services[0];
<head>
<title>NFCManager_getDefaultAdapter_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NFCManager_getDefaultAdapter_check_privilege
-//==== LABEL: Check if method NFCManager::getDefaultAdapter() is forbidden without proper privilege
+//==== LABEL Check if method NFCManager::getDefaultAdapter() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:NFC:NFCManager:getDefaultAdapter M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
assert_throws({"name": "SecurityError"}, function () {
tizen.nfc.getDefaultAdapter();
});
-}, "NFCManager_getDefaultAdapter");
+}, document.title);
</script>
</body>
<head>
<title>NFCManager_setExclusiveMode_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NFCManager_setExclusiveMode_check_privilege
-//==== LABEL: Check if method NFCManager::setExclusiveMode() is forbidden without proper privilege
+//==== LABEL Check if method NFCManager::setExclusiveMode() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:NFC:NFCManager:setExclusiveMode M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/nfc.html
assert_throws({"name": "SecurityError"}, function () {
tizen.nfc.setExclusiveMode(true);
});
-}, "NFCManager_setExclusiveMode");
+}, document.title);
</script>
</body>
<head>
<title>NetworkBearerSelection_releaseRouteToHost_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NetworkBearerSelection_releaseRouteToHost_check_privilege
-//==== LABEL: Check if method NetworkBearerSelection::releaseRouteToHost() is forbidden without proper privilege
+//==== LABEL Check if method NetworkBearerSelection::releaseRouteToHost() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:NBS:NetworkBearerSelection:releaseRouteToHost M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/networkbearerselection.html
assert_throws({"name": "SecurityError"}, function () {
tizen.networkbearerselection.releaseRouteToHost("CELLULAR", "tizen.org", function () {});
});
-}, "NetworkBearerSelection_releaseRouteToHost");
+}, document.title);
</script>
</body>
<head>
<title>NetworkBearerSelection_requestRouteToHost_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NetworkBearerSelection_requestRouteToHost_check_privilege
-//==== LABEL: Check if method NetworkBearerSelection::requestRouteToHost() is forbidden without proper privilege
+//==== LABEL Check if method NetworkBearerSelection::requestRouteToHost() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:NBS:NetworkBearerSelection:requestRouteToHost M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/networkbearerselection.html
assert_throws({"name": "SecurityError"}, function () {
tizen.networkbearerselection.requestRouteToHost("CELLULAR", "tizen.org", {onsuccess: function () {}});
});
-}, "NetworkBearerSelection_requestRouteToHost");
+}, document.title);
</script>
</body>
<head>
<title>NotificationManager_post_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NotificationManager_post_check_privilege
-//==== LABEL: Check if method NotificationManager::post() is forbidden without proper privilege
+//==== LABEL Check if method NotificationManager::post() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Notification:NotificationManager:post M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html
assert_throws({"name": "SecurityError"}, function () {
tizen.notification.post(notification);
});
-}, "NotificationManager_post");
+}, document.title);
</script>
</body>
<head>
<title>NotificationManager_remove_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NotificationManager_remove_check_privilege
-//==== LABEL: Check if method NotificationManager::remove() is forbidden without proper privilege
+//==== LABEL Check if method NotificationManager::remove() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Notification:NotificationManager:remove M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html
assert_throws({"name": "SecurityError"}, function () {
tizen.notification.remove("notificationId");
});
-}, "NotificationManager_remove");
+}, document.title);
</script>
</body>
<head>
<title>NotificationManager_removeAll_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NotificationManager_removeAll_check_privilege
-//==== LABEL: Check if method NotificationManager::removeAll() is forbidden without proper privilege
+//==== LABEL Check if method NotificationManager::removeAll() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Notification:NotificationManager:removeAll M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html
assert_throws({"name": "SecurityError"}, function () {
tizen.notification.removeAll();
});
-}, "NotificationManager_removeAll");
+}, document.title);
</script>
</body>
<head>
<title>NotificationManager_update_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: NotificationManager_update_check_privilege
-//==== LABEL: Check if method NotificationManager::update() is forbidden without proper privilege
+//==== LABEL Check if method NotificationManager::update() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Notification:NotificationManager:update M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html
assert_throws({"name": "SecurityError"}, function () {
tizen.notification.update(notification);
});
-}, "NotificationManager_update");
+}, document.title);
</script>
</body>
<head>
<title>PackageManager_getPackageInfo_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PackageManager_getPackageInfo_check_privilege
-//==== LABEL: Check if method PackageManager::getPackageInfo() is forbidden without proper privilege
+//==== LABEL Check if method PackageManager::getPackageInfo() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Package:PackageManager:getPackageInfo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/package.html
assert_throws({"name": "SecurityError"}, function () {
tizen.package.getPackageInfo();
});
-}, "PackageManager_getPackageInfo");
+}, document.title);
</script>
</body>
<head>
<title>PackageManager_getPackagesInfo_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PackageManager_getPackagesInfo_check_privilege
-//==== LABEL: Check if method PackageManager::getPackagesInfo() is forbidden without proper privilege
+//==== LABEL Check if method PackageManager::getPackagesInfo() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Package:PackageManager:getPackagesInfo M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/package.html
assert_throws({"name": "SecurityError"}, function () {
tizen.package.getPackagesInfo(function () {});
});
-}, "PackageManager_getPackagesInfo");
+}, document.title);
</script>
</body>
<head>
<title>PackageManager_install_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PackageManager_install_check_privilege
-//==== LABEL: Check if method PackageManager::install() is forbidden without proper privilege
+//==== LABEL Check if method PackageManager::install() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Package:PackageManager:install M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/package.html
assert_throws({"name": "SecurityError"}, function () {
tizen.package.install("/path/package.wgt", function () {});
});
-}, "PackageManager_install");
+}, document.title);
</script>
</body>
<head>
<title>PackageManager_setPackageInfoEventListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PackageManager_setPackageInfoEventListener_check_privilege
-//==== LABEL: Check if method PackageManager::setPackageInfoEventListener() is forbidden without proper privilege
+//==== LABEL Check if method PackageManager::setPackageInfoEventListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Package:PackageManager:setPackageInfoEventListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/package.html
assert_throws({"name": "SecurityError"}, function () {
tizen.package.setPackageInfoEventListener({});
});
-}, "PackageManager_setPackageInfoEventListener");
+}, document.title);
</script>
</body>
<head>
<title>PackageManager_uninstall_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PackageManager_uninstall_check_privilege
-//==== LABEL: Check if method PackageManager::uninstall() is forbidden without proper privilege
+//==== LABEL Check if method PackageManager::uninstall() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Package:PackageManager:uninstall M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/package.html
assert_throws({"name": "SecurityError"}, function () {
tizen.package.uninstall("uninstall1", function () {});
});
-}, "PackageManager_uninstall");
+}, document.title);
</script>
</body>
<head>
<title>PackageManager_unsetPackageInfoEventListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PackageManager_unsetPackageInfoEventListener_check_privilege
-//==== LABEL: Check if method PackageManager::unsetPackageInfoEventListener() is forbidden without proper privilege
+//==== LABEL Check if method PackageManager::unsetPackageInfoEventListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Package:PackageManager:unsetPackageInfoEventListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/package.html
assert_throws({"name": "SecurityError"}, function () {
tizen.package.unsetPackageInfoEventListener();
});
-}, "PackageManager_unsetPackageInfoEventListener");
+}, document.title);
</script>
</body>
<head>
<title>PowerManager_request_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PowerManager_request_check_privilege
-//==== LABEL: Check if method PowerManager::request() is forbidden without proper privilege
+//==== LABEL Check if method PowerManager::request() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Power:PowerManager:request M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
assert_throws({"name": "SecurityError"}, function () {
tizen.power.request("SCREEN", "SCREEN_NORMAL");
});
-}, "PowerManager_request");
+}, document.title);
</script>
</body>
<head>
<title>PowerManager_setScreenBrightness_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PowerManager_setScreenBrightness_check_privilege
-//==== LABEL: Check if method PowerManager::setScreenBrightness() is forbidden without proper privilege
+//==== LABEL Check if method PowerManager::setScreenBrightness() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Power:PowerManager:setScreenBrightness M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
assert_throws({"name": "SecurityError"}, function () {
tizen.power.setScreenBrightness(-1);
});
-}, "PowerManager_setScreenBrightness");
+}, document.title);
</script>
</body>
<head>
<title>PowerManager_turnScreenOff_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PowerManager_turnScreenOff_check_privilege
-//==== LABEL: Check if method PowerManager::turnScreenOff() is forbidden without proper privilege
+//==== LABEL Check if method PowerManager::turnScreenOff() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Power:PowerManager:turnScreenOff M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
try {
tizen.power.turnScreenOn();
} catch(err) {}
-}, "PowerManager_turnScreenOff");
+}, document.title);
</script>
</body>
<head>
<title>PowerManager_turnScreenOn_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PowerManager_turnScreenOn_check_privilege
-//==== LABEL: Check if method PowerManager::turnScreenOn() is forbidden without proper privilege
+//==== LABEL Check if method PowerManager::turnScreenOn() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Power:PowerManager:turnScreenOn M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/power.html
assert_throws({"name": "SecurityError"}, function () {
tizen.power.turnScreenOn();
});
-}, "PowerManager_turnScreenOn");
+}, document.title);
</script>
</body>
<head>
<title>PushManager_connectService_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PushManager_connectService_check_privilege
-//==== LABEL: Check if method PushManager::connectService() is forbidden without proper privilege
+//==== LABEL Check if method PushManager::connectService() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Push:PushManager:connectService M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
assert_throws({"name": "SecurityError"}, function () {
tizen.push.connectService(function () {});
});
-}, "PushManager_connectService");
+}, document.title);
</script>
</body>
<head>
<title>PushManager_disconnectService_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PushManager_disconnectService_check_privilege
-//==== LABEL: Check if method PushManager::disconnectService() is forbidden without proper privilege
+//==== LABEL Check if method PushManager::disconnectService() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Push:PushManager:disconnectService M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
assert_throws({"name": "SecurityError"}, function () {
tizen.push.disconnectService();
});
-}, "PushManager_disconnectService");
+}, document.title);
</script>
</body>
<head>
<title>PushManager_getRegistrationId_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PushManager_getRegistrationId_check_privilege
-//==== LABEL: Check if method PushManager::getRegistrationId() is forbidden without proper privilege
+//==== LABEL Check if method PushManager::getRegistrationId() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Push:PushManager:getRegistrationId M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
assert_throws({"name": "SecurityError"}, function () {
tizen.push.getRegistrationId();
});
-}, "PushManager_getRegistrationId");
+}, document.title);
</script>
</body>
<head>
<title>PushManager_registerService_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PushManager_registerService_check_privilege
-//==== LABEL: Check if method PushManager::registerService() is forbidden without proper privilege
+//==== LABEL Check if method PushManager::registerService() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Push:PushManager:registerService M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
assert_throws({"name": "SecurityError"}, function () {
tizen.push.registerService(service, function () {});
});
-}, "PushManager_registerService");
+}, document.title);
</script>
</body>
<head>
<title>PushManager_unregisterService_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: PushManager_unregisterService_check_privilege
-//==== LABEL: Check if method PushManager::unregisterService() is forbidden without proper privilege
+//==== LABEL Check if method PushManager::unregisterService() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:Push:PushManager:unregisterService M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/push.html
assert_throws({"name": "SecurityError"}, function () {
tizen.push.unregisterService();
});
-}, "PushManager_unregisterService");
+}, document.title);
</script>
</body>
<head>
<title>SEService_getReaders_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SEService_getReaders_check_privilege
-//==== LABEL: Check if method SEService::getReaders() is forbidden without proper privilege
+//==== LABEL Check if method SEService::getReaders() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:SE:SEService:getReaders M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/se.html
assert_throws({"name": "SecurityError"}, function () {
tizen.seService.getReaders(function () {});
});
-}, "SEService_getReaders");
+}, document.title);
</script>
</body>
<head>
<title>SEService_registerSEListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SEService_registerSEListener_check_privilege
-//==== LABEL: Check if method SEService::registerSEListener() is forbidden without proper privilege
+//==== LABEL Check if method SEService::registerSEListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:SE:SEService:registerSEListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/se.html
"onSENotReady": function () {}
});
});
-}, "SEService_registerSEListener");
+}, document.title);
</script>
</body>
<head>
<title>SEService_shutdown_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SEService_shutdown_check_privilege
-//==== LABEL: Check if method SEService::shutdown() is forbidden without proper privilege
+//==== LABEL Check if method SEService::shutdown() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:SE:SEService:shutdown M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/se.html
assert_throws({"name": "SecurityError"}, function () {
tizen.seService.shutdown();
});
-}, "SEService_shutdown");
+}, document.title);
</script>
</body>
<head>
<title>SEService_unregisterSEListener_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SEService_unregisterSEListener_check_privilege
-//==== LABEL: Check if method SEService::unregisterSEListener() is forbidden without proper privilege
+//==== LABEL Check if method SEService::unregisterSEListener() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:SE:SEService:unregisterSEListener M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/se.html
assert_throws({"name": "SecurityError"}, function () {
tizen.seService.unregisterSEListener(1);
});
-}, "SEService_unregisterSEListener");
+}, document.title);
</script>
</body>
<head>
<title>SystemInfoCellularNetwork_imei_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SystemInfoCellularNetwork_imei_check_privilege
-//==== LABEL: Check if access to attribute SystemInfoCellularNetwork::imei is forbidden without proper privilege
+//==== LABEL Check if access to attribute SystemInfoCellularNetwork::imei is forbidden without proper privilege
//==== SPEC: Tizen Web API:System:SystemInfo:SystemInfoCellularNetwork:imei A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
});
onErrorCallback = t.step_func(function (e) {
- assert_unreached("Exception : " + e.message);
+ assert_unreached("Exception: " + e.message);
});
tizen.systeminfo.getPropertyValue("CELLULAR_NETWORK", onSuccessCallback, onErrorCallback);
<head>
<title>SystemInfoDeviceCapability_nativeApiVersion_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SystemInfoDeviceCapability_nativeApiVersion_check_privilege
-//==== LABEL: Check if access to attribute SystemInfoDeviceCapability::nativeApiVersion is forbidden without proper privilege
+//==== LABEL Check if access to attribute SystemInfoDeviceCapability::nativeApiVersion is forbidden without proper privilege
//==== SPEC: Tizen Web API:System:SystemInfo:SystemInfoDeviceCapability:nativeApiVersion A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
assert_throws({"name": "SecurityError"}, function () {
assert_not_equals(capabilities.nativeApiVersion, null);
});
-}, "SystemInfoDeviceCapability_nativeApiVersion");
+}, document.title);
</script>
</body>
<head>
<title>SystemInfoDeviceCapability_platformVersion_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SystemInfoDeviceCapability_platformVersion_check_privilege
-//==== LABEL: Check if access to attribute SystemInfoDeviceCapability::platformVersion is forbidden without proper privilege
+//==== LABEL Check if access to attribute SystemInfoDeviceCapability::platformVersion is forbidden without proper privilege
//==== SPEC: Tizen Web API:System:SystemInfo:SystemInfoDeviceCapability:platformVersion A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
assert_throws({"name": "SecurityError"}, function () {
assert_not_equals(capabilities.platformVersion, null);
});
-}, "SystemInfoDeviceCapability_platformVersion");
+}, document.title);
</script>
</body>
<head>
<title>SystemInfoDeviceCapability_webApiVersion_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SystemInfoDeviceCapability_webApiVersion_check_privilege
-//==== LABEL: Check if access to attribute SystemInfoDeviceCapability::webApiVersion is forbidden without proper privilege
+//==== LABEL Check if access to attribute SystemInfoDeviceCapability::webApiVersion is forbidden without proper privilege
//==== SPEC: Tizen Web API:System:SystemInfo:SystemInfoDeviceCapability:webApiVersion A
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systeminfo.html
assert_throws({"name": "SecurityError"}, function () {
assert_not_equals(capabilities.webApiVersion, null);
});
-}, "SystemInfoDeviceCapability_webApiVersion");
+}, document.title);
</script>
</body>
<head>
<title>SystemSettingManager_setProperty_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: SystemSettingManager_setProperty_check_privilege
-//==== LABEL: Check if method SystemSettingManager::setProperty() is forbidden without proper privilege
+//==== LABEL Check if method SystemSettingManager::setProperty() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:SystemSetting:SystemSettingManager:setProperty M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/systemsetting.html
assert_throws({"name": "SecurityError"}, function () {
tizen.systemsetting.setProperty("LOCK_SCREEN", "", function () {});
});
-}, "SystemSettingManager_setProperty");
+}, document.title);
</script>
</body>
<head>
<title>WebSettingManager_removeAllCookies_check_privilege</title>
<meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
</head>
<body>
<div id="log"></div>
<script>
//==== TEST: WebSettingManager_removeAllCookies_check_privilege
-//==== LABEL: Check if method WebSettingManager::removeAllCookies() is forbidden without proper privilege
+//==== LABEL Check if method WebSettingManager::removeAllCookies() is forbidden without proper privilege
//==== SPEC: Tizen Web API:Tizen Specification:WebSetting:WebSettingManager:removeAllCookies M
//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/websetting.html
assert_throws({"name": "SecurityError"}, function () {
tizen.websetting.removeAllCookies();
});
-}, "WebSettingManager_removeAllCookies");
+}, document.title);
</script>
</body>
--- /dev/null
+supportdir = /opt/tct-privilege-tizen-tests/privilege/support
+support_DATA = *.js
+EXTRA_DIST = $(support_DATA)
--- /dev/null
+/*
+
+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:
+
+ */
+
+
+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'};
+
+
+(function () {
+ var head_src = document.head.innerHTML;
+ if (head_src.search(/\/testharness.js\W/) === -1) {
+ document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
+ }
+ if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+ document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\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],
+ [null, exceptionName],
+ [0, exceptionName],
+ [true, exceptionName],
+ ["dummyInvalidEnumValue", exceptionName],
+ [{ }, 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 "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;
+ 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;
+}