mozilla.org's JavaScript Test Library which can be used to test the implementations of JavaScript in browsers ranging from Mozilla, Mozilla Firefox, to Internet Explorer, Opera and Konqueror.
JavaScript is one of the most ubiquitous languages on the planet and is used by millions of people every day on the web. It is a powerful, C-like scripting language with support for prototype-based Object Oriented programming. Understanding the differences in different implementations of JavaScript is important for both browser developers and web developers.
Since the creation of JavaScript and its subsequent standardization as ECMA 262 - ECMAScript Language Specification, Netscape and later mozilla.org have maintained a JavaScript Test Library. This test suite has been primarily run using the standalone command line version of JavaScript however there has been limited support for running individual tests in browsers.
As of March 18, 2005, the mozilla.org JavaScript Test Library has been updated to include the modifications first described here with the exception of the LiveConnect lc2 and lc3 directories. See Bug 263119 for more details. Future plans include moving the hosting of the online tests to mozilla.org and removing some unecessary Spidermonkey features which cause non-Mozilla based browsers to unnecessarily fail some tests. Feedback and comments welcome.
WARNING: may crash your browser, eat your lunch and insult your mother. You may experience crashes, hangs or unbounded memory growth depending on your browser and your choice of tests.
You can run the tests from menu.html
by selecting the tests you wish to run, selecting the javascript language version and either quirks or standards mode, then clicking the Execute Test List button.
Note that these tests will strain the capacity of your computer and you should expect that at least 256M of Ram will be necessary to run the full set of tests at one time. The tests will also cause your browser to complain that the script is making your computer run slow and you will need to dismiss the dialog and allow the test to complete running. The tests use a popup window and you will need to enable popup windows on this site to run the tests as well. It may take your browser some time to render the final report after completing the selected tests. Be sure to give your browser time to complete the report.
You can select any of the test suites. Live Connect suite lc2 appears to be working properly however LiveConnect suite lc3 fails due to java constructor issues. A recent Mozilla trunk nightly build is required in order to run the e4x tests.
The test results for firefox 1.0x includes patches for the following bugs:
The test results for Seamonkey 1.7x includes patches for the following bugs:
The tests results for Seamonkey 1.8 includes patches for the following bugs:
bug 58116 - ECMA Compliance: daylight savings time computed wrong before 1970. No known regressions
bug 274152 - ECMA-262 Edition 3 specifies ignoring ZWNJ and ZWJ along with other Unicode format-control characters. No known regressions.
bug 280769 - crash while running javascript that has large regex. No known regressions (had to renumber JSMSG_REGEXP_TOO_COMPLEX to 201 to apply to trunk)
| Home | Index | Up | Top | Feedback |