Add test for bug 358660.
git-svn-id: svn://10.0.0.236/trunk@215345 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0dd16a9117
commit
3a1d1b8d06
@ -83,6 +83,7 @@ RunSet.runall = function() {
|
||||
'test_bug351601.html',
|
||||
'test_bug355026.html',
|
||||
'test_bug357509.html',
|
||||
'test_bug358660.html',
|
||||
'test_bug359657.html',
|
||||
'test_bug359754.xul',
|
||||
'test_MochiKit-Async.html',
|
||||
|
||||
38
mozilla/testing/mochitest/tests/test_bug358660.html
Normal file
38
mozilla/testing/mochitest/tests/test_bug358660.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=358660
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 358660</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" />
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=358660">Mozilla Bug 358660</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
<iframe id="testframe"
|
||||
src="data:text/html,<html><body>Some text</body></html>"></iframe>
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
/** Test for Bug 358660 **/
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
window.onload = function() {
|
||||
var doc = $("testframe").contentDocument;
|
||||
var range = doc.createRange();
|
||||
range.selectNode(doc.documentElement);
|
||||
is(range.toString(), "Some text", "Check text");
|
||||
|
||||
SimpleTest.finish()
|
||||
}
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user