Author: ygrego Date: 2015-05-19 11:13:54 +0000 (Tue, 19 May 2015) New Revision: 1390 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1390 Log: Modification of method "afterTest" Modified: oipf/js/test/ParentalControlManagerTest.js Modified: oipf/js/test/ParentalControlManagerTest.js =================================================================== --- oipf/js/test/ParentalControlManagerTest.js 2015-05-19 09:53:38 UTC (rev 1389) +++ oipf/js/test/ParentalControlManagerTest.js 2015-05-19 11:13:54 UTC (rev 1390) @@ -18,13 +18,10 @@ this.parentalControlManagerObject = oipfObjectFactory.createParentalControlManagerObject(); - this.renderResultIfTrue = - this.renderResultIfTrue.bind(this, resolve, reject); - }, afterTest: function() { - this.parentalControlManagerObject.setBlockUnrated(this.PIN, true); + this.parentalControlManagerObject.setBlockUnrated(this.PIN, false); this.parentalControlManagerObject._setCurrentInvalidPINAttempts && this.parentalControlManagerObject._setCurrentInvalidPINAttempts(0); }, @@ -85,7 +82,7 @@ .setBlockUnrated(this.PIN, true); console.log(result); - + if (this.assertEquals(result, 0)) { resolve(); } else {
participants (1)
-
ygregoï¼ users.nuiton.org