Adding test for bug 617296. a=test-only

This commit is contained in:
Boris Zbarsky 2010-12-22 22:40:23 -05:00
parent 085fe10626
commit 16b5499a94
2 changed files with 29 additions and 0 deletions

View File

@ -132,6 +132,7 @@ _TEST_FILES = \
file_bug593174_1.html \
file_bug593174_2.html \
test_bug612267.html \
test_bug617296.html \
$(NULL)
libs:: $(_TEST_FILES)

View File

@ -0,0 +1,28 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=617296
-->
<head>
<title>Test for Bug 617296</title>
<script type="application/javascript" src="/MochiKit/packed.js"></script>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=617296">Mozilla Bug 617296</a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
/** Test for Bug 617296 **/
var URL = 5;
is(URL, 5, "window.URL should be replaceable");
</script>
</pre>
</body>
</html>