1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/base/test/test_urlutils_stringify.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 1.4 + 1.5 +<!DOCTYPE HTML> 1.6 +<html> 1.7 +<!-- 1.8 +https://bugzilla.mozilla.org/show_bug.cgi?id=959190 1.9 +--> 1.10 +<head> 1.11 + <meta charset="utf-8"> 1.12 + <title>Test for Bug 959190</title> 1.13 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.14 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.15 +</head> 1.16 +<body> 1.17 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=959190">Mozilla Bug 959190</a> 1.18 +<p id="display"></p> 1.19 +<div id="content" style="display: none"> 1.20 + <iframe name="x" id="x"></iframe> 1.21 + <iframe name="y" id="y"></iframe> 1.22 +</div> 1.23 +<pre id="test"> 1.24 +</pre> 1.25 + <a id="link" href="http://www.example.com:8080">foobar</a> 1.26 + <area id="area" href="http://www.example.com:8080" /> 1.27 + <script type="application/javascript"> 1.28 + 1.29 + var url = new URL('http://www.example.com:8080'); 1.30 + is(url + '', 'http://www.example.com:8080/', 'URL stringify'); 1.31 + 1.32 + var link = document.getElementById("link"); 1.33 + is(link + '', 'http://www.example.com:8080/', 'Anchor stringify'); 1.34 + 1.35 + var area = document.getElementById("area"); 1.36 + is(area + '', 'http://www.example.com:8080/', 'Area stringify'); 1.37 + 1.38 + is((location + '').indexOf('http://mochi.test:8888/tests/dom/base/test/test_urlutils_stringify.html'), 0, 'Location stringify'); 1.39 + </script> 1.40 +</body> 1.41 +</html>