4 https://bugzilla.mozilla.org/show_bug.cgi?id=446584
7 <title>Test for Bug
446584</title>
8 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
12 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=446584">Mozilla Bug
446584</a>
14 <div id=
"content" style=
"display: none">
18 <script class=
"testbody" type=
"text/javascript">
20 /** Test for Bug
446584 **/
24 document.createNodeIterator(document.body,
26 function() { throw val }).nextNode();
27 ok(false,
"NodeIterator::nextNode() should have thrown an exception.");
29 ok(val === ex,
"NodeIterator did not properly forward exception " +
30 val +
" of type " + typeof val +
". Thrown value was " + ex +
".");