1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/test_bug355026.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +Test from Adam Guthrie. 1.8 + 1.9 +https://bugzilla.mozilla.org/show_bug.cgi?id=355026 1.10 +--> 1.11 +<head> 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 + 1.16 +<body> 1.17 +<a href="https://bugzilla.mozilla.org/show_bug.cgi?id=355026">Mozilla Bug 355026</a> 1.18 +<div style="display: none" id="lengthtest"> 1.19 +</div> 1.20 +<pre id="test"> 1.21 +<script type="text/javascript"> 1.22 + 1.23 + var foo = document.createElement("div"); 1.24 + foo.appendChild(document.createElement("div")); 1.25 + var children = foo.getElementsByTagName("div"); 1.26 + 1.27 + is(children.length, 1, "After appending a child div to a div, div.length should be 1."); 1.28 + 1.29 +</script> 1.30 +</pre> 1.31 +</body> 1.32 +</html>