Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: third_party/WebKit/LayoutTests/svg/animations/script-tests/animate-elem-04-t-drt.js

Issue 1406303007: Drop SVGGraphicsElement.getTransformToElement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 description("A copy of the corresponding W3C-SVG-1.1 test, which dumps the anima tion at certain times"); 1 description("A copy of the corresponding W3C-SVG-1.1 test, which dumps the anima tion at certain times");
2 embedSVGTestCase("../W3C-SVG-1.1/animate-elem-04-t.svg"); 2 embedSVGTestCase("../W3C-SVG-1.1/animate-elem-04-t.svg");
3 3
4 // Setup animation test 4 // Setup animation test
5 function sample1() { 5 function sample1() {
6 expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-15", "-43"); 6 expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-15" , "-43");
7 } 7 }
8 8
9 function sample2() { 9 function sample2() {
10 expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-40", "-36.5"); 10 expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-40" , "-36.5");
11 } 11 }
12 12
13 function sample3() { 13 function sample3() {
14 expectTranslationMatrix("rootSVGElement.getTransformToElement(path)", "-65", "-30"); 14 expectTranslationMatrix("getTransformToElement(rootSVGElement, path)", "-65" , "-30");
15 } 15 }
16 16
17 function executeTest() { 17 function executeTest() {
18 path = rootSVGElement.ownerDocument.getElementsByTagName("path")[1]; 18 path = rootSVGElement.ownerDocument.getElementsByTagName("path")[1];
19 19
20 const expectedValues = [ 20 const expectedValues = [
21 // [animationId, time, sampleCallback] 21 // [animationId, time, sampleCallback]
22 ["an1", 0.0, sample1], 22 ["an1", 0.0, sample1],
23 ["an1", 1.5, sample2], 23 ["an1", 1.5, sample2],
24 ["an1", 3.0, sample3], 24 ["an1", 3.0, sample3],
25 ["an1", 60.0, sample3] 25 ["an1", 60.0, sample3]
26 ]; 26 ];
27 27
28 runAnimationTest(expectedValues); 28 runAnimationTest(expectedValues);
29 } 29 }
30 30
31 window.animationStartsImmediately = true; 31 window.animationStartsImmediately = true;
32 var successfullyParsed = true; 32 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698