From fa9a12db6a635ffc8ba6f6acd6f44c20eb37a9ed Mon Sep 17 00:00:00 2001 From: Carlos Amengual Date: Thu, 10 Oct 2024 13:04:13 +0200 Subject: [PATCH] Tests: modify the enclosureList2 test so it can be run by Google Chrome See #30. --- samples/tests/spec/scripting/enclosureList2.svg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/tests/spec/scripting/enclosureList2.svg b/samples/tests/spec/scripting/enclosureList2.svg index 0bb4d9628..7cbc7b385 100644 --- a/samples/tests/spec/scripting/enclosureList2.svg +++ b/samples/tests/spec/scripting/enclosureList2.svg @@ -44,7 +44,7 @@ var root; var rect; function onLoad() { - root = document.getRootElement(); + root = document.rootElement; rect = root.createSVGRect(); doCheck("painted"); doCheck("fill"); @@ -70,7 +70,7 @@ var chkE = root.getElementById(base+"-chk"); var lst = svg.getEnclosureList(rect, null); - if ((lst.getLength() != 0) && (lst.item(0) == elem)) + if ((lst.length != 0) && (lst.item(0) == elem)) lstE.setAttribute("fill", "gold"); else lstE.setAttribute("fill", "crimson");