Bumping manifests a=b2g-bump
[gecko.git] / dom / xbl / test / test_bug1098628_throw_from_construct.xhtml
blobe5faea480039d8dc10a47b42de5093cc758eb51b
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <!--
3 https://bugzilla.mozilla.org/show_bug.cgi?id=1098628
4 -->
5 <head>
6 <title>Test for Bug 1098628</title>
7 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
8 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
9 <script class="testbody" type="text/javascript">
10 <![CDATA[
12 /** Test for Bug 1098628 **/
13 SimpleTest.waitForExplicitFinish();
14 SimpleTest.expectUncaughtException();
15 SimpleTest.monitorConsole(SimpleTest.finish, [{errorMessage: new RegExp('flimfniffle')}]);
16 addLoadEvent(function() {
17 SimpleTest.executeSoon(SimpleTest.endMonitorConsole);
18 });
19 ]]>
20 </script>
21 <bindings xmlns="http://www.mozilla.org/xbl">
22 <binding id="test">
23 <implementation>
24 <constructor><![CDATA[
25 throw "flimfniffle";
26 ]]></constructor>
27 </implementation>
28 </binding>
29 </bindings>
30 </head>
31 <body>
32 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1098628">Mozilla Bug 1098628</a>
33 <p id="display" style="-moz-binding: url(#test)"></p>
34 <div id="content" style="display: none">
36 </div>
37 <pre id="test">
38 </pre>
39 </body>
40 </html>