mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-25 01:31:37 +08:00
Don't require that the latitude and longitude matches be so strict.
This commit is contained in:
@@ -20,8 +20,8 @@ describe "ProMotion::TestMapScreen functionality" do
|
||||
|
||||
it "should have the map properly centered" do
|
||||
center_coordinate = @map.center
|
||||
center_coordinate.latitude.should == 35.090648651123
|
||||
center_coordinate.longitude.should == -82.965972900391
|
||||
center_coordinate.latitude.should.be.close 35.090648651123, 0.001
|
||||
center_coordinate.longitude.should.be.close -82.965972900391, 0.001
|
||||
end
|
||||
|
||||
it "should move the map center" do
|
||||
@@ -29,8 +29,8 @@ describe "ProMotion::TestMapScreen functionality" do
|
||||
|
||||
wait 0.75 do
|
||||
center_coordinate = @map.center
|
||||
center_coordinate.latitude.should == 35.07496
|
||||
center_coordinate.longitude.should == -82.95916
|
||||
center_coordinate.latitude.should.be.close 35.07496, 0.001
|
||||
center_coordinate.longitude.should.be.close -82.95916, 0.001
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ describe "ProMotion::TestWebScreen functionality" do
|
||||
end
|
||||
|
||||
it "should allow you to navigate to a website" do
|
||||
@webscreen.set_content(NSURL.URLWithString("http://www.google.com"))
|
||||
@webscreen.set_content(NSURL.URLWithString("https://www.google.com"))
|
||||
wait_for_change @webscreen, 'load_finished' do
|
||||
@webscreen.html.include?('<form action="/search"').should == true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user