@@ -248,7 +248,26 @@ describe('ChangeEventPlugin', () => {
248248 }
249249
250250 var Scenario = {
251- Webkit : [
251+ ChromeUnder53 : [
252+ { run : setUntrackedValue , args : [ 'n' ] } ,
253+ { run : simulateEvent , args : [ 'keyDown' ] } ,
254+ { run : simulateEvent , args : [ 'compositionStart' ] } ,
255+ { run : simulateEvent , args : [ 'compositionUpdate' ] } ,
256+ { run : simulateEvent , args : [ 'input' ] } ,
257+ { run : simulateEvent , args : [ 'keyUp' ] } ,
258+ { run : setUntrackedValue , args : [ 'ni' ] } ,
259+ { run : simulateEvent , args : [ 'keyDown' ] } ,
260+ { run : simulateEvent , args : [ 'compositionUpdate' ] } ,
261+ { run : simulateEvent , args : [ 'input' ] } ,
262+ { run : simulateEvent , args : [ 'keyUp' ] } ,
263+ { run : setUntrackedValue , args : [ '你' ] } ,
264+ { run : simulateEvent , args : [ 'keyDown' ] } ,
265+ { run : simulateEvent , args : [ 'compositionEnd' ] } ,
266+ { run : simulateEvent , args : [ 'textInput' ] } ,
267+ { run : simulateEvent , args : [ 'input' ] } ,
268+ { run : simulateEvent , args : [ 'keyUp' ] } ,
269+ ] ,
270+ Chrome : [
252271 { run : setUntrackedValue , args : [ 'n' ] } ,
253272 { run : simulateEvent , args : [ 'keyDown' ] } ,
254273 { run : simulateEvent , args : [ 'compositionStart' ] } ,
@@ -348,8 +367,12 @@ describe('ChangeEventPlugin', () => {
348367 ] ,
349368 } ;
350369
351- it ( 'should only fire change once on Webkit' , ( ) => {
352- TestCompositionEvent ( Scenario . Webkit ) ;
370+ it ( 'should only fire change once on Chrome' , ( ) => {
371+ TestCompositionEvent ( Scenario . Chrome ) ;
372+ } ) ;
373+
374+ it ( 'should only fire change once on Chrome under 53' , ( ) => {
375+ TestCompositionEvent ( Scenario . ChromeUnder53 ) ;
353376 } ) ;
354377
355378 it ( 'should only fire change once on Firefox' , ( ) => {
0 commit comments