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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-effect-timing/duration-expected.txt

Issue 1906463002: Web Animations: Throw TypeErrors for invalid timing parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 4 years, 8 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
1 This is a testharness.js-based test. 1 This is a testharness.js-based test.
2 FAIL set duration 123.45 anim.effect.getComputedTiming is not a function 2 FAIL set duration 123.45 anim.effect.getComputedTiming is not a function
3 FAIL set duration auto anim.effect.getComputedTiming is not a function 3 FAIL set duration auto anim.effect.getComputedTiming is not a function
4 FAIL set auto duration in animate as object anim.effect.getComputedTiming is not a function 4 FAIL set auto duration in animate as object anim.effect.getComputedTiming is not a function
5 FAIL set duration Infinity anim.effect.getComputedTiming is not a function 5 FAIL set duration Infinity anim.effect.getComputedTiming is not a function
6 FAIL set negative duration in animate using a duration parameter assert_throws: function "function () { 6 PASS set negative duration in animate using a duration parameter
7 div.animate({ opacity: [ 0, 1 ] }, -1);..." did not throw
8 PASS set negative Infinity duration in animate using a duration parameter 7 PASS set negative Infinity duration in animate using a duration parameter
9 PASS set NaN duration in animate using a duration parameter 8 PASS set NaN duration in animate using a duration parameter
10 FAIL set negative duration in animate using an options object assert_throws: fun ction "function () { 9 PASS set negative duration in animate using an options object
11 div.animate({ opacity: [ 0, 1 ] }, { du..." did not throw 10 PASS set negative Infinity duration in animate using an options object
12 FAIL set negative Infinity duration in animate using an options object assert_th rows: function "function () { 11 PASS set NaN duration in animate using an options object
13 div.animate({ opacity: [ 0, 1 ] }, { du..." did not throw 12 PASS set abc string duration in animate using an options object
14 FAIL set NaN duration in animate using an options object assert_throws: function "function () { 13 PASS set 100 string duration in animate using an options object
15 div.animate({ opacity: [ 0, 1 ] }, { du..." did not throw 14 PASS set negative duration
16 FAIL set abc string duration in animate using an options object assert_throws: f unction "function () { 15 PASS set negative Infinity duration
17 div.animate({ opacity: [ 0, 1 ] }, { du..." did not throw 16 PASS set NaN duration
18 FAIL set 100 string duration in animate using an options object assert_throws: f unction "function () { 17 PASS set duration abc
19 div.animate({ opacity: [ 0, 1 ] }, { du..." did not throw 18 PASS set duration string 100
20 FAIL set negative duration assert_throws: function "function () {
21 anim.effect.timing.duration = -1;
22 }" did not throw
23 FAIL set negative Infinity duration assert_throws: function "function () {
24 anim.effect.timing.duration = -Infinity..." did not throw
25 FAIL set NaN duration assert_throws: function "function () {
26 anim.effect.timing.duration = NaN;
27 }" did not throw
28 FAIL set duration abc assert_throws: function "function () {
29 anim.effect.timing.duration = 'abc';
30 }" did not throw
31 FAIL set duration string 100 assert_throws: function "function () {
32 anim.effect.timing.duration = '100';
33 }" did not throw
34 Harness: the test ran to completion. 19 Harness: the test ran to completion.
35 20
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/imported/web-platform-tests/web-animations/animation-effect-timing/iterationStart-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698