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"> | |
|
fs
2016/02/19 10:33:13
Specifying 'visibility' here is pretty unnecessary
Shanmuga Pandi
2016/02/22 06:45:07
Acknowledged.
| |
| 5 <marker markerWidth="1" markerHeight="1"> | |
|
fs
2016/02/19 10:33:13
None of this should be needed - and it's probably
Shanmuga Pandi
2016/02/22 06:45:07
Done.
| |
| 6 </marker> | |
| 7 </svg> | |
| 8 <script> | |
| 9 var svgElement = document.querySelector("svg"); | |
| 10 var markerElement = document.querySelector("marker"); | |
| 11 | |
| 12 test(function() { | |
| 13 markerElement.setAttribute("orient", "1"); | |
| 14 assert_equals(markerElement.getAttribute("orient"), "1"); | |
| 15 }, "Tests with setAttribute"); | |
|
fs
2016/02/19 10:33:12
This test seems pretty redundant in the context of
Shanmuga Pandi
2016/02/22 06:45:07
Acknowledged.
| |
| 16 | |
| 17 test(function() { | |
| 18 var svgAngle = svgElement.createSVGAngle(); | |
| 19 svgAngle.value = 10; | |
| 20 markerElement.setOrientToAngle(svgAngle); | |
|
fs
2016/02/19 10:33:13
These tests are dependent on the result of the pre
Shanmuga Pandi
2016/02/22 06:45:07
Done.
| |
| 21 assert_equals(markerElement.getAttribute("orient"), "10"); | |
| 22 }, "Tests with setOrientToAngle"); | |
| 23 | |
| 24 test(function() { | |
| 25 markerElement.setOrientToAuto(); | |
| 26 assert_equals(markerElement.getAttribute("orient"), "auto"); | |
| 27 }, "Tests with setOrientToAuto"); | |
| 28 </script> | |
| OLD | NEW |