OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <title>SVGLinearGradientElement coordinate defaults</title> |
| 3 <script src=../../resources/testharness.js></script> |
| 4 <script src=../../resources/testharnessreport.js></script> |
| 5 <svg> |
| 6 <linearGradient id="lg"/> |
| 7 </svg> |
| 8 <script> |
| 9 function testLengthValue(result, expected, testcase) { |
| 10 test(function() { |
| 11 assert_equals(result, expected); |
| 12 }, "Testing " + document.title + " " + testcase); |
| 13 } |
| 14 |
| 15 var linearGradient = document.querySelector("#lg"); |
| 16 testLengthValue(linearGradient.x1.baseVal.valueAsString, "0%", "x1"); |
| 17 testLengthValue(linearGradient.x2.baseVal.valueAsString, "100%", "x2"); |
| 18 testLengthValue(linearGradient.y1.baseVal.valueAsString, "0%", "y1"); |
| 19 testLengthValue(linearGradient.y2.baseVal.valueAsString, "0%", "y2"); |
| 20 </script> |
OLD | NEW |