Testcase for bug 468208 (Leak txNodeTest on http://ocp.acadiau.ca/).
This commit is contained in:
Родитель
be0b70e77f
Коммит
5ae5704c50
|
@ -47,6 +47,7 @@ include $(topsrcdir)/config/rules.mk
|
|||
_TEST_FILES = test_bug319374.xhtml \
|
||||
test_bug440974.html \
|
||||
test_bug427060.html \
|
||||
test_bug468208.html \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_TEST_FILES)
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=468208
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 468208</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=468208">Mozilla Bug 468208</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
/** Test for Bug 468208 **/
|
||||
|
||||
var xslt =
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:strip-space elements="color"/>
|
||||
</xsl:stylesheet>
|
||||
;
|
||||
var xsltdoc = new DOMParser().parseFromString(String(xslt), "text/xml");
|
||||
|
||||
var processor = new XSLTProcessor;
|
||||
processor.importStylesheet(xsltdoc);
|
||||
ok(true, "XSLT shouldn't leak");
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче