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

Side by Side Diff: LayoutTests/svg/animations/script-tests/discard-on-discard.js

Issue 99533004: [SVG] Implement 'discard' element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months 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
(Empty)
1 description("Test the behavior of one discard applied on another discard");
2 embedSVGTestCase("resources/discard-on-discard.svg");
3
4 // Setup animation test
5 function sample1() {
6 expectFillColor(rect1, 255, 0, 0);
7 }
8
9 function sample2() {
10 expectFillColor(rect1, 0, 255, 0);
11 }
12
13 function executeTest() {
14 var rects = rootSVGElement.ownerDocument.getElementsByTagName("rect");
15 rect1 = rects[0];
16
17 const expectedValues = [
18 // [animationId, time, sampleCallback]
19 ["anim", 0.0, sample1],
20 ["anim", 0.01, sample1],
21 ["anim", 2.0, sample2],
22 ["anim", 2.01, sample2],
23 ["anim", 3.0, sample2],
24 ["anim", 3.01, sample2]
25 ];
26
27 runAnimationTest(expectedValues);
28 }
29
30 window.animationStartsImmediately = true;
31 var successfullyParsed = true;
OLDNEW
« no previous file with comments | « LayoutTests/svg/animations/resources/discard-on-discard.svg ('k') | LayoutTests/svg/custom/global-constructors-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698