Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <!--
3 https://bugzilla.mozilla.org/show_bug.cgi?id=466751
4 -->
5 <head>
6 <title>Test for Bug 466751</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 </head>
10 <body>
11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=466751">Mozilla Bug 466751</a>
12 <p id="display"></p>
13 <div id="content" style="display: none">
14 <div id="test" />
15 </div>
16 <pre id="test">
17 <script class="testbody" type="text/javascript"><![CDATA[
19 /** Test for Bug 466751 **/
21 var el = $("test");
22 var name, message;
24 try {
25 el.innerHTML = '<div ">bla</div>';
26 } catch (ex) {
27 name = ex.name;
28 message = ex.message;
29 }
31 const NS_ERROR_DOM_SYNTAX_ERR = 0x8053000C;
32 ok(/An invalid or illegal string was specified/.test(message), "threw SyntaxError message");
33 is(name, "SyntaxError", "threw SyntaxError");
35 ]]>
36 </script>
37 </pre>
38 </body>
39 </html>