Repository navigation
test: keep the honest-table fixture's code cell on white-space: pre - #6662
Merged
Merged
Conversation
…honest-table gate test #6629 wraps a reading-face <pre>'s long lines. The honest-table fixture's `<pre>def go():\n return 5</pre>` stands in a 139px column of a table that scrolls sideways, and on macOS's monospace font ` return 5` is wider than that, so the cell wrapped and the render gate reported a squeezed table on `test_every_table_the_theme_sets_honestly_passes_the_gate` (6 of 6 copies on the macOS runner at c72a8ad). The fixture exercises a newline the author wrote under <pre>, so it now keeps its lines with `white-space: pre`, as #6629 gave its other code fixtures. The gate's behavior is unchanged. Refs #6661
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since #6629, a
<pre>in the reading face wraps lines too long for its box. The honest-table fixture intest_every_table_the_theme_sets_honestly_passes_the_gateputs<pre>def go():\n return 5</pre>in a 139px column of a table that scrolls sideways. In macOS's monospace font,return 5is wider than 139px, so the line wrapped and the render gate correctly reported asqueezed-tableon<table id=sessions>. The fixture exists to show that a newline the author wrote under<pre>doesn't count as a wrap. It now keeps its lines withwhite-space: pre, the same fix #6629 applied to the fixtures it knew had scrolling code blocks. Neither the gate nor the theme changes.Evidence from
cidispatches on the macOS runner (--workers 1 --load 4):c72a8ad03: failed 6 of 6, with the same finding as scheduled run 44896279165.The test also passes locally on Linux.
This repairs one of the five macOS-only failures in #6661. Three others reproduce intermittently on the macOS runner and each has its own issue: #6663 (dial sheets in Firefox), #6664 (seated-thread focus) and #6665 (
server start). The file editor gutter passed 24 of 24 dispatched copies and stays with #6661.Refs #6661 — automated triage