@@ -403,7 +403,7 @@ describe('iD.coreHistory', function () {
403403 expect ( history . graph ( ) . entity ( 'n-1' ) ) . to . eql ( new iD . osmNode ( { id : 'n-1' , loc : [ 1 , 2 ] } ) ) ;
404404 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Added a point.' ) ;
405405 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
406- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
406+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
407407 } ) ;
408408
409409 it ( 'restores from v1 JSON (modification)' , function ( ) {
@@ -420,7 +420,7 @@ describe('iD.coreHistory', function () {
420420 expect ( history . graph ( ) . entity ( 'n-1' ) ) . to . eql ( new iD . osmNode ( { id : 'n-1' , loc : [ 2 , 3 ] , v : 1 } ) ) ;
421421 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Moved a point.' ) ;
422422 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
423- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
423+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
424424 } ) ;
425425
426426 it ( 'restores from v1 JSON (deletion)' , function ( ) {
@@ -437,7 +437,7 @@ describe('iD.coreHistory', function () {
437437 expect ( history . graph ( ) . hasEntity ( 'n1' ) ) . to . be . undefined ;
438438 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Deleted a point.' ) ;
439439 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
440- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 1 , way : - 2 , relation : - 3 } ) ;
440+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 1 , way : - 2 , relation : - 3 } ) ;
441441 } ) ;
442442
443443 it ( 'restores from v2 JSON (creation)' , function ( ) {
@@ -457,7 +457,7 @@ describe('iD.coreHistory', function () {
457457 expect ( history . graph ( ) . entity ( 'n-1' ) ) . to . eql ( new iD . osmNode ( { id : 'n-1' , loc : [ 1 , 2 ] } ) ) ;
458458 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Added a point.' ) ;
459459 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
460- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
460+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
461461 expect ( history . difference ( ) . created ( ) . length ) . to . eql ( 1 ) ;
462462 } ) ;
463463
@@ -479,7 +479,7 @@ describe('iD.coreHistory', function () {
479479 expect ( history . graph ( ) . entity ( 'n1' ) ) . to . eql ( new iD . osmNode ( { id : 'n1' , loc : [ 2 , 3 ] , v : 1 } ) ) ;
480480 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Moved a point.' ) ;
481481 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
482- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
482+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
483483 expect ( history . difference ( ) . modified ( ) . length ) . to . eql ( 1 ) ;
484484 } ) ;
485485
@@ -499,7 +499,7 @@ describe('iD.coreHistory', function () {
499499 expect ( history . graph ( ) . hasEntity ( 'n1' ) ) . to . be . undefined ;
500500 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Deleted a point.' ) ;
501501 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
502- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 1 , way : - 2 , relation : - 3 } ) ;
502+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 1 , way : - 2 , relation : - 3 } ) ;
503503 expect ( history . difference ( ) . deleted ( ) . length ) . to . eql ( 1 ) ;
504504 } ) ;
505505
@@ -521,7 +521,7 @@ describe('iD.coreHistory', function () {
521521 expect ( history . graph ( ) . entity ( 'n-1' ) ) . to . eql ( new iD . osmNode ( { id : 'n-1' , loc : [ 1 , 2 ] } ) ) ;
522522 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Added a point.' ) ;
523523 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
524- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
524+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
525525 expect ( history . difference ( ) . created ( ) . length ) . to . eql ( 1 ) ;
526526 } ) ;
527527
@@ -543,7 +543,7 @@ describe('iD.coreHistory', function () {
543543 expect ( history . graph ( ) . entity ( 'n1' ) ) . to . eql ( new iD . osmNode ( { id : 'n1' , loc : [ 2 , 3 ] , v : 1 } ) ) ;
544544 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Moved a point.' ) ;
545545 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
546- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
546+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 2 , way : - 1 , relation : - 1 } ) ;
547547 expect ( history . difference ( ) . modified ( ) . length ) . to . eql ( 1 ) ;
548548 } ) ;
549549
@@ -563,7 +563,7 @@ describe('iD.coreHistory', function () {
563563 expect ( history . graph ( ) . hasEntity ( 'n1' ) ) . to . be . undefined ;
564564 expect ( history . undoAnnotation ( ) ) . to . eql ( 'Deleted a point.' ) ;
565565 expect ( history . imageryUsed ( ) ) . to . eql ( [ 'Bing' ] ) ;
566- expect ( iD . osmEntity . id . next ) . to . eql ( { node : - 1 , way : - 2 , relation : - 3 } ) ;
566+ expect ( iD . osmIdManager . next ) . to . eql ( { node : - 1 , way : - 2 , relation : - 3 } ) ;
567567 expect ( history . difference ( ) . deleted ( ) . length ) . to . eql ( 1 ) ;
568568 } ) ;
569569 } ) ;
0 commit comments