Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test suite for ECMAScript 5 support

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

like image 617
Kevin Albrecht Avatar asked Apr 09 '11 13:04

Kevin Albrecht


People also ask

Can I use ECMAScript 5?

Browser SupportECMAScript 1 - 6 is fully supported in all modern browsers.

What is ES5 compatible?

ES5 is fully supported in all modern browsers: Chrome. IE. Edge. Firefox.

Is ES5 supported in IE?

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.

What is test suite in JavaScript?

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.


1 Answers

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.

like image 170
Matthew Crumley Avatar answered Sep 18 '22 02:09

Matthew Crumley