@@ -308,8 +308,6 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
308308bold = ve . dm . example . bold ,
309309italic = ve . dm . example . italic ,
310310link = ve . dm . example . link ( 'Foo' ) ,
311- // generateUniqueId is deterministic on the DummyPlatform
312- imported = ( source ) => ( { type :'meta/importedData' , attributes :{ source :source , eventId :ve . init . platform . generateUniqueId ( ) } } ) ,
313311cases = [
314312{
315313rangeOrSelection :new ve . Range ( 1 ) ,
@@ -2035,7 +2033,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
20352033{
20362034type :'replace' ,
20372035insert :[
2038- ...ve . dm . example . annotateText ( 'Foo' , imported ( null ) )
2036+ ...ve . dm . example . annotateText ( 'Foo' , ve . dm . example . getImportedAnnotation ( ) )
20392037] ,
20402038remove :[ ]
20412039} ,
@@ -2064,7 +2062,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
20642062{
20652063type :'replace' ,
20662064insert :[
2067- ...ve . dm . example . annotateText ( 'Foo' , imported ( null ) )
2065+ ...ve . dm . example . annotateText ( 'Foo' , ve . dm . example . getImportedAnnotation ( ) )
20682066] ,
20692067remove :[ ]
20702068} ,
@@ -2095,7 +2093,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
20952093{
20962094type :'replace' ,
20972095insert :[
2098- ...ve . dm . example . annotateText ( 'Foo' , [ bold , imported ( null ) ] )
2096+ ...ve . dm . example . annotateText ( 'Foo' , [ bold , ve . dm . example . getImportedAnnotation ( ) ] )
20992097] ,
21002098remove :[ ]
21012099} ,
@@ -2115,7 +2113,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
21152113{
21162114type :'replace' ,
21172115insert :[
2118- ...ve . dm . example . annotateText ( 'Foo' , imported ( 'googleDocs' ) )
2116+ ...ve . dm . example . annotateText ( 'Foo' , ve . dm . example . getImportedAnnotation ( 'googleDocs' ) )
21192117] ,
21202118remove :[ ]
21212119} ,
@@ -2136,7 +2134,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
21362134{
21372135type :'replace' ,
21382136insert :[
2139- ...ve . dm . example . annotateText ( 'Foo' , imported ( 'visualEditor' ) )
2137+ ...ve . dm . example . annotateText ( 'Foo' , ve . dm . example . getImportedAnnotation ( 'visualEditor' ) )
21402138] ,
21412139remove :[ ]
21422140} ,
@@ -2156,7 +2154,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
21562154{
21572155type :'replace' ,
21582156insert :[
2159- ...ve . dm . example . annotateText ( 'Foo' , imported ( 'libreOffice' ) )
2157+ ...ve . dm . example . annotateText ( 'Foo' , ve . dm . example . getImportedAnnotation ( 'libreOffice' ) )
21602158] ,
21612159remove :[ ]
21622160} ,
@@ -2176,7 +2174,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
21762174{
21772175type :'replace' ,
21782176insert :[
2179- ...ve . dm . example . annotateText ( 'Foo' , imported ( 'microsoftOffice' ) )
2177+ ...ve . dm . example . annotateText ( 'Foo' , ve . dm . example . getImportedAnnotation ( 'microsoftOffice' ) )
21802178] ,
21812179remove :[ ]
21822180} ,
@@ -2196,7 +2194,7 @@ QUnit.test( 'beforePaste/afterPaste', ( assert ) => {
21962194{
21972195type :'replace' ,
21982196insert :[
2199- ...ve . dm . example . annotateText ( 'Foo' , imported ( 'plainText' ) )
2197+ ...ve . dm . example . annotateText ( 'Foo' , ve . dm . example . getImportedAnnotation ( 'plainText' ) )
22002198] ,
22012199remove :[ ]
22022200} ,