Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Orvell committed Mar 15, 2016
1 parent f6597ec commit 0447228
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions test/unit/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@

setup(function() {
// Ensure a clean environment for each test.
window.Base = Polymer.Base;
window.Child = Object.create(Base);
window.Child = Object.create(Polymer.Base);
Child._registerFeatures = function() {
};
Child._initFeatures = function() {};
Expand All @@ -47,9 +46,9 @@
suite('addFeature', function() {

test('mixes the feature into Base', function() {
assert.notOk(Base.someProperty);
Base._addFeature({someProperty: 123});
assert.equal(Base.someProperty, 123);
assert.notOk(Polymer.Base.someProperty);
Polymer.Base._addFeature({someProperty: 123});
assert.equal(Polymer.Base.someProperty, 123);
});

});
Expand Down
8 changes: 4 additions & 4 deletions test/unit/lazy-register.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@
suite('lazy-register', function() {

test('not registered until first instance', function() {
assert.isFalse(XLazy.prototype.registered.called, 'registered called before instance created');
assert.isFalse(window.XLazy.prototype.registered.called, 'registered called before instance created');
document.createElement('x-lazy');
assert.isTrue(XLazy.prototype.registered.called, 'registered not called after instance created');
assert.isTrue(window.XLazy.prototype.registered.called, 'registered not called after instance created');
});

test('registered called at registration time if `eagerRegister` is true', function() {
assert.isTrue(XEager.prototype.registered.called, 'registered not called before instance created');
assert.isTrue(window.XEager.prototype.registered.called, 'registered not called before instance created');
document.createElement('x-eager');
assert.isTrue(XLazy.prototype.registered.calledOnce, 'registered called more than once');
assert.isTrue(window.XLazy.prototype.registered.calledOnce, 'registered called more than once');
});

test('styles shimmed at first instance', function() {
Expand Down

0 comments on commit 0447228

Please sign in to comment.