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

Side by Side Diff: chrome/test/data/banners/appinstalled_test_page.html

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Minor refactor. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
dominickn 2016/10/12 22:35:09 Possibly dumb question: could you put the JS in he
Matt Giuca 2016/12/09 04:36:48 Test pages used in this test: the other pages for
2 <html>
3 <head>
4 <title>appinstalled event test page</title>
5 <script>
6 var eventCounter = 0;
7
8 function onAppInstalled() {
9 eventCounter++;
10 window.document.title = 'Got appinstalled ' + eventCounter
11 + ' times';
12 }
13
14 window.addEventListener('load', () => {
15 // Test both the addEventListener and onX attribute versions.
16 // When an app is installed, this should fire twice.
17 window.addEventListener('appinstalled', onAppInstalled);
18 window.onappinstalled = onAppInstalled;
19 });
20 </script>
21 </head>
22 <body>
23 </body>
24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698