layout/base/tests/test_bug404209.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/test_bug404209.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,46 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.5 +<!--
     1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=404209
     1.7 +-->
     1.8 +<head>
     1.9 +  <title>Test for Bug 404209</title>
    1.10 +  <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>        
    1.11 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    1.12 +  <style type="text/css">
    1.13 +   div::first-letter { color: green; }
    1.14 +  </style>
    1.15 +</head>
    1.16 +<body>
    1.17 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=404209">Mozilla Bug 404209</a>
    1.18 +<table id="table" dir="rtl"><div><span id="v"><span><tfoot></tfoot>abcd</span></span></div></table>
    1.19 +<pre id="test">
    1.20 +<script class="testbody" type="text/javascript">
    1.21 +function boom1()
    1.22 +{
    1.23 +  document.getElementById("table").style.borderRight = "1px solid magenta";
    1.24 +  setTimeout(boom2, 400);
    1.25 +}
    1.26 +
    1.27 +function boom2()
    1.28 +{
    1.29 +  var v = document.getElementById("v"); 
    1.30 +  var newTD = document.createElementNS("http://www.w3.org/1999/xhtml", "td");
    1.31 +  newTD.setAttribute("width", "13%");
    1.32 +  v.insertBefore(newTD, v.firstChild);
    1.33 +  setTimeout(lastTest, 400);
    1.34 +}
    1.35 +
    1.36 +function lastTest()
    1.37 +{
    1.38 +/** Test for Bug 404209 **/
    1.39 +  ok(true, "Should not crash");
    1.40 +  SimpleTest.finish();
    1.41 +}
    1.42 +
    1.43 +  setTimeout(boom1, 400);
    1.44 +  SimpleTest.waitForExplicitFinish();
    1.45 +</script>
    1.46 +</pre>
    1.47 +</body>
    1.48 +</html>
    1.49 +

mercurial