Skip to content

Commit

Permalink
reference fixes for geo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed May 8, 2012
1 parent 3b0be3d commit c420add
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autotest/tests/geolocation.tests.js
Expand Up @@ -19,9 +19,9 @@ describe('Geolocation (navigator.geolocation)', function () {
});

it("getCurrentPosition success callback should be called with a Position object", function() {
var win = jasmine.createSpy().andCallFake(function(a) {
expect(p.coords).not.toBe(null);
expect(p.timestamp).not.toBe(null);
var win = jasmine.createSpy().andCallFake(function(p) {
expect(p.coords).toBeDefined();
expect(p.timestamp).toBeDefined();
}),
fail = jasmine.createSpy();

Expand All @@ -39,7 +39,7 @@ describe('Geolocation (navigator.geolocation)', function () {
});

it("getCurrentPosition success callback should be called with a cached Position", function() {
var win = jasmine.createSpy().andCallFake(function(a) {
var win = jasmine.createSpy().andCallFake(function(p) {
expect(p.coords instanceof Position).toBe(true);
}),
fail = jasmine.createSpy();
Expand Down

0 comments on commit c420add

Please sign in to comment.