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

Unified Diff: chrome/test/functional/notifications.py

Issue 6823076: Fix functional tests notifications.NotificationsTest(s) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 8 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 | « chrome/browser/content_settings/content_settings_pref_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/notifications.py
diff --git a/chrome/test/functional/notifications.py b/chrome/test/functional/notifications.py
index b15fbb214591912eb53cf54e23f82865b69bc306..b267388ce059ad6fa55a405cd06c4550448a0ad0 100644
--- a/chrome/test/functional/notifications.py
+++ b/chrome/test/functional/notifications.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-# Copyright (c) 2010 The Chromium Authors. All rights reserved.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -36,19 +36,20 @@ class NotificationsTest(pyauto.PyUITest):
import pprint
pp = pprint.PrettyPrinter(indent=2)
pp.pprint(self.GetActiveNotifications())
+ pp.pprint(self._GetDefaultPermissionSetting())
def _SetDefaultPermissionSetting(self, setting):
"""Sets the default setting for whether sites are allowed to create
notifications.
"""
- self.SetPrefs(pyauto.kDesktopNotificationDefaultContentSetting, setting)
+ self.SetPrefs(pyauto.kDefaultContentSettings, {u'notifications': setting})
def _GetDefaultPermissionSetting(self):
"""Gets the default setting for whether sites are allowed to create
notifications.
"""
return self.GetPrefsInfo().Prefs(
- pyauto.kDesktopNotificationDefaultContentSetting)
+ pyauto.kDefaultContentSettings)[u'notifications']
def _GetDeniedOrigins(self):
"""Gets the list of origins that are explicitly denied to create
« no previous file with comments | « chrome/browser/content_settings/content_settings_pref_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698