File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929
3030setup ( function ( ) {
3131 // Ensure a clean environment for each test.
32- window . Base = Polymer . Base ;
33- window . Child = Object . create ( Base ) ;
32+ window . Child = Object . create ( Polymer . Base ) ;
3433 Child . _registerFeatures = function ( ) {
3534 } ;
3635 Child . _initFeatures = function ( ) { } ;
4746suite ( 'addFeature' , function ( ) {
4847
4948 test ( 'mixes the feature into Base' , function ( ) {
50- assert . notOk ( Base . someProperty ) ;
51- Base . _addFeature ( { someProperty : 123 } ) ;
52- assert . equal ( Base . someProperty , 123 ) ;
49+ assert . notOk ( Polymer . Base . someProperty ) ;
50+ Polymer . Base . _addFeature ( { someProperty : 123 } ) ;
51+ assert . equal ( Polymer . Base . someProperty , 123 ) ;
5352 } ) ;
5453
5554} ) ;
Original file line number Diff line number Diff line change 7676suite ( 'lazy-register' , function ( ) {
7777
7878 test ( 'not registered until first instance' , function ( ) {
79- assert . isFalse ( XLazy . prototype . registered . called , 'registered called before instance created' ) ;
79+ assert . isFalse ( window . XLazy . prototype . registered . called , 'registered called before instance created' ) ;
8080 document . createElement ( 'x-lazy' ) ;
81- assert . isTrue ( XLazy . prototype . registered . called , 'registered not called after instance created' ) ;
81+ assert . isTrue ( window . XLazy . prototype . registered . called , 'registered not called after instance created' ) ;
8282 } ) ;
8383
8484 test ( 'registered called at registration time if `eagerRegister` is true' , function ( ) {
85- assert . isTrue ( XEager . prototype . registered . called , 'registered not called before instance created' ) ;
85+ assert . isTrue ( window . XEager . prototype . registered . called , 'registered not called before instance created' ) ;
8686 document . createElement ( 'x-eager' ) ;
87- assert . isTrue ( XLazy . prototype . registered . calledOnce , 'registered called more than once' ) ;
87+ assert . isTrue ( window . XLazy . prototype . registered . calledOnce , 'registered called more than once' ) ;
8888 } ) ;
8989
9090 test ( 'styles shimmed at first instance' , function ( ) {
You can’t perform that action at this time.
0 commit comments