Author: ygrego Date: 2015-05-18 12:19:07 +0000 (Mon, 18 May 2015) New Revision: 1362 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1362 Log: Addition of a condition in order to verify the test result. Modified: oipf/js/test/ParentalControlManagerTest.js Modified: oipf/js/test/ParentalControlManagerTest.js =================================================================== --- oipf/js/test/ParentalControlManagerTest.js 2015-05-18 11:45:58 UTC (rev 1361) +++ oipf/js/test/ParentalControlManagerTest.js 2015-05-18 12:19:07 UTC (rev 1362) @@ -22,15 +22,19 @@ }, - testVerifyParentalControlPIN4Times: function(resolve, reject) { - for(var i = 0, li = 4; i < li; i++) { + testVerifyParentalControlPIN10Times: function(resolve, reject) { + for(var i = 0, li = 10; i < li; i++) { var result = this.parentalControlManagerObject .verifyParentalControlPIN("0000"); - console.log(result); + console.log(i+1, ":", result); } - resolve(); + if (this.assertEquals(result, 2)) { + resolve(); + } else { + reject(); + } }, testVerifyParentalControlPINWithValidPIN: function(resolve, reject) {
participants (1)
-
ygregoï¼ users.nuiton.org