Author: ygrego Date: 2015-05-19 11:44:00 +0000 (Tue, 19 May 2015) New Revision: 1392 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1392 Log: Modification of method "testVerifyParentalControlPINWithValidPIN". Modified: oipf/js/test/ParentalControlManagerTest.js Modified: oipf/js/test/ParentalControlManagerTest.js =================================================================== --- oipf/js/test/ParentalControlManagerTest.js 2015-05-19 11:15:02 UTC (rev 1391) +++ oipf/js/test/ParentalControlManagerTest.js 2015-05-19 11:44:00 UTC (rev 1392) @@ -55,11 +55,8 @@ console.log(result); - if (this.assertEquals(result, this.PIN_CORRECT)) { - resolve(); - } else { - reject(); - } + this.renderResultIfTrue(resolve, reject, + this.assertEquals(result, this.PIN_CORRECT)); }, testSetBlockUnratedWithInvalidPIN10Times: function(resolve, reject) {