File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,11 @@ test('Test combining 2 ways 1->2', () => {
3434 expect ( result [ 0 ] . outerHTML ) . toBe ( way3 ) ;
3535} ) ;
3636
37- test ( 'Test combining 2 ways 2->1' , ( ) => {
38- var way2 = '<way id="1"><nd ref="1"/><nd ref="2"/><nd ref="3"/></way>' ;
39- var way1 = '<way id="2"><nd ref="3"/><nd ref="4"/><nd ref="1"/></way>' ;
40- var way3 = '<way id="2"><nd ref="3"/><nd ref="4"/><nd ref="1"/><nd ref="2"/><nd ref="3"/></way>' ;
37+ test ( 'Test combining 3 ways 2->1->3' , ( ) => {
38+ var way1 = '<way id="1"><nd ref="1"/><nd ref="2"/></way>' ;
39+ var way2 = '<way id="2"><nd ref="3"/><nd ref="1"/></way>' ;
40+ var way3 = '<way id="3"><nd ref="2"/><nd ref="3"/></way>' ;
41+ var way4 = '<way id="2"><nd ref="3"/><nd ref="1"/><nd ref="2"/><nd ref="3"/></way>' ;
4142 let parser = new window . DOMParser ( ) ;
4243 let xml1 = parser . parseFromString ( way1 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
4344 let xml2 = parser . parseFromString ( way2 , 'text/xml' ) . getElementsByTagName ( 'way' ) [ 0 ] ;
You can’t perform that action at this time.
0 commit comments