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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-redirect-loop.html

Issue 1910723003: Add layout tests for notification icon with redirect loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@NotificationTestsUsePromises
Patch Set: Rebase. Created 4 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 | « no previous file | third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-redirect-loop.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-redirect-loop.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-404.html b/third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-redirect-loop.html
similarity index 76%
copy from third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-404.html
copy to third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-redirect-loop.html
index 07f16fdb930f544ca38c5fdcec42637670aedd32..4f9fc1b14afb533005cd68e3c42d084a7e47aa7c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-404.html
+++ b/third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-document-image-redirect-loop.html
@@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
- <title>Notifications: Showing a notification with an image that 404s.</title>
+ <title>Notifications: Showing a notification with an image that has a redirect loop still succeeds.</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script src="../serviceworker/resources/test-helpers.js"></script>
@@ -9,8 +9,7 @@
</head>
<body>
<script>
- // Tests that showing a notification with an image that creates a 404 response
- // works properly, and does not block the actual display of it.
+ // Tests that showing a notification with an image that has a redirect loop still succeeds.
async_test(function(test) {
var scope = 'resources/scope/' + location.pathname,
@@ -18,16 +17,16 @@
testRunner.setPermission('notifications', 'granted', location.origin, location.origin);
getActiveServiceWorkerWithMessagePort(test, script, scope).then(function(info) {
- // (1) Display a Web Notification with an image that 404s.
+ // (1) Display a Web Notification with an image that redirects.
return info.registration.showNotification(scope, {
body: 'Hello, world!',
- icon: '/resources/404image.php'
+ icon: '/resources/redirectloop.php'
});
}).then(function() {
test.done();
}).catch(unreached_rejection(test));
- }, 'Displaying a notification with an image that 404s still resolves the promise.');
+ }, 'Showing a notification with an image that has a redirect loop still succeeds.');
</script>
</body>
</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/notifications/serviceworkerregistration-service-worker-image-redirect-loop.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698