Test beforeprint and afterprint events in automated web-platform-tests |
|||
Issue descriptionIn 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.)
,
Jun 30 2017
Pretty sure the prompts WebDriver can deal with don't include printing.
,
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."
,
Jul 2
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
,
Jul 10
|
|||
►
Sign in to add a comment |
|||
Comment 1 by foolip@chromium.org
, Jun 30 2017