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

Side by Side Diff: third_party/WebKit/LayoutTests/web-animations-api/animation-constructor.html

Issue 2142593003: Remove some tests that are duplicated by w3c tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/timed-item-specified-setters.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <div id='e'></div>
6
7 <script>
8 var element = document.getElementById('e');
9
10 var keyframes = [{opacity: '1'}, {opacity: '0'}];
11 var timingObject = {duration: 2, iterations: 5};
12
13 test(function() {
14 var keyframeEffect = new KeyframeEffect(element, keyframes, timingObject);
15 assert_not_equals(keyframeEffect, undefined);
16 assert_equals(keyframeEffect.constructor, KeyframeEffect);
17 }, 'Calling new KeyframeEffect() with a timing object input should create an key frameEffect.');
18
19 test(function() {
20 var keyframeEffect = new KeyframeEffect(element, keyframes, 2);
21 assert_not_equals(keyframeEffect, undefined);
22 assert_equals(keyframeEffect.constructor, KeyframeEffect);
23 }, 'Calling new KeyframeEffect() with a duration input should create an keyframe Effect.');
24
25 test(function() {
26 var keyframeEffect = new KeyframeEffect(element, keyframes);
27 assert_not_equals(keyframeEffect, undefined);
28 assert_equals(keyframeEffect.constructor, KeyframeEffect);
29 }, 'Calling new KeyframeEffect() with no timing input should create an keyframeE ffect.');
30
31 test(function() {
32 var keyframeEffect = new KeyframeEffect(null, keyframes);
33 assert_not_equals(keyframeEffect, undefined);
34 assert_equals(keyframeEffect.constructor, KeyframeEffect);
35 }, 'Calling new KeyframeEffect() with no target should create an keyframeEffect. ');
36 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/web-animations-api/timed-item-specified-setters.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698