Bug 835219 - Add test coverage to check that the 'auto' value for the 'orient' attribute is preserved. r=longsonr.
authorJonathan Watt <jwatt@jwatt.org>
Wed, 30 Jan 2013 09:28:00 +0000
changeset 120363 220a6ba702cb3aa1b7a7d06c97430db03866a951
parent 120362 4207c7cf71a85454db9025469b08b4e6f021f4c0
child 120364 85ea275d77b91bf6e9081639ce92be0043e3ca9e
push id24251
push userryanvm@gmail.com
push dateThu, 31 Jan 2013 20:56:22 +0000
treeherdermozilla-central@683b08dc1afd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslongsonr
bugs835219
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 835219 - Add test coverage to check that the 'auto' value for the 'orient' attribute is preserved. r=longsonr.
content/svg/content/test/test_dataTypes.html
--- a/content/svg/content/test/test_dataTypes.html
+++ b/content/svg/content/test/test_dataTypes.html
@@ -162,16 +162,19 @@ function runTests()
   marker.setAttribute("orient", "45deg");
   is(baseAngle.value, 45, "angle baseVal");
   is(animAngle.value, 45, "angle animVal");
 
   marker.orientAngle.baseVal.value = 30;
   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");
   ok(marker.getAttribute("orient") === null, "removed angle attribute");
 
   // boolean attribute
 
   convolve.setAttribute("preserveAlpha", "false");