Does anyone know if there exists a test suite (written in QUnit, for example) that tests for ECMAScript 5 support?
Browser SupportECMAScript 1 - 6 is fully supported in all modern browsers.
ES5 is fully supported in all modern browsers: Chrome. IE. Edge. Firefox.
ECMAScript 5 was released in 2009 and is now obsolete. ES5 support is required for JavaScript to run in Internet Explorer, which is also deprecated, and Microsoft strongly discourages its use.
Test suites are hierarchical, logical groupings of related tests and/or other test suites to run as a single job. For example, the tests created in the last exercise are related because they test the three cases handled by the same Business Rule.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With