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

Unified Diff: LayoutTests/http/tests/permissions/chromium/resources/test-change-event.js

Issue 1194963002: Add PermissionStatus.state and deprecate PermissionStatus.status. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use DeprecateAs Created 5 years, 6 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 | LayoutTests/http/tests/permissions/test-midi-sysex-insecure-origin.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/permissions/chromium/resources/test-change-event.js
diff --git a/LayoutTests/http/tests/permissions/chromium/resources/test-change-event.js b/LayoutTests/http/tests/permissions/chromium/resources/test-change-event.js
index ff742eebb47a49025003776f6ec3277146b75bb4..b6f027ac03a673b84c8dbb8d293799687dfd354e 100644
--- a/LayoutTests/http/tests/permissions/chromium/resources/test-change-event.js
+++ b/LayoutTests/http/tests/permissions/chromium/resources/test-change-event.js
@@ -11,10 +11,10 @@ if (self.importScripts) {
async_test(function(t) {
setPermission('geolocation', 'granted', location.origin, location.origin).then(t.step_func(function() {
navigator.permissions.query({name:'geolocation'}).then(t.step_func(function(p) {
- assert_equals(p.status, 'granted');
+ assert_equals(p.state, 'granted');
p.onchange = t.step_func(function() {
- assert_equals(p.status, 'denied');
+ assert_equals(p.state, 'denied');
p.onchange = t.step_func(function() {
assert_unreached('the permission should not change again.');
@@ -25,7 +25,7 @@ async_test(function(t) {
setPermission('geolocation', 'prompt', location.origin, 'https://example.com');
navigator.permissions.query({name:'geolocation'}).then(t.step_func(function(p) {
- assert_equals(p.status, 'denied');
+ assert_equals(p.state, 'denied');
t.done();
}));
});
« no previous file with comments | « no previous file | LayoutTests/http/tests/permissions/test-midi-sysex-insecure-origin.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698