File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 50
50
</ polymer-element >
51
51
52
52
<!-- expressions -->
53
- < polymer-element name ="mdv-expression " attributes ="test ">
53
+ < polymer-element name ="mdv-expression " attributes ="test " lightdom >
54
54
< template >
55
55
< template bind ="{{test.math as m}} ">
56
56
< template if ="{{ m.a > 0 }} ">
71
71
< script >
72
72
Polymer ( 'mdv-expression' , {
73
73
runTests : function ( ) {
74
- var d = this . shadowRoot . querySelectorAll ( 'div' ) ;
74
+ var d = this . querySelectorAll ( 'div' ) ;
75
75
for ( var i = 0 ; i < d . length ; i ++ ) {
76
76
assert . equal ( d [ i ] . textContent , this . test . math . expected [ i ] ) ;
77
77
}
78
- assert . ok ( this . shadowRoot . querySelector ( '#conditional' ) ) ;
79
- assert . ok ( this . shadowRoot . querySelector ( 'pre' ) . classList . contains ( 'bar' ) ) ;
80
- assert . equal ( this . shadowRoot . querySelector ( '#inception' ) . textContent , document . querySelector ( 'mdv-holder' ) . offsetTop ) ;
78
+ assert . ok ( this . querySelector ( '#conditional' ) ) ;
79
+ assert . ok ( this . querySelector ( 'pre' ) . classList . contains ( 'bar' ) ) ;
80
+ assert . equal ( this . querySelector ( '#inception' ) . textContent , document . querySelector ( 'mdv-holder' ) . offsetTop ) ;
81
81
}
82
82
} ) ;
83
83
</ script >
98
98
this . $ . math . runTests ( ) ;
99
99
} ,
100
100
ready : function ( ) {
101
- this . onMutation ( this . $ . math . shadowRoot , function ( ) {
101
+ this . onMutation ( this . $ . math , function ( ) {
102
102
this . runTests ( ) ;
103
103
done ( ) ;
104
104
} ) ;
You can’t perform that action at this time.
0 commit comments