mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00

The original test in [1] will throw Syntax error, due to we strip whitespace in [2]. The test 'else postMessage(..)' will become 'elsepostMessage(...)' and cause ReferenceError: elsepostMessage is not defined. So I added {} to fix the error. Also in the last test [3], it will trigger error handler in the testing framework, and the TestHarness will fail if there's an error thrown. So I added 'setup({allow_uncaught_exception:true});' to fix this. [1]: http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/testing/web-platform/tests/workers/data-url.html#53 [2]: http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/netwerk/protocol/data/nsDataHandler.cpp#92 [3]: http://searchfox.org/mozilla-central/rev/f0e4ae5f8c40ba742214e89aba3f554da0b89a33/testing/web-platform/tests/workers/data-url.html#56
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff