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

Side by Side Diff: LayoutTests/platform/win/css3/keyframes-rule-expected.txt

Issue 18864008: Beef up keyframe animation LayoutTest (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also remove some stale files related to this test Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 This tests the WebKitCSSKeyframeRule and WebKitCSSKeyframesRule interfaces.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 PASS WEBKIT_KEYFRAME_RULE exists on Window object
7 PASS WEBKIT_KEYFRAMES_RULE exists on Window object
8
9 PASS keyframes1.type is window.CSSRule.WEBKIT_KEYFRAMES_RULE
10 PASS keyframes1.name is 'test1'
11
12 PASS rules1.length is 2
13 PASS rules1.item(0).type is window.CSSRule.WEBKIT_KEYFRAME_RULE
14 PASS rules1.item(0).cssText is '0% { left: 10px; }'
15 PASS rules1.item(1).cssText is '100% { left: 20px; }'
16
17 Insert three new rules
18 PASS rules1.length is 5
19 PASS rules1.item(0).cssText is '0% { left: 10px; }'
20 PASS rules1.item(1).cssText is '100% { left: 20px; }'
21 PASS rules1.item(2).cssText is '30% { left: 30px; }'
22 PASS rules1.item(3).cssText is '60% { left: 60px; }'
23 PASS rules1.item(4).cssText is '20% { left: 50px; }'
24
25 PASS keyframes2.type is window.CSSRule.WEBKIT_KEYFRAMES_RULE
26 PASS keyframes2.name is 'test2'
27
28 PASS rules2.length is 3
29 PASS rules2.item(0).type is window.CSSRule.WEBKIT_KEYFRAME_RULE
30 PASS rules2.item(0).keyText is '0%'
31 PASS rules2.item(1).keyText is '50%'
32 PASS rules2.item(2).keyText is '100%'
33 PASS rules2.item(0).cssText is '0% { left: 10px; }'
34 PASS rules2.item(1).cssText is '50% { left: 30px; }'
35 PASS rules2.item(2).cssText is '100% { left: 20px; }'
36
37 FAIL typeof(rules2.item(0).style) should be function. Was object.
38 PASS rules2.item(0).style.length is 1
39
40 Find a rule
41 PASS rule.type is window.CSSRule.WEBKIT_KEYFRAME_RULE
42 PASS rule.cssText is '50% { left: 30px; }'
43
44 Try to find a rule that doesn't exist
45 PASS Non-existent rule was not found
46
47 Delete a rule
48 PASS rules2.length is 2
49 PASS rules2.item(0).type is window.CSSRule.WEBKIT_KEYFRAME_RULE
50 PASS rules2.item(0).keyText is '0%'
51 PASS rules2.item(1).keyText is '100%'
52
53 Delete a rule that doesn't exist
54 PASS rules2.length is 2
55 PASS rules2.item(0).type is window.CSSRule.WEBKIT_KEYFRAME_RULE
56 PASS rules2.item(0).keyText is '0%'
57 PASS rules2.item(1).keyText is '100%'
58
59 PASS successfullyParsed is true
60
61 TEST COMPLETE
62
OLDNEW
« no previous file with comments | « LayoutTests/platform/win/css3/README ('k') | LayoutTests/platform/win/css3/transform-value-types-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698