From: Gu Weiyi Date: Wed, 23 Aug 2017 05:46:15 +0000 (+0800) Subject: [common][secureelement][Modify 2 tcs for commercial binary unknownerror issue] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=abf802280df31c49fc4c13079a8ffbb9c7b0e644;p=test%2Ftct%2Fweb%2Fapi.git [common][secureelement][Modify 2 tcs for commercial binary unknownerror issue] Change-Id: I2cb796703ba26601b423fd0cdda67a7eb0d35fea Signed-off-by: Gu Weiyi --- 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) {