Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add at least *some* test-coverage for the RenderTask.onContinue functionality #12036

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

The default viewer, and thus Firefox, depends on the RenderTask.onContinue functionality to pause/continue rendering (such that the most visible page always renders first).
Despite this functionality thus being very important, it has however never actually been tested at all as far as I can tell. Hence this patch which adds a new boolean renderTaskOnContinue parameter (false by default), that can be used to force a reference-test to use the RenderTask.onContinue code-path in the InternalRenderTask class.

Note that I purposely made this new reference-test behaviour optional, since I didn't want to negatively affect the general runtime of the tests (given that there's a slight delay added to the rendering). Also, for e.g. benchmarking you'd most likely want to stay away from the RenderTask.onContinue functionality for similar reasons.

@Snuffleupagus Snuffleupagus force-pushed the test-renderTaskOnContinue branch from 30a601b to ee403dc Compare June 28, 2020 21:45
@Snuffleupagus Snuffleupagus changed the title Add at least *some* test-coverate for the RenderTask.onContinue functionality Add at least *some* test-coverage for the RenderTask.onContinue functionality Jun 28, 2020
@Snuffleupagus Snuffleupagus force-pushed the test-renderTaskOnContinue branch from ee403dc to 3c95f58 Compare June 28, 2020 21:55
…ctionality

The default viewer, and thus Firefox, depends on the `RenderTask.onContinue` functionality to pause/continue rendering (such that the most visible page always renders first).
Despite this functionality thus being very important, it has however never actually been tested *at all* as far as I can tell. Hence this patch which adds a new boolean `renderTaskOnContinue` parameter (`false` by default), that can be used to force a reference-test to use the `RenderTask.onContinue` code-path in the `InternalRenderTask` class.

Note that I purposely made this new reference-test behaviour *optional*, since I didn't want to negatively affect the general runtime of the tests (given that there's a slight delay added to the rendering). Also, for e.g. benchmarking you'd most likely want to stay away from the `RenderTask.onContinue` functionality for similar reasons.
@Snuffleupagus Snuffleupagus force-pushed the test-renderTaskOnContinue branch from 3c95f58 to 4a5b68e Compare June 28, 2020 22:38
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/498390b32731073/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/22e39e3c5110b72/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/498390b32731073/output.txt

Total script time: 25.93 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.67.70.0:8877/498390b32731073/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/22e39e3c5110b72/output.txt

Total script time: 28.89 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/22e39e3c5110b72/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit 3359739 into mozilla:master Jul 1, 2020
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the test-renderTaskOnContinue branch July 2, 2020 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants