Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stylo: Fix unit test failures caused by adding source_location member…
… to Keyframe rule. In #18365, we add an extra source_location member to Keyframe rule, so that we can provide location information to devtool panel for Stylo. In order not to break the existing unit tests, we should add this new member to all the Keyframe rules used in our unit tests. As for the tests in stylesheets.rs, since we make the test by mocking a raw css string, there are actual source locations that we can add to the expected result. As to the tests in keyframes.rs, since we don't use raw css string, we can just add a dummy souce location for all the tests. We can further fix this if we decide to use a raw css string for the tests in keyframes.rs one day.
- Loading branch information
1 parent
28d4824
commit f9b7beb
Showing
2 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters