Bug 1885602 - Part 5: Implement navigating to the SUMO help topic from the menu heade...
[gecko.git] / dom / bindings / test / test_ByteString.html
blobc4285228e9525dc9ee8122d396a7f5951f269260
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=796850
5 -->
6 <head>
7 <meta charset="utf-8">
8 <title>Test for ByteString support</title>
9 <script src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=796850">Mozilla Bug 796850</a>
14 <p id="display"></p>
15 <pre id="test">
16 <script type="application/javascript">
18 /** Test for Bug 796850 **/
19 var xhr = new XMLHttpRequest();
20 var caught = false;
21 try {
22 xhr.open("\u5427", "about:mozilla", true);
23 } catch (TypeError) {
24 caught = true;
26 ok(caught, "Character values > 255 not rejected for ByteString");
28 </script>
29 </pre>
30 </body>
31 </html>