| OLD | NEW | 
|   1 description("Tests that when timeout is non-zero, the success callback is called
     as expected."); |   1 description("Tests that when timeout value is over maximum of unsigned, the succ
    ess callback is called as expected."); | 
|   2  |   2  | 
|   3 var mockLatitude = 51.478; |   3 var mockLatitude = 51.478; | 
|   4 var mockLongitude = -0.166; |   4 var mockLongitude = -0.166; | 
|   5 var mockAccuracy = 100.0; |   5 var mockAccuracy = 100.0; | 
|   6  |   6  | 
|   7 if (!window.testRunner || !window.internals) |   7 if (!window.testRunner || !window.internals) | 
|   8     debug('This test can not run without testRunner or internals'); |   8     debug('This test can not run without testRunner or internals'); | 
|   9  |   9  | 
|  10 internals.setGeolocationClientMock(document); |  10 internals.setGeolocationClientMock(document); | 
|  11 internals.setGeolocationPermission(document, true); |  11 internals.setGeolocationPermission(document, true); | 
|  12 internals.setGeolocationPosition(document, |  12 internals.setGeolocationPosition(document, | 
|  13                                  mockLatitude, |  13                                  mockLatitude, | 
|  14                                  mockLongitude, |  14                                  mockLongitude, | 
|  15                                  mockAccuracy); |  15                                  mockAccuracy); | 
|  16  |  16  | 
|  17 var position; |  17 var position; | 
|  18 navigator.geolocation.getCurrentPosition(function(p) { |  18 navigator.geolocation.getCurrentPosition(function(p) { | 
|  19     position = p; |  19     position = p; | 
|  20     shouldBe('position.coords.latitude', 'mockLatitude'); |  20     shouldBe('position.coords.latitude', 'mockLatitude'); | 
|  21     shouldBe('position.coords.longitude', 'mockLongitude'); |  21     shouldBe('position.coords.longitude', 'mockLongitude'); | 
|  22     shouldBe('position.coords.accuracy', 'mockAccuracy'); |  22     shouldBe('position.coords.accuracy', 'mockAccuracy'); | 
|  23     finishJSTest(); |  23     finishJSTest(); | 
|  24 }, function(e) { |  24 }, function(e) { | 
|  25     testFailed('Error callback invoked unexpectedly'); |  25     testFailed('Error callback invoked unexpectedly'); | 
|  26     finishJSTest(); |  26     finishJSTest(); | 
|  27 }, { |  27 }, { | 
|  28     timeout: 1000 |  28     timeout: 4294967296 | 
|  29 }); |  29 }); | 
|  30  |  30  | 
|  31 window.jsTestIsAsync = true; |  31 window.jsTestIsAsync = true; | 
| OLD | NEW |