Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src="../../resources/testharness.js"></script> | |
| 3 <script src="../../resources/testharnessreport.js"></script> | |
| 4 <svg width="1" height="1" visibility="hidden"> | |
| 5 </svg> | |
| 6 <script> | |
| 7 test(function() { | |
| 8 var svgElement = document.querySelector("svg"); | |
| 9 svgElement.setAttribute("width", "10em"); | |
| 10 assert_equals(svgElement.width.baseVal.unitType, SVGLength.SVG_LENGTHTYPE_EM S); | |
| 11 svgElement.width.baseVal.value = 100; | |
| 12 assert_equals(svgElement.width.baseVal.value, 100); | |
| 13 assert_equals(svgElement.width.baseVal.unitType, SVGLength.SVG_LENGTHTYPE_NU MBER); | |
| 14 }, "Tests setValue interface"); | |
|
fs
2016/07/01 09:08:05
"setValue interface" => "SVGLength.value setter"
Shanmuga Pandi
2016/07/01 10:27:13
Done.
| |
| 15 </script> | |
| OLD | NEW |