|
Lines 56-62
test('navigator.geolocation.getCurrentPosition(-Infinity)', true, "TypeError: Ar
a/LayoutTests/fast/dom/Geolocation/argument-types.html_sec1
|
| 56 |
test('navigator.geolocation.getCurrentPosition("string")', true, "TypeError: Argument 1 ('successCallback') to Geolocation.getCurrentPosition must be a function"); |
56 |
test('navigator.geolocation.getCurrentPosition("string")', true, "TypeError: Argument 1 ('successCallback') to Geolocation.getCurrentPosition must be a function"); |
| 57 |
|
57 |
|
| 58 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined)', false); |
58 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined)', false); |
| 59 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, null)', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function"); |
59 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, null)', false); |
| 60 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, {})', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function"); |
60 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, {})', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function"); |
| 61 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException)', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function"); |
61 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, objectThrowingException)', true, "TypeError: Argument 2 ('errorCallback') to Geolocation.getCurrentPosition must be a function"); |
| 62 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, emptyFunction)', false); |
62 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, emptyFunction)', false); |
|
Lines 123-128
test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeou
a/LayoutTests/fast/dom/Geolocation/argument-types.html_sec2
|
| 123 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:-Infinity})', false); |
123 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:-Infinity})', false); |
| 124 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:"string"})', false); |
124 |
test('navigator.geolocation.getCurrentPosition(emptyFunction, undefined, {timeout:"string"})', false); |
| 125 |
|
125 |
|
|
|
126 |
test("navigator.geolocation.watchPosition(emptyFunction, null)", false); |
| 127 |
|
| 126 |
window.jsTestIsAsync = false; |
128 |
window.jsTestIsAsync = false; |
| 127 |
|
129 |
|
| 128 |
</script> |
130 |
</script> |