Commit 13091736 authored by chrisgao@chromium.org's avatar chrisgao@chromium.org

Convert HTML5 notification pyauto tests to browser_tests.

BUG=none


Review URL: https://chromiumcodereview.appspot.com/11359174

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170623 0039d316-1c4b-4281-b951-d872f2087c98
parent 24906547
...@@ -26,23 +26,6 @@ function createNotification(iconUrl, title, text, replaceId) { ...@@ -26,23 +26,6 @@ function createNotification(iconUrl, title, text, replaceId) {
createNotificationHelper(note, replaceId, true); createNotificationHelper(note, replaceId, true);
} }
// Creates an HTML notification with a given content url.
// Returns an id for the notification, which can be used to cancel it with
// |cancelNotification|. If two notifications are created with the same
// replaceId, the second one should replace the first. If the notification
// cannot be created, this returns -1.
// If |waitForDisplay| is true, a response will not be sent until the
// notification is actually displayed.
function createHTMLNotification(contentUrl, replaceId, waitForDisplay) {
try {
var note = webkitNotifications.createHTMLNotification(contentUrl);
} catch (exception) {
sendResultToTest(-1);
return;
}
createNotificationHelper(note, replaceId, waitForDisplay);
}
// Cancels a notification with the given id. The notification must be showing, // Cancels a notification with the given id. The notification must be showing,
// as opposed to waiting to be shown in the display queue. // as opposed to waiting to be shown in the display queue.
// Returns '1' on success. // Returns '1' on success.
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
'media.media_basic_playback', 'media.media_basic_playback',
'multiprofile', 'multiprofile',
'nacl_sdk', 'nacl_sdk',
'notifications',
'ntp', 'ntp',
'omnibox', 'omnibox',
'passwords', 'passwords',
...@@ -99,10 +98,6 @@ ...@@ -99,10 +98,6 @@
# Mysteriously broken? # Mysteriously broken?
# crbug.com/138857 # crbug.com/138857
'-multiprofile.MultiprofileTest.testMakeSearchEngineDefaultInMultiprofile', '-multiprofile.MultiprofileTest.testMakeSearchEngineDefaultInMultiprofile',
# crbug.com/105560
'-notifications',
# crbug.com/99506
'-notifications.NotificationsTest.testSpecialURLNotification',
# crbug.com/143308 # crbug.com/143308
'-omnibox.OmniboxLiveTest.testGoogleSearch', '-omnibox.OmniboxLiveTest.testGoogleSearch',
# crbug.com/71715 # crbug.com/71715
...@@ -154,8 +149,8 @@ ...@@ -154,8 +149,8 @@
# -imports.ImportsTest.testFirefoxImportFromPrefs # -imports.ImportsTest.testFirefoxImportFromPrefs
# Disabled on vista in the actual test. crbug.com/89767 # Disabled on vista in the actual test. crbug.com/89767
# -imports.ImportsTest.testImportFirefoxPasswordsFromPrefs # -imports.ImportsTest.testImportFirefoxPasswordsFromPrefs
# crbug.com/95031 # crbug.com/125424
'-notifications.NotificationsTest.testOriginPrefsNotSavedInIncognito', '-media.media_basic_playback.MediaBasicPlaybackTest.testBasicPlaybackMatrix',
# crbug.com/117569 # crbug.com/117569
'-passwords.PasswordTest.testSavedPasswordInTabsAndWindows', '-passwords.PasswordTest.testSavedPasswordInTabsAndWindows',
# crbug.com/98526 # crbug.com/98526
...@@ -197,10 +192,6 @@ ...@@ -197,10 +192,6 @@
# crbug.com/121484 # crbug.com/121484
'-multiprofile.MultiprofileTest.test20NewProfiles', '-multiprofile.MultiprofileTest.test20NewProfiles',
'-ntp.NTPTest.testLaunchAppNewWindow', # crbug.com/79812 '-ntp.NTPTest.testLaunchAppNewWindow', # crbug.com/79812
# Causes browser crash. crbug.com/93548
'-notifications.NotificationsTest.testIncognitoNotification',
'-notifications.NotificationsTest.testOriginPrefsNotSavedInIncognito',
'-notifications.NotificationsTest.testNotificationOrderAfterClosingOne',
# crbug.com/70437 # crbug.com/70437
'-omnibox.OmniboxTest.testHistoryResult', '-omnibox.OmniboxTest.testHistoryResult',
# crbug.com/91617 # crbug.com/91617
...@@ -222,8 +213,6 @@ ...@@ -222,8 +213,6 @@
# =========================== # ===========================
# Permanently-disabled tests. # Permanently-disabled tests.
# =========================== # ===========================
# crbug.com/104206
'-notifications.NotificationsTest.testKillNotificationProcess',
# System password manager obstructs password automation. # System password manager obstructs password automation.
'-passwords', '-passwords',
...@@ -234,8 +223,6 @@ ...@@ -234,8 +223,6 @@
'-autofill.AutofillTest.testDisplayLineItemForEntriesWithNoCCNum', '-autofill.AutofillTest.testDisplayLineItemForEntriesWithNoCCNum',
# crbug.com/111289 # crbug.com/111289
'-extensions.ExtensionsTest.testAllowAccessFileURLs', '-extensions.ExtensionsTest.testAllowAccessFileURLs',
# crbug.com/66072
'-notifications.NotificationsTest.testNotificationOrderAfterClosingOne',
# crbug.com/91033 # crbug.com/91033
'-omnibox.OmniboxTest.testOmniboxSearchHistory', '-omnibox.OmniboxTest.testOmniboxSearchHistory',
# Gnome / kwallet popups on linux break sync tests. crbug.com/80329 # Gnome / kwallet popups on linux break sync tests. crbug.com/80329
...@@ -318,8 +305,6 @@ ...@@ -318,8 +305,6 @@
'-chromeos_wifi_sanity.ChromeosWifiSanity.testConnectToHiddenWiFiNonExistent', '-chromeos_wifi_sanity.ChromeosWifiSanity.testConnectToHiddenWiFiNonExistent',
# crosbug.com/20025 # crosbug.com/20025
'-chromeos_browser.ChromeosBrowserTest.testFullScreen', '-chromeos_browser.ChromeosBrowserTest.testFullScreen',
# crbug.com/102549
'-notifications.NotificationsTest.testOriginPrefsNotSavedInIncognito',
# Chrome driver does not work in Chrome OS. # Chrome driver does not work in Chrome OS.
# crosbug.com/19556 # crosbug.com/19556
'-prefs_ui', '-prefs_ui',
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment