| Index: LayoutTests/svg/animations/smil-leak-elements.svg
|
| diff --git a/LayoutTests/svg/animations/smil-leak-elements.svg b/LayoutTests/svg/animations/smil-leak-elements.svg
|
| index 040aec71988d15e416f77ab70b76908755890be6..f44736184263cbdad4d8073499656df0ebf12364 100644
|
| --- a/LayoutTests/svg/animations/smil-leak-elements.svg
|
| +++ b/LayoutTests/svg/animations/smil-leak-elements.svg
|
| @@ -1,6 +1,7 @@
|
| -<svg id="svg" xmlns="http://www.w3.org/2000/svg" onload="load()">
|
| +<svg id="svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onload="load()">
|
| <g id="g"/>
|
| <text x="50" y="50" id="log"/>
|
| +<script xlink:href="../../resources/js-test.js"></script>
|
| <script id="script">
|
| <![CDATA[
|
|
|
| @@ -32,21 +33,20 @@ function createAnimatedRect() {
|
|
|
| function cleanup() {
|
| // Collect garbage before recording starting live node count, in case there are live elements from previous tests.
|
| - GCController.collectAll();
|
| - var originalLiveElements = internals.numberOfLiveNodes();
|
| + collectGarbage(function() {
|
| + var originalLiveElements = internals.numberOfLiveNodes();
|
|
|
| - while (g.hasChildNodes())
|
| - g.removeChild(g.lastChild);
|
| -
|
| - GCController.collectAll();
|
| -
|
| - var liveDelta = originalLiveElements - internals.numberOfLiveNodes() - 200;
|
| - if (liveDelta == 0)
|
| - log("PASS");
|
| - else
|
| - log("FAIL: " + liveDelta + " extra live node(s)");
|
| -
|
| - testRunner.notifyDone();
|
| + while (g.hasChildNodes())
|
| + g.removeChild(g.lastChild);
|
| + collectGarbage(function() {
|
| + var liveDelta = originalLiveElements - internals.numberOfLiveNodes() - 200;
|
| + if (liveDelta == 0)
|
| + log("PASS");
|
| + else
|
| + log("FAIL: " + liveDelta + " extra live node(s)");
|
| + testRunner.notifyDone();
|
| + });
|
| + });
|
| }
|
|
|
| function startTest() {
|
|
|