4 <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width" />
5 <title>Custom handlers</title>
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">
12 document.getElementById('test').innerHTML = 'PASSED';
13 document.body.style.backgroundColor = 'green';
14 hook(id, 'pass', 'content handler registered');
16 hook(id, 'fail', 'widget failed because ' + e.message);