OLD | NEW |
1 description("Test SVGLengthAdjustType enumeration animations"); | 1 description("Test SVGLengthAdjustType enumeration animations"); |
2 createSVGTestCase(); | 2 createSVGTestCase(); |
3 | 3 |
| 4 // Initiate the test by clicking at (1, 50) - the 'S'. |
| 5 window.clickX = 1; |
| 6 |
4 // Setup test document | 7 // Setup test document |
5 var text = createSVGElement("text"); | 8 var text = createSVGElement("text"); |
6 text.setAttribute("id", "text"); | 9 text.setAttribute("id", "text"); |
7 text.setAttribute("y", "50"); | 10 text.setAttribute("y", "50"); |
8 text.setAttribute("textLength", "200"); | 11 text.setAttribute("textLength", "200"); |
9 text.textContent = "Stretched text"; | 12 text.textContent = "Stretched text"; |
10 text.setAttribute("onclick", "executeTest()"); | 13 text.setAttribute("onclick", "executeTest()"); |
11 rootSVGElement.appendChild(text); | 14 rootSVGElement.appendChild(text); |
12 | 15 |
13 var animate = createSVGElement("animate"); | 16 var animate = createSVGElement("animate"); |
(...skipping 24 matching lines...) Expand all Loading... |
38 ["animation", 1.999, sample1], | 41 ["animation", 1.999, sample1], |
39 ["animation", 2.001, sample2], | 42 ["animation", 2.001, sample2], |
40 ["animation", 3.999, sample2], | 43 ["animation", 3.999, sample2], |
41 ["animation", 4.001, sample2] | 44 ["animation", 4.001, sample2] |
42 ]; | 45 ]; |
43 | 46 |
44 runAnimationTest(expectedValues); | 47 runAnimationTest(expectedValues); |
45 } | 48 } |
46 | 49 |
47 var successfullyParsed = true; | 50 var successfullyParsed = true; |
OLD | NEW |