Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: LayoutTests/fast/dom/Geolocation/script-tests/timeout-over-max-of-unisgned.js

Issue 285673002: Change value type of timeout and maximumAge in PositionOptions (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 than maximum of unsigned, the success callback is called as expected.");
Michael van Ouwerkerk 2014/05/15 11:01:47 s/over than/over/
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698