Skip to content

Use ternary expressions to shorten code in src/core/editor/pdf_editor.js#21459

Merged
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:PDFEditor-ternary-Dict-set
Jun 16, 2026
Merged

Use ternary expressions to shorten code in src/core/editor/pdf_editor.js#21459
timvandermeij merged 1 commit into
mozilla:masterfrom
Snuffleupagus:PDFEditor-ternary-Dict-set

Conversation

@Snuffleupagus

Copy link
Copy Markdown
Collaborator

This makes setting a few Dictionary entries a little bit shorter, which shouldn't hurt.
(Part of this code isn't fully covered by tests, so it improves overall code coverage as well.)

…r.js`

This makes setting a few Dictionary entries a little bit shorter, which shouldn't hurt.
(Part of this code isn't fully covered by tests, so it improves overall code coverage as well.)
@codecov-commenter

codecov-commenter commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.78%. Comparing base (7f7b38b) to head (6c0ad86).

Files with missing lines Patch % Lines
src/core/editor/pdf_editor.js 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21459      +/-   ##
==========================================
+ Coverage   89.76%   89.78%   +0.01%     
==========================================
  Files         260      260              
  Lines       66066    66058       -8     
==========================================
+ Hits        59304    59308       +4     
+ Misses       6762     6750      -12     
Flag Coverage Δ
browsertest 66.91% <0.00%> (+0.04%) ⬆️
fonttest 9.02% <ø> (ø)
integrationtest 68.88% <25.00%> (+0.01%) ⬆️
unittest 57.23% <25.00%> (+0.01%) ⬆️
unittestcli 56.18% <25.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Snuffleupagus

Copy link
Copy Markdown
Collaborator Author

/botio browsertest

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/a37cad57bc000a6/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/b530dc9a7b225ed/output.txt

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/b530dc9a7b225ed/output.txt

Total script time: 18.34 mins

  • Regression tests: Passed

@moz-tools-bot

Copy link
Copy Markdown
Collaborator

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/a37cad57bc000a6/output.txt

Total script time: 46.86 mins

  • Regression tests: FAILED
  different ref/snapshot: 110

Image differences available at: http://54.193.163.58:8877/a37cad57bc000a6/reftest-analyzer.html#web=eq.log

@Snuffleupagus

Copy link
Copy Markdown
Collaborator Author

The Windows ref-test "failures" are likely caused by a Firefox version update on the bot.

@timvandermeij timvandermeij merged commit 8bc13d5 into mozilla:master Jun 16, 2026
25 of 27 checks passed
@timvandermeij

Copy link
Copy Markdown
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the PDFEditor-ternary-Dict-set branch June 16, 2026 19:40
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.

4 participants