diff --git a/platform/framework/test/register/PartialConstructorSpec.js b/platform/framework/test/register/PartialConstructorSpec.js index b54c1e395d..69f5e8a971 100644 --- a/platform/framework/test/register/PartialConstructorSpec.js +++ b/platform/framework/test/register/PartialConstructorSpec.js @@ -26,6 +26,8 @@ define( this.message = [x, y, z].join(" "); } + RegularConstructor.someProperty = "test property"; + beforeEach(function () { result = undefined; PartializedConstructor = new PartialConstructor(RegularConstructor); @@ -62,6 +64,14 @@ define( expect(instance instanceof ThisStyleConstructor).toBeTruthy(); }); + it("retains static properties after partialization", function () { + // This string should appear after invoking the partialized + // constructor, such that the resulting inner constructor + // exposes these as if we were looking at the original + // RegularConstructor. + expect(new PartializedConstructor().someProperty).toEqual("test property"); + }); + }); } ); \ No newline at end of file