Permalink
Browse files

add inheritance sanity unit test

Enyo-DCO-1.1-Signed-off-by: Cole Davis <cole.davis@lge.com>
  • Loading branch information...
1 parent c70577b commit 61d3b354f3bc54d7f7cac756b9ebc01077b61350 @clinuz clinuz committed Mar 25, 2013
Showing with 18 additions and 1 deletion.
  1. +16 −0 tools/test/core/tests/InheritanceSanityTest.js
  2. +2 −1 tools/test/core/tests/package.js
@@ -0,0 +1,16 @@
+enyo.kind({
+ name: "InheritanceSanityTest",
+ kind: enyo.TestSuite,
+ testObject: function () {
+ this.finish(!(enyo.Object && enyo.Object instanceof Object));
+ },
+ testComponent: function () {
+ this.finish(!(enyo.Component && enyo.Component.prototype instanceof enyo.Object));
+ },
+ testUiComponent: function () {
+ this.finish(!(enyo.UiComponent && enyo.UiComponent.prototype instanceof enyo.Object));
+ },
+ testControl: function () {
+ this.finish(!(enyo.Control && enyo.Control.prototype instanceof enyo.Object));
+ }
+});
@@ -14,5 +14,6 @@ enyo.depends(
"PathResolverTest.js",
"ViewportPositioningTest.js",
"BindingTest.js",
- "ObjectControllerTest.js"
+ "ObjectControllerTest.js",
+ "InheritanceSanityTest.js"
);

0 comments on commit 61d3b35

Please sign in to comment.