Author: ygrego Date: 2015-05-19 13:33:06 +0000 (Tue, 19 May 2015) New Revision: 1399 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1399 Log: Addition of a method: "resetOldPIN". This method is called in method "afterTest". Modified: oipf/js/test/ParentalControlManagerTest.js Modified: oipf/js/test/ParentalControlManagerTest.js =================================================================== --- oipf/js/test/ParentalControlManagerTest.js 2015-05-19 12:15:43 UTC (rev 1398) +++ oipf/js/test/ParentalControlManagerTest.js 2015-05-19 13:33:06 UTC (rev 1399) @@ -24,8 +24,15 @@ this.parentalControlManagerObject.setBlockUnrated(this.PIN, false); this.parentalControlManagerObject._setCurrentInvalidPINAttempts && this.parentalControlManagerObject._setCurrentInvalidPINAttempts(0); + + this.newPIN && this.resetOldPIN(); }, + resetOldPIN: function() { + this.parentalControlManagerObject + .setParentalControlPIN(this.newPIN, this.PIN); + }, + renderResultIfTrue: function(resolve, reject, condition) { if (condition) { resolve();
participants (1)
-
ygregoï¼ users.nuiton.org