Author: ygrego Date: 2015-05-18 16:00:46 +0000 (Mon, 18 May 2015) New Revision: 1380 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1380 Log: Addition of the method "testGetBlockUnratedWhenUnratedContentsAreBlocked". Modified: oipf/js/test/ParentalControlManagerTest.js Modified: oipf/js/test/ParentalControlManagerTest.js =================================================================== --- oipf/js/test/ParentalControlManagerTest.js 2015-05-18 15:56:57 UTC (rev 1379) +++ oipf/js/test/ParentalControlManagerTest.js 2015-05-18 16:00:46 UTC (rev 1380) @@ -65,8 +65,10 @@ } }, - testGetBlockUnrated: function(resolve, reject) { - if (!this.parentalControlManagerObject.getBlockUnrated()) { + testGetBlockUnratedWhenUnratedContentsAreBlocked: function(resolve, reject) { + this.parentalControlManagerObject.setBlockUnrated("1234", true); + + if (this.parentalControlManagerObject.getBlockUnrated()) { resolve(); } else { reject();