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

Side by Side Diff: LayoutTests/geofencing/geofencing-not-implemented.html

Issue 464073002: Pass through geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix test expectations Created 6 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/webexposed/global-constructors-listing-dedicated-worker-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("Tests that all geofencing methods always reject."); 8 description("Tests that all geofencing methods always reject.");
9 9
10 function shouldReject(promise) 10 function shouldReject(promise)
11 { 11 {
12 promise.then( 12 promise.then(
13 function() { testFailed("Promise unexpectedly resolved."); }, 13 function() { testFailed("Promise unexpectedly resolved."); },
14 function() { testPassed("Promise rejected as expected."); }); 14 function() { testPassed("Promise rejected as expected."); });
15 } 15 }
16 16
17 shouldReject(navigator.geofencing.registerRegion(new CircularRegion({latitude: 3 7.421999, longitude: -122.084015}))); 17 shouldReject(navigator.geofencing.registerRegion(new CircularGeofencingRegion({l atitude: 37.421999, longitude: -122.084015})));
18 shouldReject(navigator.geofencing.unregisterRegion("")); 18 shouldReject(navigator.geofencing.unregisterRegion(""));
19 shouldReject(navigator.geofencing.getRegisteredRegions()); 19 shouldReject(navigator.geofencing.getRegisteredRegions());
20 </script> 20 </script>
21 </body> 21 </body>
22 </html> 22 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/webexposed/global-constructors-listing-dedicated-worker-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698