Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
2 <!DOCTYPE HTML>
3 <html>
4 <!--
5 https://bugzilla.mozilla.org/show_bug.cgi?id=959190
6 -->
7 <head>
8 <meta charset="utf-8">
9 <title>Test for Bug 959190</title>
10 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
11 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
12 </head>
13 <body>
14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=959190">Mozilla Bug 959190</a>
15 <p id="display"></p>
16 <div id="content" style="display: none">
17 <iframe name="x" id="x"></iframe>
18 <iframe name="y" id="y"></iframe>
19 </div>
20 <pre id="test">
21 </pre>
22 <a id="link" href="http://www.example.com:8080">foobar</a>
23 <area id="area" href="http://www.example.com:8080" />
24 <script type="application/javascript">
26 var url = new URL('http://www.example.com:8080');
27 is(url + '', 'http://www.example.com:8080/', 'URL stringify');
29 var link = document.getElementById("link");
30 is(link + '', 'http://www.example.com:8080/', 'Anchor stringify');
32 var area = document.getElementById("area");
33 is(area + '', 'http://www.example.com:8080/', 'Area stringify');
35 is((location + '').indexOf('http://mochi.test:8888/tests/dom/base/test/test_urlutils_stringify.html'), 0, 'Location stringify');
36 </script>
37 </body>
38 </html>