UNPKG

website-page-frame

Version:

This library provides a way to allow browser based programs to have cross parent to child window communication through code.

17 lines (13 loc) 701 B
var WebsitePageFrameCrossOriginMessagingScript = require("../../../../src/native/scripts/WebsitePageFrameCrossOriginMessagingScript.js").WebsitePageFrameCrossOriginMessagingScript; var ScriptSpec = require("./Script-spec.js"); function getMockWebsitePageFrameCrossOriginMessagingScript() { return new WebsitePageFrameCrossOriginMessagingScript(); } describe("WebsitePageFrameCrossOriginMessagingScript Class unit test suite", function() { beforeEach(function() { this.iframeMessageHandlerScript = getMockWebsitePageFrameCrossOriginMessagingScript(); }); it("Constructor test", function() { ScriptSpec.propertyFormatTest(this.iframeMessageHandlerScript); }); });