From 7d001fe8525b2bd9ba42df05b6c8d7eb669c4e7d Mon Sep 17 00:00:00 2001 From: Robert Longson Date: Fri, 30 Jan 2009 13:06:26 +0000 Subject: [PATCH] Bug 471165 - add missing test --- content/svg/content/test/test_dataTypes.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/content/svg/content/test/test_dataTypes.html b/content/svg/content/test/test_dataTypes.html index 3c8056095af..5469c914cf6 100644 --- a/content/svg/content/test/test_dataTypes.html +++ b/content/svg/content/test/test_dataTypes.html @@ -27,6 +27,20 @@ function runTests() var convolve = doc.getElementById("convolve"); var marker = doc.getElementById("marker"); + // class attribute + filter.setAttribute("class", "foo"); + is(filter.getAttribute("class"), "foo", "class attribute"); + is(filter.className.baseVal, "foo", "className baseVal"); + is(filter.className.animVal, "foo", "className animVal"); + filter.className.baseVal = "bar"; + is(filter.getAttribute("class"), "bar", "class attribute"); + is(filter.className.baseVal, "bar", "className baseVal"); + is(filter.className.animVal, "bar", "className animVal"); + filter.removeAttribute("class"); + is(filter.hasAttribute("class"), false, "class attribute"); + is(filter.className.baseVal, "", "className baseVal"); + is(filter.className.animVal, "", "className animVal"); + // length attribute marker.setAttribute("markerWidth", "12.5");