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

JS -- Add support for buttons #12637

Merged
merged 1 commit into from
Dec 23, 2020
Merged

Conversation

calixteman
Copy link
Contributor

  • radio buttons
  • checkboxes

@brendandahl
Copy link
Contributor

Needs a rebase. Did a quick test with it rebased and radio buttons are working as expected, but radio checkboxes are not. http://www.windjack.com/DownLoads/RadioCheckBox_AcroForm.pdf

Would be good if we could get the puppeteer testing added, so then we can add tests for this first.

@calixteman
Copy link
Contributor Author

calixteman commented Dec 8, 2020

The radio checkboxes have no JS here so there is a bug in annotation_layer.js itself (anyway there is a bug in my code to manage such a situation).
I filed a bug: #12706

@brendandahl
Copy link
Contributor

Can we add a test for this code now too?

@calixteman calixteman force-pushed the buttons branch 3 times, most recently from 9327208 to 56e75e9 Compare December 18, 2020 20:53
@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.67.70.0:8877/052546f2f539dba/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/e7ce2fa013a06a5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/052546f2f539dba/output.txt

Total script time: 26.05 mins

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

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

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/e7ce2fa013a06a5/output.txt

Total script time: 27.29 mins

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

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

await page.waitForTimeout(100);
for (const [selector, expectedText] of expected) {
await page.click(selector);
await page.waitForTimeout(100);
Copy link
Contributor

Choose a reason for hiding this comment

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

As we've seen in other tests, using timeouts is a big cause of intermittent failures. Can we add an annotationchanged event or something instead?

["#\\37 0R", "Group1=Choice3::3"],
["#\\37 1R", "Group1=Choice4::4"],
];
await page.waitForTimeout(100);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here, why is this timeout needed is there an event that can be used instead?

 * radio buttons
 * checkboxes
@brendandahl
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/6e734e79167c92f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/142a9f7c94d46d5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Failed

Full output at http://54.67.70.0:8877/6e734e79167c92f/output.txt

Total script time: 26.25 mins

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

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

@brendandahl
Copy link
Contributor

/botio-windows test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

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

Live output at: http://3.101.106.178:8877/1a68320d5cc5f8d/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://3.101.106.178:8877/1a68320d5cc5f8d/output.txt

Total script time: 28.49 mins

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

Image differences available at: http://3.101.106.178:8877/1a68320d5cc5f8d/reftest-analyzer.html#web=eq.log

@brendandahl brendandahl merged commit d060cd2 into mozilla:master Dec 23, 2020
@brendandahl
Copy link
Contributor

/botio makeref

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_makeref from @brendandahl received. Current queue size: 0

Live output at: http://3.101.106.178:8877/9ba6b09283678ac/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_makeref from @brendandahl received. Current queue size: 0

Live output at: http://54.67.70.0:8877/f2ab1e354d865f5/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/f2ab1e354d865f5/output.txt

Total script time: 24.41 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://3.101.106.178:8877/9ba6b09283678ac/output.txt

Total script time: 25.51 mins

  • Lint: Passed
  • Make references: Passed
  • Check references: Passed

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