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

Unified Diff: LayoutTests/http/tests/permissions/resources/test-query.js

Issue 804553003: Implement Permissions.query() and static PermissionStatus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/permissions/resources/test-query.js
diff --git a/LayoutTests/http/tests/permissions/resources/test-query.js b/LayoutTests/http/tests/permissions/resources/test-query.js
index 8ab2df9954c78c21d4415f6d21b1854e0f3c224a..c2eb850f89182eaa48402bd1fd325c266f021a0f 100644
--- a/LayoutTests/http/tests/permissions/resources/test-query.js
+++ b/LayoutTests/http/tests/permissions/resources/test-query.js
@@ -7,16 +7,17 @@ if (self.importScripts) {
importScripts('../../resources/testharness.js');
}
-async_test(function(test) {
- Permissions.query('geolocation').then(function() {
- assert_unreached('Permissions.query() should not succeed (for now).')
- }, function(e) {
- assert_true(e instanceof DOMException);
- assert_equals('NotSupportedError', e.name);
- }).then(function() {
- test.done();
- });
-}, 'Check the Permissions.query() normal behavior in ' + get_current_scope() + ' scope.');
+// FIXME: re-enable when WebPermissionClient is implemented in Chromium.
+//async_test(function(test) {
+// Permissions.query('geolocation').then(function() {
+// assert_unreached('Permissions.query() should not succeed (for now).')
+// }, function(e) {
+// assert_true(e instanceof DOMException);
+// assert_equals('NotSupportedError', e.name);
+// }).then(function() {
+// test.done();
+// });
+//}, 'Check the Permissions.query() normal behavior in ' + get_current_scope() + ' scope.');
async_test(function(test) {
Permissions.query('unknown-keyword').then(function() {
« no previous file with comments | « no previous file | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698