Add ewk_view_fullscreen_exit to exit fullscreen mode
[framework/web/webkit-efl.git] / LayoutTests / inspector / geolocation-success.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script>
5
6 var mockLatitude = 51.478;
7 var mockLongitude = -0.166;
8 var mockAccuracy = 100;
9
10 if (window.testRunner) {
11     testRunner.setGeolocationPermission(true);
12     testRunner.setMockGeolocationPosition(mockLatitude,
13                                           mockLongitude,
14                                           mockAccuracy);
15 } else
16     debug('This test can not be run without the LayoutTestController');
17
18 function getGeolocation()
19 {
20     function printLocation(pos)
21     {
22         console.log('lat: ' + pos.coords.latitude + ', long: ' + pos.coords.longitude);
23     }
24     function printError(err)
25     {
26         console.log('Error: ' + err.code);
27     }
28     navigator.geolocation.getCurrentPosition(printLocation, printError, [])
29 }
30
31 function test()
32 {
33     function callbackComplete()
34     {
35         InspectorTest.completeTest();
36     }
37     function callback()
38     {
39         PageAgent.clearGeolocationOverride();
40         InspectorTest.evaluateInPage("getGeolocation()", callbackComplete);
41     }
42     PageAgent.setGeolocationOverride(43.476093, -80.540299, 150);
43     InspectorTest.evaluateInPage("getGeolocation()", callback);
44 }
45
46
47 </script>
48 </head>
49
50 <body onload="runTest()">
51 <p>
52 </p>
53
54 </body>
55 </html>