diff --git a/test/unit/base.html b/test/unit/base.html index f4de341778..679d6bb2c3 100644 --- a/test/unit/base.html +++ b/test/unit/base.html @@ -34,6 +34,7 @@ Child._registerFeatures = function() {}; Child._initFeatures = function() {}; Child._setAttributeToProperty = function() {}; + Child._desugarBehaviors = function() {}; Child._doBehavior = function(name, args) { if (this[name]) { this[name].apply(this, args || []); diff --git a/test/unit/micro-elements.html b/test/unit/micro-elements.html index 86c902479d..e57b006e85 100644 --- a/test/unit/micro-elements.html +++ b/test/unit/micro-elements.html @@ -95,3 +95,14 @@ }); + + + + + + + \ No newline at end of file diff --git a/test/unit/micro.html b/test/unit/micro.html index dbba916d6a..2ed24729ad 100644 --- a/test/unit/micro.html +++ b/test/unit/micro.html @@ -125,6 +125,20 @@ assert.equal(b.getAttribute('is'), 'x-mixed-case-button'); }); + test('input to Polymer is a `class`', function() { + var _class = function() {}; + _class.prototype = { + is: 'x-class-as-argument-test' + }; + Polymer(_class); + var a = document.createElement('x-class-as-argument-test'); + assert.equal(a.is, 'x-class-as-argument-test'); + }); + + test('input to Polymer is falsey', function() { + var a = document.createElement('falsey-polymer-arg'); + assert.equal(a.is, 'falsey-polymer-arg'); + }); });