Bug 835219 - Add test coverage to check that the 'auto' value for the 'orient' attribute is preserved. r=longsonr.

This commit is contained in:
Jonathan Watt 2013-01-30 09:28:00 +00:00
parent 0f336d98d0
commit 60a029bf73

View File

@ -167,6 +167,9 @@ function runTests()
is(marker.orientAngle.animVal.value, 30, "angle animVal");
is(marker.getAttribute("orient"), "30deg", "angle attribute");
marker.setAttribute("orient", "auto");
is(marker.getAttribute("orient"), "auto", "checking 'auto' string preserved");
marker.setAttribute("orient", "");
ok(marker.getAttribute("orient") === "", "empty angle attribute");
marker.removeAttribute("orient");