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

[api-minor][Annotations] charLimit === 0 means unlimited (bug 1782564) #15329

Merged
merged 1 commit into from Aug 19, 2022

Conversation

calixteman
Copy link
Contributor

Changing the charLimit in JS had no impact, so this patch aims to fix
that and add an integration test for it.

src/core/annotation.js Outdated Show resolved Hide resolved
src/display/annotation_layer.js Outdated Show resolved Hide resolved
test/integration/scripting_spec.js Show resolved Hide resolved
@calixteman calixteman force-pushed the 1782564 branch 2 times, most recently from beb9854 to c2e45bd Compare August 18, 2022 21:18
@Snuffleupagus
Copy link
Collaborator

/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.241.84.105:8877/e45498c84296a55/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.193.163.58:8877/ffa1ed660579ba0/output.txt

@Snuffleupagus Snuffleupagus changed the title [Annotations] charLimit === 0 means unlimited (bug 1782564) [api-minor][Annotations] charLimit === 0 means unlimited (bug 1782564) Aug 18, 2022
Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, with one final optional comment and all tests passing; thank you!

return;
}
value = value.slice(0, charLimit);
event.target.value = elementData.userValue = value;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Would it work with just the following?

Suggested change
event.target.value = elementData.userValue = value;
target.value = elementData.userValue = value;

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

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

Total script time: 26.40 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 7
  different first/second rendering: 1

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

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

Total script time: 29.37 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: FAILED
  different ref/snapshot: 2

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

Changing the charLimit in JS had no impact, so this patch aims to fix
that and add an integration test for it.
@calixteman
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/150bf453e529625/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/26cfa38aa4d799a/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/150bf453e529625/output.txt

Total script time: 26.38 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 12

Image differences available at: http://54.241.84.105:8877/150bf453e529625/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/26cfa38aa4d799a/output.txt

Total script time: 28.86 mins

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

@calixteman calixteman merged commit 1a00716 into mozilla:master Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants