File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 386386 }
387387 } ) ;
388388 </ script >
389- </ dom-module >
389+ </ dom-module >
390+
391+ < dom-module id ="x-primitive-large ">
392+ < template >
393+ < template id ="repeater " is ="dom-repeat " items ="{{items}} ">
394+ < div > {{item}}</ div >
395+ </ template >
396+ </ template >
397+ < script >
398+ Polymer ( {
399+ is : 'x-primitive-large' ,
400+ properties : {
401+ items : {
402+ value : function ( ) {
403+ var ar = [ ] ;
404+ for ( var i = 0 ; i < 11 ; i ++ ) {
405+ ar . push ( i ) ;
406+ }
407+ return ar ;
408+ }
409+ }
410+ }
411+ } ) ;
412+ </ script >
413+ </ dom-module >
Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ <h4>inDocumentRepeater</h4>
6868 </ template >
6969 </ div >
7070
71+ < h4 > x-primitive-large</ h4 >
72+ < x-primitive-large id ="primitiveLarge "> </ x-primitive-large >
73+
7174 < div id ="inDocumentContainer ">
7275 </ div >
7376
@@ -1267,6 +1270,17 @@ <h4>inDocumentRepeater</h4>
12671270 } ) ;
12681271 } ) ;
12691272
1273+ test ( 'large splice' , function ( done ) {
1274+ primitiveLarge . splice ( 'items' , 0 , 10 ) ;
1275+ setTimeout ( function ( ) {
1276+ var stamped =
1277+ Polymer . dom ( primitiveLarge . root ) . querySelectorAll ( '*:not(template)' ) ;
1278+ assert . equal ( stamped . length , 1 , 'total stamped count incorrect' ) ;
1279+ assert . equal ( stamped [ 0 ] . textContent , '10' ) ;
1280+ done ( ) ;
1281+ } ) ;
1282+ } ) ;
1283+
12701284 test ( 'css scoping retained when re-ordering' , function ( done ) {
12711285 if ( ! Polymer . Settings . useShadow ) {
12721286 // Confirm initial scoping
You can’t perform that action at this time.
0 commit comments