Author: ygrego Date: 2015-05-19 12:15:43 +0000 (Tue, 19 May 2015) New Revision: 1398 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1398 Log: Addition of a method: "testGetBlockUnratedWhenUnratedContentsAreNotBlocked". Modified: oipf/js/test/ParentalControlManagerTest.js Modified: oipf/js/test/ParentalControlManagerTest.js =================================================================== --- oipf/js/test/ParentalControlManagerTest.js 2015-05-19 12:11:49 UTC (rev 1397) +++ oipf/js/test/ParentalControlManagerTest.js 2015-05-19 12:15:43 UTC (rev 1398) @@ -128,6 +128,14 @@ this.renderResultIfTrue(resolve, reject, this.assertEquals(result, 1)); }, + testGetBlockUnratedWhenUnratedContentsAreNotBlocked: function(resolve, reject) { + if (!this.parentalControlManagerObject.getBlockUnrated()) { + resolve(); + } else { + reject(); + } + }, + testGetBlockUnratedWhenUnratedContentsAreBlocked: function(resolve, reject) { this.parentalControlManagerObject.setBlockUnrated("1234", true);