Test suite for ECMAScript 5 support
Asked Answered
A

1

6

Does anyone know if there exists a test suite (written in QUnit, for example) that tests for ECMAScript 5 support?

Asphyxiant answered 9/4, 2011 at 13:40 Comment(0)
M
8

The most "official" test suite is probably ECMAScript Test262, which is being developed by members of Ecma TC39.

There's also the open-sourced ECMAScript 5 Conformance Suite developed by Microsoft, and Google's Sputnik, which tests "all aspects" of ECMAScript 3 and parts of ECMAScript 5. Both of those suites are included as part of ECMAScript Test262.

If you just want to test for basic support (e.g. existence of new functions, not whether they behave correctly in every case), there's the ECMAScript 5 compatibility table, which includes a column for the browser you're using.

Metabolic answered 9/4, 2011 at 15:6 Comment(2)
MS's testsuite is included in Test262 too. However, note this is not just testing for support: it is testing for conformance to the spec, so a large number of the tests are all about edge-cases that authors mostly probably don't care about.Norvun
@gsnedders: Thanks, I figured it probably would be, but I wasn't sure. That's also a good point about strict conformance vs. usable support. I'll add a link for that.Metabolic

© 2022 - 2024 — McMap. All rights reserved.