Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
| index e210885375af241d5e98c1b907e66c3611f97785..07e8b5b9c6a8b5839aaae671431aa9608faf1d25 100644 |
| --- a/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
| +++ b/third_party/WebKit/LayoutTests/http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html |
| @@ -50,7 +50,10 @@ if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) { |
| async_test(function() { |
| navigator.geolocation.getCurrentPosition( |
| this.unreached_func('getCurrentPosition should fail, but succeeded.'), |
| - this.step_func_done()); |
| + this.step_func(function(error) { |
|
Mike West
2016/02/01 06:34:12
This can still be step_func_done, and that will au
jww
2016/02/01 23:28:57
Ah, I had no idea that you could pass a function t
|
| + assert_equals(error.code, error.PERMISSION_DENIED); |
| + this.done(); |
|
Mike West
2016/02/01 06:34:12
Which means you can drop this line.
jww
2016/02/01 23:28:56
Done.
|
| + })); |
| }, 'getCurrentPosition'); |
| // Note that the deprecation message for watchPosition() will be suppressed |
| @@ -59,7 +62,10 @@ if (window.location.origin != get_host_info().UNAUTHENTICATED_ORIGIN) { |
| async_test(function() { |
| navigator.geolocation.watchPosition( |
| this.unreached_func('watchPosition should fail, but succeeded.'), |
| - this.step_func_done()); |
| + this.step_func(function(error) { |
|
Mike West
2016/02/01 06:34:12
Ditto.
jww
2016/02/01 23:28:56
Done.
|
| + assert_equals(error.code, error.PERMISSION_DENIED); |
| + this.done(); |
| + })); |
| }, 'watchPosition'); |
| async_test(function() { |