Yoshi Huang c39a8b9f4f Bug 1340974 - To make data-url.html pass. r=smaug
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
2017-08-04 10:58:01 +08:00
..
2017-07-31 17:53:14 -07:00

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