Move installer test suites to installer repository
[framework/web/wrt-installer.git] / tests / general / widgets / content_listener2 / test.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4   <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
5   <title>Custom handlers</title>
6 </head>
7 <body style="background-color:red;">
8     <h1 id="test">FAIL</h1>
9     <script type="text/javascript" src="hook.js"></script>
10     <script type="text/javascript">
11     try {
12         document.getElementById('test').innerHTML = 'PASSED';
13         document.body.style.backgroundColor = 'green';
14         hook(id, 'pass', 'content handler registered');
15     } catch (e) {
16         hook(id, 'fail', 'widget failed because ' + e.message);
17     }
18 </script>
19 </body>
20 </html>