New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 738393 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 707649



Sign in to add a comment

Test beforeprint and afterprint events in automated web-platform-tests

Project Member Reported by foolip@chromium.org, Jun 30 2017

Issue description

In https://groups.google.com/a/chromium.org/d/msg/blink-dev/3B0I0EDKfpk/leSOUkN0AQAJ tkent@ reports that "Multiple test files in WPT check existence of onbeforeprint and onafterprint attributes, however I think there are no tests for event dispatching.  It's difficult to test printing with interoperable ways."

tkent@, there is a window.print() method, but I assume the problem is that the dialog is modal and the test would never finish?

There's already WebDriver support for dismissing prompts in https://w3c.github.io/webdriver/webdriver-spec.html#user-prompts so I think that with the work that gsnedders (geoffers) is doing on WebDriver in web-platform-tests, this may soon be possible.

(The test would have to request the prompt to be dismissed before calling print(), of course, so that could give rise to some interest race conditions.)
 

Comment 1 by foolip@chromium.org, Jun 30 2017

Blocking: 707649

Comment 2 by geoff...@gmail.com, Jun 30 2017

Pretty sure the prompts WebDriver can deal with don't include printing.

Comment 3 by foolip@chromium.org, Jun 30 2017

"The current user prompt is said to be the active user prompt, which can be one of the entries on the table of simple dialogs, or the window.print dialog."
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 2

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment