1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/uconv/tests/test_bug335816.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=335816 1.8 +--> 1.9 +<head> 1.10 + <meta http-equiv="Content-type" content="text/html; charset=UTF-8"> 1.11 + <title>Test for Bug 335816</title> 1.12 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.14 +</head> 1.15 +<body onload="test()"> 1.16 +<pre id="test"> 1.17 +<script class="testbody" type="text/javascript"> 1.18 + 1.19 +/** Test for Bug 335816 **/ 1.20 +function test() 1.21 +{ 1.22 + ok($("display").innerHTML != "Keep that breathless charm", "Hidden script not executed"); 1.23 + SimpleTest.finish(); 1.24 +} 1.25 + 1.26 +function WontYouPleaseArrangeIt() 1.27 +{ 1.28 + $("display").innerHTML = "Keep that breathless charm"; 1.29 +} 1.30 + 1.31 +SimpleTest.waitForExplicitFinish(); 1.32 +</script> 1.33 +</pre> 1.34 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=335816">Mozilla Bug 335816</a> 1.35 +<p id="display">Lovely ... Never, ever change.</p> 1.36 + 1.37 +<!-- There is a UTF-8 BOM just here - - - 1.38 + | which should not be stripped 1.39 + v --> 1.40 +<div id="content" style="display: none"><script>WontYouPleaseArrangeIt();</script></div> 1.41 +</body> 1.42 +</html> 1.43 +