Author: ygrego Date: 2015-05-19 14:06:09 +0000 (Tue, 19 May 2015) New Revision: 1404 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1404 Log: Addition of method "testSetParentalControlPINWithInvalidOldPINAndValidNewPIN". Modified: oipf/js/test/ParentalControlManagerTest.js Modified: oipf/js/test/ParentalControlManagerTest.js =================================================================== --- oipf/js/test/ParentalControlManagerTest.js 2015-05-19 14:01:09 UTC (rev 1403) +++ oipf/js/test/ParentalControlManagerTest.js 2015-05-19 14:06:09 UTC (rev 1404) @@ -167,5 +167,25 @@ } else { reject(); } + }, + + testSetParentalControlPINWithInvalidOldPINAndValidNewPIN: function(resolve, reject) { + this.newPIN = "1212"; + var resultSetPIN = this.parentalControlManagerObject + .setParentalControlPIN("PIN", this.newPIN); + + console.log(resultSetPIN); + + var resultVerifyPIN = this.parentalControlManagerObject + .verifyParentalControlPIN(this.newPIN); + + console.log(resultVerifyPIN); + + if (this.assertEquals(resultSetPIN, this.PIN_INCORRECT) && + this.assertEquals(resultVerifyPIN, this.PIN_INCORRECT)) { + resolve(); + } else { + reject(); + } } }); \ No newline at end of file
participants (1)
-
ygregoï¼ users.nuiton.org