зеркало из https://github.com/mozilla/pjs.git
add tests for bug 24958
This commit is contained in:
Родитель
6dbe580e02
Коммит
e32e909f07
|
@ -56,7 +56,7 @@ RunSet.runall = function() {
|
|||
'test_bug2082.html',
|
||||
'test_bug3348.html',
|
||||
'test_bug5141.html',
|
||||
'test_bug24598.html',
|
||||
'test_bug24958.html',
|
||||
'test_bug51034.html',
|
||||
'test_bug100533.html',
|
||||
'test_bug218277.html',
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=24958
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 24958</title>
|
||||
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
||||
<SCRIPT id="foo" TYPE="text/javascript">/*This space intentionally left blank*/</SCRIPT>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=24958">Mozilla Bug 24958</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
/** Test for Bug 24958 **/
|
||||
ok($("foo").text, "\/*This space intentionally left blank*\/", "HTMLScriptElement.text should return text")
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
Загрузка…
Ссылка в новой задаче