Author: ygrego Date: 2015-05-22 14:05:50 +0000 (Fri, 22 May 2015) New Revision: 1436 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1436 Log: Addition of method "testGetOwnerApplicationOfDocumentOfGlobalPropertyWindow" and the property "applicationManagerObject" initialized in method "beforeTest". Modified: oipf/js/test/ApplicationManagerTest.js Modified: oipf/js/test/ApplicationManagerTest.js =================================================================== --- oipf/js/test/ApplicationManagerTest.js 2015-05-22 14:01:07 UTC (rev 1435) +++ oipf/js/test/ApplicationManagerTest.js 2015-05-22 14:05:50 UTC (rev 1436) @@ -11,11 +11,22 @@ }, beforeTest: function(resolve, reject) { - + this.applicationManagerObject = oipfObjectFactory.createApplicationManagerObject(); }, afterTest: function(resolve, reject) { + }, + + testGetOwnerApplicationOfDocumentOfGlobalPropertyWindow: function(resolve, reject) { + var application = this.applicationManagerObject + .getOwnerApplication(window.document); + + if (!this.assertEquals(application, null)) { + resolve(); + } else { + reject(); + } } });