Bug 1942639 - Propagate --filter argument from desktop_unittest.py to runreftest...
[gecko.git] / dom / xslt / tests / mochitest / test_bug1072116.html
blobd69b5812b2b9f1b7df6d264c24f9b85d0d19ace3
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1072116
5 -->
6 <head>
7 <title>Test for Bug 1072116</title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1072116">Mozilla Bug 1072116</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
20 /** Test for Bug 1072116 **/
21 var attr = document.createAttribute("c");
23 var xpathExpr = document.createExpression('a', null);
25 let isAlive = false;
26 try {
27 xpathExpr.evaluate(attr, null, null, null, null);
28 } catch(e) {
29 isAlive = true;
32 ok(isAlive, "Still alive \\o/");
34 </script>
35 </pre>
36 </body>
37 </html>