File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ test('Test joining 2 ways', () => {
5050test ( 'Test combining 2 ways 1->2' , ( ) => {
5151 var way1 = '<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/></way>' ;
5252 var way2 = '<way id="2"><nd ref="3"/><nd ref="4"/><nd ref="1"/></way>' ;
53- var way3 = '<way id="2 "><nd ref="3 "/><nd ref="4 "/><nd ref="1 "/><nd ref="2 "/><nd ref="3 "/></way>' ;
53+ var way3 = '<way id="1 "><nd ref="1 "/><nd ref="2 "/><nd ref="3 "/><nd ref="4 "/><nd ref="1 "/></way>' ;
5454 let parser = new window . DOMParser ( ) ;
5555 let xml1 = parser . parseFromString ( way1 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
5656 let xml2 = parser . parseFromString ( way2 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
@@ -63,7 +63,7 @@ test('Test combining 2 ways 1->2', () => {
6363test ( 'Test combining 2 ways 2->1' , ( ) => {
6464 var way2 = '<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/></way>' ;
6565 var way1 = '<way id="2"><nd ref="3"/><nd ref="4"/><nd ref="1"/></way>' ;
66- var way3 = '<way id="1 "><nd ref="1 "/><nd ref="2 "/><nd ref="3 "/><nd ref="4 "/><nd ref="1 "/></way>' ;
66+ var way3 = '<way id="2 "><nd ref="3 "/><nd ref="4 "/><nd ref="1 "/><nd ref="2 "/><nd ref="3 "/></way>' ;
6767 let parser = new window . DOMParser ( ) ;
6868 let xml1 = parser . parseFromString ( way1 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
6969 let xml2 = parser . parseFromString ( way2 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
You can’t perform that action at this time.
0 commit comments