testharness.js tests should fail on uncaught exceptions before testharness.js is loaded. |
|||||||||
Issue descriptionIf exceptions are thrown before the testharness.js script is loaded in a LayoutTest the test passes. These should instead cause the test to fail.
,
Apr 18 2016
Blink>ToolsTest renamed to Blink>Infra
,
May 27 2016
Update: Uploaded a patch some time ago to make run-webkit-tests treat console warnings and errors as failures. https://codereview.chromium.org/1885703003 Ran into problems with expected warnings that included nonces that differed with each run.
,
Oct 7 2016
Hi Alan -- so this is still an issue, but it's not as easy to fix as originally hoped, since there a lots of tests that have console error messages before loading testharness.js, right? And if we want to fix this, then we might first want to change all those tests that have console errors before testharness.js is loaded?
,
Oct 7 2016
,
Oct 10 2016
There are many tests where console error are intentional. For most of them we can just make expectation files, others have randomised output due to nonce tokens in the URL and are much harder to write expectations for. I should have kept a record of which tests they were, from memory I think they were in the http directory. My guess is that progress on this patch is blocked on making run-webkit-tests use a seeded random function.
,
Apr 4 2017
,
Jun 13 2017
,
Jun 13 2018
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
,
Jun 28 2018
,
Jul 18
I created https://jsbin.com/yisiwol/edit?html,output to test this, and unsurprisingly found that the test passed. It's important that the behavior when running tests is as similar as possible in upstream wpt and in blink, so we'd want to discuss this in upstream first. alancutter@, if you still think this is important, can you file an issue at https://github.com/web-platform-tests/wpt/issues? Thanks! |
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by bugdroid1@chromium.org
, Apr 13 2016