forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[run_web_tests] Replace ImageFirst feature with a better solution
Now for tests that don't call any dumpAsXXX methods, they by default generate pixel results only, and run_web_tests.py just check their pixel results against the corresponding pixel baselines only. Provide testRunner.dumpAsLayout() and dumpAsLayoutWithPixelResults() for tests that do need to dump the layout tree. We still dump layout tree when running such tests in content_shell --run-web-tests command line (instead of running from run_web_tests.py in protocol mode). Changes to layout tests and their expectations: - Use testRunner.dumpAsLayoutWithPixelResults() or dumpAsLayout() in some tests that still requires the layout dump: - editing/ tests need layout dump to show the caret position. - two printing/ tests need layout dump to show how the bug is fixed. In the future, we may just get rid of layout dumps if it's feasible. - Remove testRunner.dumpAsTextWithPixelResults() from some tests which used the function just to suppress layout output. They didn't actually want text output but we hadn't had a way to dump image only until we had the ImageFirst feature. - Previous platform-specific -expected.txt for tests under previous ImageFirst directories are removed and the common baselines are created because the baselines are no longer platform-specific without the layout dump. Extra -expected.txt baselines are not deleted in this CL. Will follow-up in https://chromium-review.googlesource.com/c/chromium/src/+/1286894. Bug: 703899 Cq-Include-Trybots: luci.chromium.try:linux-blink-gen-property-trees;luci.chromium.try:linux_layout_tests_slimming_paint_v2;luci.chromium.try:linux_layout_tests_layout_ng Change-Id: Ifcf7fea90684e133b4222909ee508469d0c985e0 Reviewed-on: https://chromium-review.googlesource.com/c/1277654 Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org> Reviewed-by: Robert Ma <robertma@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#602161}
- Loading branch information
1 parent
b679f0b
commit 6e84f09
Showing
543 changed files
with
597 additions
and
11,501 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
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
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
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
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
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
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
Oops, something went wrong.