From abf802280df31c49fc4c13079a8ffbb9c7b0e644 Mon Sep 17 00:00:00 2001 From: Gu Weiyi Date: Wed, 23 Aug 2017 13:46:15 +0800 Subject: [PATCH] [common][secureelement][Modify 2 tcs for commercial binary unknownerror issue] Change-Id: I2cb796703ba26601b423fd0cdda67a7eb0d35fea Signed-off-by: Gu Weiyi --- .../secureelement/Session_openBasicChannel.html | 9 +++++++-- .../secureelement/Session_openLogicalChannel.html | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/common/tct-secureelement-tizen-tests/secureelement/Session_openBasicChannel.html b/common/tct-secureelement-tizen-tests/secureelement/Session_openBasicChannel.html index 30cc9a610..6474dc8d1 100755 --- a/common/tct-secureelement-tizen-tests/secureelement/Session_openBasicChannel.html +++ b/common/tct-secureelement-tizen-tests/secureelement/Session_openBasicChannel.html @@ -38,7 +38,7 @@ Authors: setup({timeout: 90000}); var t = async_test(document.title, {timeout: 90000}), getReadersSuccessCallback, getReaderErrorCallback, successChannel, - successSession, errorSession, retVal = null; + errorChannel, successSession, errorSession, retVal = null; t.step(function () { successChannel = t.step_func(function (channel) { @@ -46,9 +46,14 @@ t.step(function () { t.done(); }); + errorChannel = t.step_func(function (error) { + assert_equals(error.name, "UnknownError", "Incorrect error name."); + t.done(); + }); + successSession = t.step_func(function (session) { assert_true(!session.isClosed, "Session is closed"); - retVal = session.openBasicChannel([0x61, 0x70, 0x69, 0x31, 0x73, 0x65, 0x65, 0x6C, 0x30, 0x30], successChannel); + retVal = session.openBasicChannel([0x61, 0x70, 0x69, 0x31, 0x73, 0x65, 0x65, 0x6C, 0x30, 0x30], successChannel, errorChannel); }); errorSession = t.step_func(function (error) { diff --git a/common/tct-secureelement-tizen-tests/secureelement/Session_openLogicalChannel.html b/common/tct-secureelement-tizen-tests/secureelement/Session_openLogicalChannel.html index ec5328203..7fc355dca 100755 --- a/common/tct-secureelement-tizen-tests/secureelement/Session_openLogicalChannel.html +++ b/common/tct-secureelement-tizen-tests/secureelement/Session_openLogicalChannel.html @@ -37,7 +37,7 @@ Authors: setup({timeout: 90000}); var t = async_test(document.title, {timeout: 90000}), getReadersSuccessCallback, getReaderErrorCallback, successChannel, - successSession, errorSession, retVal = null; + errorChannel, successSession, errorSession, retVal = null; t.step(function () { successChannel = t.step_func(function (channel) { @@ -45,9 +45,14 @@ t.step(function () { t.done(); }); + errorChannel = t.step_func(function (error) { + assert_equals(error.name, "UnknownError", "Incorrect error name."); + t.done(); + }); + successSession = t.step_func(function (session) { assert_true(!session.isClosed, "Session is closed"); - retVal = session.openLogicalChannel([0x61, 0x70, 0x69, 0x31, 0x67, 0x65, 0x74, 0x63, 0x61, 0x70, 0x2E, 0x73, 0x79, 0x73, 0x69, 0x6E, 0x66, 0x6F], successChannel); + retVal = session.openLogicalChannel([0x61, 0x70, 0x69, 0x31, 0x67, 0x65, 0x74, 0x63, 0x61, 0x70, 0x2E, 0x73, 0x79, 0x73, 0x69, 0x6E, 0x66, 0x6F], successChannel, errorChannel); }); errorSession = t.step_func(function (error) { -- 2.34.1