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

Unified Diff: chrome/test/data/banners/cancel_test_page.html

Issue 1017883002: [App banners] Add browser test for canceling banners (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renaming variable 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 | « chrome/browser/banners/app_banner_data_fetcher_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/banners/cancel_test_page.html
diff --git a/chrome/test/data/banners/cancel_test_page.html b/chrome/test/data/banners/cancel_test_page.html
new file mode 100644
index 0000000000000000000000000000000000000000..c02a5038fe7d3a473aa4a37fe5a56cbd43de6ce6
--- /dev/null
+++ b/chrome/test/data/banners/cancel_test_page.html
@@ -0,0 +1,14 @@
+<html>
+ <head>
+ <title>Web app banner test page</title>
+ <link rel="manifest" href="manifest.json" />
+ <script src="main.js"></script>
+ <script>
+ window.addEventListener('beforeinstallprompt', function(e) {
+ console.log('Preventing banner from appearing');
+ e.preventDefault();
+ });
+ </script>
+ </head>
+ <body onload="initialize()">Cancels the banner.</body>
+</html>
« no previous file with comments | « chrome/browser/banners/app_banner_data_fetcher_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698