2 <title>Test for Bug
876831</title>
3 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
4 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css">
6 <a target=
"_blank" href=
"https://bugzilla.mozilla.org/show_bug.cgi?id=876831">Mozilla Bug
876831</a>
10 Test that the frame tree will be reflowed after a DOM mutation
11 and just before an SVG DOM method does its work.
19 <script class=
"testbody" type=
"application/javascript">
20 var text = document.querySelector(
"text");
22 var length = text.getComputedTextLength();
23 ok(length
> 0,
"text.getComputedTextLength() > 0");
25 text.firstChild.nodeValue +=
"cd";
26 ok(text.getComputedTextLength()
> length,
"text.getComputedTextLength() changes directly after DOM mutation");
28 text.firstChild.remove();
29 is(text.getComputedTextLength(),
0,
"text.getComputedTextLength() == 0 after removing child");