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

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

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Rebase. Created 4 years 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_manager.cc ('k') | chrome/test/data/banners/main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/banners/appinstalled_test_page.html
diff --git a/chrome/test/data/banners/appinstalled_test_page.html b/chrome/test/data/banners/appinstalled_test_page.html
new file mode 100644
index 0000000000000000000000000000000000000000..39345b5d5c2cb35db692c9dbdbf027e3134befd1
--- /dev/null
+++ b/chrome/test/data/banners/appinstalled_test_page.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>appinstalled event test page</title>
+ <script>
+ function onAppInstalled() {
+ window.document.title = 'Got appinstalled';
+ }
+
+ window.addEventListener('load', () => {
+ window.addEventListener('appinstalled', onAppInstalled);
+ });
+ </script>
+ </head>
+ <body>
+ </body>
+</html>
« no previous file with comments | « chrome/browser/banners/app_banner_manager.cc ('k') | chrome/test/data/banners/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698