Commit Graph

159 Commits

Author SHA1 Message Date
Brian Birtles
eecc3b000d Bug 1382841 - Rename test_XXX_to_rename.html files in dom/animation/test to test_XXX.html; r=hiro
See the description in this changeset's parent which describes why we do this in
two steps.

MozReview-Commit-ID: GtO0SCb0UOF
2018-03-12 16:08:35 +09:00
Brian Birtles
22d46ac693 Bug 1382841 - Remove old test_XXX openers from dom/animation/test/**; r=hiro
We rename the file_XXX contents to test_XXX_to_rename so that these tests keep
running (so long as they begin with file_ and not test_ the test harness will
refuse to run them). If we rename these files to test_XXX in the same patch
Mercurial will not treat this as a rename and so we will lose the history
associated with file_XXX.

Instead, we rename test_XXX_to_rename to test_XXX in the next patch in this
series and by doing this Mercurial will treat this as two rename operations and
`hg log -f test_XXX` will show the history file_XXX as well.

One minor exception to this occurs due to the fact that we have two naming
conventions:

  (a) For tests in css-animations, css-transitions, style etc.

      Most of these tests should eventually land in web-platform-tests. However,
      in many cases that's not yet possible because, for example, CSS
      Animations 2 does not yet specify the behavior tested by the
      css-animations tests.

      For tests in web-platform-tests we generally separate words using -.
      However, our mochitest running machinery requires that tests begin with
      test_. Hence we name tests: test_abc-def-ghi.html.

  (b) For tests in mozilla

      These tests are never intended to be part of web-platform-tests and
      generally for mochitests we use _ to separate words (hence the test_
      prefix). Hence we name these tests test_abc_def_ghi.html

Now, there are some tests in the 'mozilla' directory that use the (a) naming
scheme instead of (b). In this case, instead of renaming file_xxx-xxx.html to
test_xxx-xxx_to_rename.html in this patch, and then renaming
test_xxx-xxx_to_rename.html to test_xxx-xxx.html in a second patch, we can just
delete test_xxx-xxx.html and rename file_xxx-xxx.html to test_xxx_xxx.html in
the one patch and Mercurial will recognize this as a rename because the file
names don't overlap.

MozReview-Commit-ID: Etcdmyfx0zf
2018-03-12 16:08:35 +09:00
Tom Ritter
b25bcbd400 Bug 1430841 Re-enable the Reduce Timer Precision pref for CSS Animations tests r=birtles
Currently CSS Animations are exempted from Reduce Timer Precision, so this isn't needed.
Additionally, when we test by overriding that restriction, these tests aren't run, which
leads to confusion.

MozReview-Commit-ID: Gv6T3oGO475
2018-02-16 15:45:33 -06:00
Tom Ritter
b414702f22 Bug 1435296 Address test failures caused by bumping timer precision to 2 ms r=baku
There are a few different reasons why tests needed updating (not an exhaustive list):

- Tests assume that successive operations take place at different times.
- Tests assume that an operation took a minimum amount of time.
- Tests hardcodes a specific delay.

In most cases we hardcode the preference off. In some cases this is the best approach,
in others, we would like to improve. The bug for tracking those improvements is Bug 1429648

An improvement that is present in some tests is to hardcode a specific precision reduction
that is acceptable based on the confides of the test. (Obviously this needs to be a fix for
the test framework and not a requirement on the feature being tested.)

In a few places, the test itself can be fixed, for example to no longer require the end
time of an operation to be strictly greater than the start time, and allows it to be equal
to it.

MozReview-Commit-ID: J59c7xQtZZJ
2018-02-12 11:39:41 -06:00
Hiroyuki Ikezoe
c02a773da8 Bug 1430654 - Use assert_times_equal for comparing timing values. r=birtles
MozReview-Commit-ID: CUn1f8M0jo5
2018-01-22 14:57:57 +09:00
Hiroyuki Ikezoe
110c19431f Bug 1430654 - Introduce assert_time_equals_literal and use it. r=birtles
This assertion is supposed to be used where the first argument has a tolerance
but the second argument doesn't have such tolerance.  Whereas
assert_times_equal() is supposed to be used for the case both arguments have
the same tolerance, actually it hasn't, it will be fixed in a subsequent patch
in this patch series.

MozReview-Commit-ID: FEDHilbX2rm
2018-01-22 14:55:16 +09:00
Brian Birtles
28b2c902bd Bug 1429671 - Make composite member of Keyframe dictionary objects accept null values; r=bz
This patch reflects the following change to the Web Animations spec:

  abf76745b5

MozReview-Commit-ID: A2GD1igUf5f
2018-01-11 16:20:49 +09:00
Tom Ritter
3113af9da4 Bug 1429668 Turn off the reduceTimerPrecision pref for one more test r=hiro
MozReview-Commit-ID: J7F502Oz3Uc
2018-01-10 23:06:04 -06:00
Hiroyuki Ikezoe
cbea837cec Bug 1424949 - Wait for one more frame before checking animation start time to avoid the situation that the animation just begins at the time when it's ready. r=birtles
MozReview-Commit-ID: 6bNfl10TiT6
2017-12-15 01:36:04 +09:00
Hiroyuki Ikezoe
0dc40508e5 Bug 1424949 - Use assert_greater_than or assert_less_than in file_animations-dynamic-changes.html. r=birtles
MozReview-Commit-ID: I24yopOv51d
2017-12-15 01:24:57 +09:00
Hiroyuki Ikezoe
db51bdca7c Bug 1423078 - Use waitForNextFrame() instead of waitForFrame() to make sure the next frame. r=birtles
This change is the same as bug 1422995.  With the conformant Promise handling
and performing micro task checkpoint in Animation tick, waitForFrame() inside
the callback for Animation.ready does not make sure that the next frame happens.

MozReview-Commit-ID: KEz4xmHpGlk
2017-12-06 09:19:40 +09:00
Hiroyuki Ikezoe
1de40ad3ff Bug 1423078 - Use waitForNextFrame() instead of waitForFrame() to make sure the second restyle happen after the initial paint. r=birtles
We clamp animation start time on the second restyling when the initial paint
for the animation took over vsync refresh rate (16.6ms normally as of today).
The clamping leads the animation progress to the same value as the initial one.
Once this clamping happens, the animation value does not change even after
waiting for Animation.ready and a reqeustAnimationFrame.  To make the animation
value change happen we should wait for one more requestAnimationFrame.

MozReview-Commit-ID: 8OTC0xkKBrr
2017-12-06 09:19:38 +09:00
Hiroyuki Ikezoe
611682c7e0 Bug 1423078 - Use assert_greater_than instead of assert_true. r=birtles
MozReview-Commit-ID: C4LZQni43wp
2017-12-06 09:19:35 +09:00
Hiroyuki Ikezoe
dda3f0aa2d Bug 1422995 - Use waitForNextFrame() instead of waitForFrame() to make sure the next requestAnimationFrame callback happen. r=birtles
With the conformant Promise handling (bug 1193394) and performing micro task
checkpoint in Animation tick (bug 1416966), if we call waitForFrame() inside
the callback for Animation.ready.then it will still be done in the same refresh
driver's tick.

MozReview-Commit-ID: GQJiDHHUlyD
2017-12-05 09:13:42 +09:00
Brian Birtles
e2c42d6623 Bug 1412765 - Update tests in dom/animation/tests to use new pending member; r=hiro
MozReview-Commit-ID: 2PDm9NaXChg
2017-11-22 14:13:36 +09:00
Hiroyuki Ikezoe
11f412c5de Bug 1415346 - Bind onxx event handler before creating EventWatcher. r=birtles
MozReview-Commit-ID: 83KwkxBq7pK
2017-11-08 12:45:15 +09:00
Hiroyuki Ikezoe
8f470dcc96 Bug 1415346 - Use const instead of var in file_event-dispatch.html. r=birtles
MozReview-Commit-ID: Al9lYAMDVNZ
2017-11-08 12:15:00 +09:00
Hiroyuki Ikezoe
c55a255de6 Bug 1415346 - Remove unused AnimationEventHandler. r=birtles
MozReview-Commit-ID: CKkaow9NNa8
2017-11-08 12:15:00 +09:00
Hiroyuki Ikezoe
24bc307ae2 Bug 1415346 - Use single quote in script in file_event-dispatch.html. r=birtles
MozReview-Commit-ID: H7coY2gzxOE
2017-11-08 12:15:00 +09:00
Hiroyuki Ikezoe
026743f7b1 Bug 1415346 - Use arrow function in file_event-dispatch.html. r=birtles
MozReview-Commit-ID: 7bYYDIOLqv6
2017-11-08 12:14:59 +09:00
Hiroyuki Ikezoe
a9eaf672af Bug 1415010 - Bind onanimationxx handlers before creating EventWatcher. r=birtles
So that we can surely receive these animation events in the handler before
the EventWatcher receives the events.

MozReview-Commit-ID: 9jVJ3TgwYeq
2017-11-07 10:30:07 +09:00
Hiroyuki Ikezoe
1ef43d8707 Bug 1415010 - Use arrow functions. r=birtles
MozReview-Commit-ID: D6gL50giYkO
2017-11-07 10:30:07 +09:00
Hiroyuki Ikezoe
f9db3de7de Bug 1402219 - Compute css variables with custom properties in keyframes for getKeyframes(). r=birtles
MozReview-Commit-ID: 7CMnWbzzemY
2017-09-27 16:49:21 +09:00
Hiroyuki Ikezoe
865536e2a3 Bug 1402219 - Check the length of returned keyframes of getKeyframes(). r=birtles
Otherwise, if getKeyframes() returns an empty array, we don't check each keyframes
at all.

MozReview-Commit-ID: LSBIgetZq2G
2017-09-27 12:46:03 +09:00
Mantaroh Yoshinaga
7397cf1b55 Bug 1377541 - Change the order of serialized value for mochitest. r=birtles
MozReview-Commit-ID: 1zL93y3Lkxd
2017-08-01 23:20:35 +09:00
Mantaroh Yoshinaga
342cd76407 Bug 1374564 - Add drop-shadow's serialization test. r=hiro
MozReview-Commit-ID: Cf3Zhvwmklv
2017-06-30 16:28:13 -07:00
Mantaroh Yoshinaga
1788b0abdb Bug 1374564 - Remove skipping code of getkeyframes which used text-shadow serialization. r=hiro
MozReview-Commit-ID: Fh9D8dXMF4R
2017-06-30 15:11:33 -07:00
Mantaroh Yoshinaga
9a9f9ba9c6 Bug 1376513 - Fix expected value for serizalization value for text-shadow of mochitest and skip this test case on gecko. r=hiro
MozReview-Commit-ID: CTOGgCiYTeD
2017-06-27 13:47:45 -07:00
Hiroyuki Ikezoe
3e53ab5af2 Bug 1367307 - Add content property to generate pseudo element. r=birtles
MozReview-Commit-ID: 2gvHexQUJKa
2017-06-08 10:28:19 +09:00
Hiroyuki Ikezoe
b358df00f4 Bug 1358353 - Use rgb value instead of keyword colors. r=boris
MozReview-Commit-ID: HE0Qld7Tvi6
2017-04-28 13:07:54 +09:00
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Mantaroh Yoshinaga
0e41e4c469 Bug 1338069 - Don't use 'window' object when using getComputedStyle in tests. r=birtles
MozReview-Commit-ID: KWUNCIaF183
2017-04-06 12:43:47 +09:00
Mantaroh Yoshinaga
a2fd3f2033 Bug 1302648 part 9 - Add test of setting target effect of CSS Animations. r=birtles
MozReview-Commit-ID: 6MVVFY4uJC4
2017-02-10 12:32:45 +09:00
Mantaroh Yoshinaga
793b94cdc6 Bug 1302648 part 8 - Add animationcancel tests. r=birtles
MozReview-Commit-ID: 44nT8BBNgzT
2017-02-10 12:32:45 +09:00
Mantaroh Yoshinaga
6fafc8ee33 Bug 1302648 part 7 - More simple animation event dispatch tests. r=birtles
MozReview-Commit-ID: 1fJD75QSkxf
2017-02-10 12:32:45 +09:00
Mantaroh Yoshinaga
f6e7ecb6f8 Bug 1202333 part 4 - Add test of event order for CSS-Animation. r=birtles
MozReview-Commit-ID: 9XxHLiohXJ2
2016-12-20 15:57:20 +09:00
Mantaroh Yoshinaga
fbbe7f8646 Bug 1202333 part 3 - Add CSS-Animations event tests. r=birtles
MozReview-Commit-ID: 9rDVzAS1vtm
2016-12-20 15:57:20 +09:00
Mantaroh Yoshinaga
5151fdd851 Bug 1298554 - Remove the animation.id mochitest. r=birtles
MozReview-Commit-ID: 8VTAl9WO7eF
2016-09-12 10:23:10 +09:00
Brian Birtles
cab2ddda08 Bug 1299695 - Rework animation phase and fill mode handling r=hiro
This reflects the following updates to the spec:

  9369384f6c

MozReview-Commit-ID: JYUOZcnPEJQ
2016-09-01 10:57:55 +09:00
Daisuke Akatsuka
ad6c07aadb Bug 1264865 - Part 3: Remove codes that are no longer in use. r=birtles
MozReview-Commit-ID: Dhrco8madlz
2016-07-27 10:13:17 +09:00
Daisuke Akatsuka
d1e6204f9d Bug 1264865 - Part 1: steps(3, end) should serialize using the shorter steps(3) syntax. r=birtles
MozReview-Commit-ID: HBukw3qjyrr
2016-07-27 10:12:43 +09:00
Mantaroh Yoshinaga
9b517ca1d8 Bug 1134163 - Part3. Modify the currentTime and startTime tests. r=birtles
I modified several tests which related animationstart event delay.

animation-starttime and animation-currenttime tests:
 - Moved the getComputedStyle tests to test/style.
 - Removed the animation.playState tests. This tests contained by playState tests of web-platform-tests.
 - Lining common function. (e.g. calculating current/start time. etc)

MozReview-Commit-ID: 9kD9ZR1KxGv
2016-05-16 15:29:09 +09:00
Brian Birtles
e95a0a2548 Bug 1268858 part 4 - Add tests that getKeyframes() returns the correct result when CSS variables are used; r=heycam
MozReview-Commit-ID: BZrd3FAhrrf
2016-05-13 11:56:10 +09:00
Brian Birtles
a8a7c261fb Bug 1268858 part 3 - Make CSS Animations store computed values; r=heycam
This allows us to represent values specified using CSS variable references in
a predictable fashion.

MozReview-Commit-ID: D9KUUhCxPW4
2016-05-13 11:56:10 +09:00
Brian Birtles
43944667cb Bug 1271904 - Rename KeyframeEffectReadOnly.getFrames() and KeyframeEffect.setFrames() to getKeyframes()/setKeyframes(); r=hiro, r=smaug
MozReview-Commit-ID: GwLLY39l1KE
2016-05-13 09:40:52 +09:00
Mantaroh Yoshinaga
01a659295b Bug 1260084 - Part3.Remove unnecessary css animation mochitest. r=birtles
MozReview-Commit-ID: JgplbS9F57L
2016-04-20 08:26:43 +09:00
Mantaroh Yoshinaga
4520fd11b3 Bug 1260084 - Part1.Use promise_test instead of async_test. r=birtles
MozReview-Commit-ID: 9yrccghlUVb
2016-04-20 08:21:17 +09:00
Carsten "Tomcat" Book
6b1a698d5a Backed out changeset b72de5c5ac33 (bug 1260084) for test failures in reverse.html 2016-04-19 12:36:20 +02:00
Carsten "Tomcat" Book
119cfeb54d Backed out changeset 545b4ff9a8e0 (bug 1260084) 2016-04-19 12:35:58 +02:00
Mantaroh Yoshinaga
6fd8b43c61 Bug 1260084 - Part3 - Remove unnecessary css animation mochitest. r=birtles
MozReview-Commit-ID: 7R5VEyvYxvl
2016-04-18 13:15:38 +09:00