//==== TEST_CRITERIA MR MAST
-var retValue, adapter, aids = "ABC0012345", isActiveHandler, isActiveCategory;
+var t = async_test(document.title, {timeout: 90000}), i, retValue, adapter, aids = "ABC0012345", onSuccessCallback;
-test(function () {
+t.step(function () {
adapter = tizen.nfc.getDefaultAdapter();
+ onSuccessCallback = t.step_func(function (ids) {
+ for(i = 0; i < ids.length; i++){
+ assert_not_equals(ids[i].aid, aids, "get wrong aids");
+ }
+ t.done();
+ });
try {
adapter.registerAID("HCE", aids, "PAYMENT");
}catch(e){
}catch(e){
assert_unreached("unregisterAID throw " + e.message);
}
- isActiveHandler = adapter.isActivatedHandlerForAID("HCE", aids);
- assert_type(isActiveHandler, "boolean", "fail to get wrong type of isActiveHandler");
- isActiveCategory = adapter.isActivatedHandlerForCategory("HCE", "PAYMENT");
- assert_type(isActiveCategory, "boolean", "fail to get wrong type of isActiveCategory");
-}, document.title);
+ adapter.getAIDsForCategory("HCE", "PAYMENT", onSuccessCallback);
+});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
//==== PRIORITY P1
//==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:unregisterAID M
//==== SPEC_URL TBD
-//==== TEST_CRITERIA MR
+//==== TEST_CRITERIA MR MAST
-var retValue, adapter, aids = "ABC0012345";
+var t = async_test(document.title, {timeout: 90000}), i, retValue, adapter, aids = "ABC0012345", onSuccessCallback;
-test(function () {
+t.step(function () {
adapter = tizen.nfc.getDefaultAdapter();
+ onSuccessCallback = t.step_func(function (ids) {
+ for(i = 0; i < ids.length; i++){
+ assert_not_equals(ids[i].aid, aids, "get wrong aids");
+ }
+ t.done();
+ });
try {
adapter.registerAID("ESE", aids, "PAYMENT");
}catch(e){
}catch(e){
assert_unreached("unregisterAID throw " + e.message);
}
- adapter.isActivatedHandlerForAID("ESE", aids);
- adapter.isActivatedHandlerForCategory("ESE", "PAYMENT");
-}, document.title);
+ adapter.getAIDsForCategory("ESE", "PAYMENT", onSuccessCallback);
+});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
//==== PRIORITY P1
//==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:unregisterAID M
//==== SPEC_URL TBD
-//==== TEST_CRITERIA MR
+//==== TEST_CRITERIA MR MAST
-var retValue, adapter, aids = "ABC0012345";
+var t = async_test(document.title, {timeout: 90000}), i, retValue, adapter, aids = "ABC0012345", onSuccessCallback;
-test(function () {
+t.step(function () {
adapter = tizen.nfc.getDefaultAdapter();
+ onSuccessCallback = t.step_func(function (ids) {
+ for(i = 0; i < ids.length; i++){
+ assert_not_equals(ids[i].aid, aids, "get wrong aids");
+ }
+ t.done();
+ });
try {
adapter.registerAID("HCE", aids, "OTHER");
}catch(e){
}catch(e){
assert_unreached("unregisterAID throw " + e.message);
}
- adapter.isActivatedHandlerForAID("HCE", aids);
- adapter.isActivatedHandlerForCategory("HCE", "OTHER");
-}, document.title);
+ adapter.getAIDsForCategory("HCE", "OTHER", onSuccessCallback);
+});
</script>
</body>
-</html>
\ No newline at end of file
+</html>
//==== PRIORITY P1
//==== SPEC Tizen Web API:Communication:NFC:NFCAdapter:unregisterAID M
//==== SPEC_URL TBD
-//==== TEST_CRITERIA MR
+//==== TEST_CRITERIA MR MAST
-var retValue, adapter, aids = "ABC0012345";
+var t = async_test(document.title, {timeout: 90000}), i, retValue, adapter, aids = "ABC0012345", onSuccessCallback;
-test(function () {
+t.step(function () {
adapter = tizen.nfc.getDefaultAdapter();
+ onSuccessCallback = t.step_func(function (ids) {
+ for(i = 0; i < ids.length; i++){
+ assert_not_equals(ids[i].aid, aids, "get wrong aids");
+ }
+ t.done();
+ });
try {
adapter.registerAID("UICC", aids, "PAYMENT");
}catch(e){
}catch(e){
assert_unreached("unregisterAID throw " + e.message);
}
- adapter.isActivatedHandlerForAID("UICC", aids);
- adapter.isActivatedHandlerForCategory("UICC", "PAYMENT");
-}, document.title);
+ adapter.getAIDsForCategory("UICC", "PAYMENT", onSuccessCallback);
+});
</script>
</body>
-</html>
\ No newline at end of file
+</html>