File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9292 </ p >
9393
9494 < h3 > Spanish</ h3 >
95- < h4 > Year max unit time : < timer interval ="1000 " language ="es "> {{fullUnit}}</ timer > </ h4 >
96- < h4 > Hour max unit time: < timer interval ="1000 " language ="es "> {{hourUnit}}</ timer > </ h4 >
97- < h4 > Second max unit time: < timer interval ="1000 " language ="es "> {{secondUnit}}</ timer > </ h4 >
95+ < div id ="spanish ">
96+ < h4 > Year max unit time : < timer interval ="1000 " language ="es "> {{fullUnit}}</ timer > </ h4 >
97+ < h4 > Hour max unit time: < timer interval ="1000 " language ="es "> {{hourUnit}}</ timer > </ h4 >
98+ < h4 > Second max unit time: < timer interval ="1000 " language ="es "> {{secondUnit}}</ timer > </ h4 >
99+ </ div >
100+
98101
99102 < h3 > French</ h3 >
100- < h4 > Year max unit time : < timer interval ="1000 " language ="fr "> {{fullUnit}}</ timer > </ h4 >
101- < h4 > Hour max unit time: < timer interval ="1000 " language ="fr "> {{hourUnit}}</ timer > </ h4 >
102- < h4 > Second max unit time: < timer interval ="1000 " language ="fr "> {{secondUnit}}</ timer > </ h4 >
103+ < div id ="french ">
104+ < h4 > Year max unit time : < timer interval ="1000 " language ="fr "> {{fullUnit}}</ timer > </ h4 >
105+ < h4 > Hour max unit time: < timer interval ="1000 " language ="fr "> {{hourUnit}}</ timer > </ h4 >
106+ < h4 > Second max unit time: < timer interval ="1000 " language ="fr "> {{secondUnit}}</ timer > </ h4 >
107+ </ div >
103108 </ div >
104109</ section >
105110< section id ="clock-timer-leading-zero ">
Original file line number Diff line number Diff line change @@ -185,4 +185,10 @@ describe('Angular Timer E2E Tests', function () {
185185 expect ( timer3Val ) . toMatch ( / 0 0 / ) ;
186186 } ) ;
187187
188+ it ( 'i18n Countdown Timer - Spanish and French' , function ( ) {
189+ sleep ( 1 ) ;
190+ expect ( element ( '#clock-timer-i18n #spanish timer' ) . html ( ) ) . toMatch ( / s e g u n d o / ) ;
191+ expect ( element ( '#clock-timer-i18n #french timer' ) . html ( ) ) . toMatch ( / s e c o n d e / ) ;
192+ } ) ;
193+
188194} ) ;
You can’t perform that action at this time.
0 commit comments