| 59 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-35.15625,-35.15625,35.15625,35.15625", "bounds"); |
|---|
| 60 | | t.eq(handler.feature.geometry.components[0].components.length, 5, "geometry has 5 components"); |
|---|
| 61 | | t.eq(handler.feature.geometry.CLASS_NAME, "OpenLayers.Geometry.Polygon", "geometry is a polygon"); |
|---|
| | 59 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 60 | "-35.15625,-35.15625,35.15625,35.15625", |
|---|
| | 61 | "correct bounds after move"); |
|---|
| | 62 | t.eq(handler.feature.geometry.components[0].components.length, 5, |
|---|
| | 63 | "geometry has 5 components"); |
|---|
| | 64 | t.eq(handler.feature.geometry.CLASS_NAME, |
|---|
| | 65 | "OpenLayers.Geometry.Polygon", |
|---|
| | 66 | "geometry is a polygon"); |
|---|
| 65 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-35.15625,-35.15625,35.15625,35.15625", "bounds"); |
|---|
| | 70 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 71 | "-35.15625,-35.15625,35.15625,35.15625", |
|---|
| | 72 | "correct bounds after move with a fixed radius"); |
|---|
| 71 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-1,-1,1,1", "bounds with manual radius setting"); |
|---|
| 72 | | var evt = {xy: new OpenLayers.Pixel(175, 80), which: 1}; |
|---|
| | 78 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 79 | "-1,-1,1,1", |
|---|
| | 80 | "bounds with manual radius setting"); |
|---|
| | 81 | var evt = {xy: new OpenLayers.Pixel(175, 90), which: 1}; |
|---|
| 74 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-1,-1,1,1", "bounds with manual radius setting and mousemove"); |
|---|
| 75 | | } |
|---|
| | 83 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 84 | "34.15625,-22.09375,36.15625,-20.09375", |
|---|
| | 85 | "bounds with manual radius setting and mousemove"); |
|---|
| | 86 | } |
|---|
| | 87 | |
|---|
| 89 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-35.15625,-35.15625,35.15625,35.15625", "bounds"); |
|---|
| 90 | | t.eq(handler.feature.geometry.components[0].components.length, 41, "geometry has correct numbre of components"); |
|---|
| 91 | | t.eq(handler.feature.geometry.CLASS_NAME, "OpenLayers.Geometry.Polygon", "geometry is a polygon"); |
|---|
| | 101 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 102 | "-35.15625,-35.15625,35.15625,35.15625", |
|---|
| | 103 | "correct bounds after move"); |
|---|
| | 104 | t.eq(handler.feature.geometry.components[0].components.length, 41, |
|---|
| | 105 | "geometry has correct numbre of components"); |
|---|
| | 106 | t.eq(handler.feature.geometry.CLASS_NAME, |
|---|
| | 107 | "OpenLayers.Geometry.Polygon", |
|---|
| | 108 | "geometry is a polygon"); |
|---|
| 95 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-35.15625,-35.15625,35.15625,35.15625", "bounds"); |
|---|
| | 112 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 113 | "-35.823348,-35.823348,35.823348,35.823348", |
|---|
| | 114 | "correct bounds after move with fixed radius"); |
|---|
| 101 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-0.996917,-0.996917,0.996917,0.996917", "bounds with manual radius setting"); |
|---|
| | 120 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 121 | "-0.996917,-0.996917,0.996917,0.996917", |
|---|
| | 122 | "bounds with manual radius setting"); |
|---|
| 104 | | t.eq(handler.feature.geometry.getBounds().toBBOX(), "-0.996917,-0.996917,0.996917,0.996917", "bounds with manual radius setting and mousemove"); |
|---|
| | 125 | t.eq(handler.feature.geometry.getBounds().toBBOX(), |
|---|
| | 126 | "34.159333,-8.028167,36.153167,-6.034333", |
|---|
| | 127 | "bounds with manual radius setting and mousemove"); |
|---|