Partilhar via


JavaScript tests now available on the IE Testing Center

Our commitment to  same markup includes script along with HTML, CSS, SVG, and the other markup that developers use to build the web. To make same markup real, the community needs a set of official tests to assess how interoperable and standards-compliant different browsers are with the latest version of JavaScript, “ECMAScript Fifth Edition” (fondly known as ES5).

As we mentioned in a recent blog post, Ecma International (the standards body behind JavaScript) is working through a process to publish a test suite for ES5. We are contributing tests to this effort, along with other companies.

In the meantime, to make it easier to try out the tests that the standards body is considering, we’re making the ES5 tests we are contributing available on the IE Testing Center.  We’re excited for the official test suite. We’re publishing our submissions to the Ecma test suite now so that the JavaScript and ES5 community can start providing feedback.

We welcome feedback on these tests via Connect. You can log in with any browser and offer comments and suggestions and bugs on the tests. These are some of the same tests that we use as part of our engineering process in developing IE9. 

As Ecma works through getting the official test suite up and running, we will publish additional tests to the IE Testing Center for the community. We will also, of course, submit these tests to the Ecma sponsored ES5 test suite.

Please visit the IE Testing Center and try them out. We look forward to reading your feedback on these tests as we work together to an official ECMAScript test suite for the community.

Thanks,
Alex Chi
Test Manager, JavaScript

Comments

  • Anonymous
    June 28, 2010
    If you really cared about standards compliance you would support open and royalty free ogg Vorbis for the audio tag. It has better quality than MP3 and none of the patent problems.

  • Anonymous
    June 28, 2010
    And supporting ogg vorbis would be complying to which standard, exactly?  You can't trot out two unrelated things and imply that not supporting one means not caring about the other.

  • Anonymous
    June 28, 2010
    @Jim Tell that to the developers of Chrome and Safari. WebM uses Vorbis, so I think things will turn out better than you expect.

  • Anonymous
    June 28, 2010
    @Jim: HTML5 does NOT say anything beyond that the video/and audio tags exist. So even if every browser company got together and made you have to use some format that they created just for this and that you have to pay them tons of money to use it, they would still be standards compliant.

  • Anonymous
    June 28, 2010
    The comment has been removed

  • Anonymous
    June 28, 2010
    I have a doubt for a long time on IE.Why does IE not supporting extension platform like firefox,chrome and now safari..?

  • Anonymous
    June 28, 2010
    Could you file a "fake bug" in connect about your test cases ? Because I don't see which category I should use to report test-suite problems, and what I should answer to some questions like Repros, ... (I don't have a bug report yet, but you shoud include it in the post. Posting an IE bug is confusing the first time you do it. Posting a bug for a test-case is even more confusing since the questions are not adapted to this ;-)

  • Anonymous
    June 28, 2010
    Instead of a "fake report", could you instead add this bug to connect and provide a link in this post or in the comments : JScript Test 11.13.1-1-1 has a wrong name : ================================================= 11.13.1-1-1 simple assignment throws ReferenceError if LeftHandSide is not a reference (string): pass [Source] should be 11.13.1-1-1 simple assignment throws ReferenceError if LeftHandSide is not a reference (number): pass [Source]

  • Anonymous
    June 28, 2010
    Another typo : 11.1.5_4-4-a-2 Object literal - Duplicate data property name allowd if not in strict mode: pass

  • Anonymous
    June 28, 2010
    @Jim IE supports AAC which is an actual standard unlike Vorbis. And modern AAC implementation perform a bit better than vorbis as well.

  • Anonymous
    June 28, 2010
    Even though it is in the non-normative section B of the ES5 spec, alert('abcdefg'.substr(-2)); is still incorrect in IE8. Will this be corrected?

  • Anonymous
    June 29, 2010
    @FremyCompany Thanks for the feedback. I have filed couple of bugs for the issues you have reported. connect.microsoft.com/.../javascript-test-11-13-1-1-1-has-incorrect-description connect.microsoft.com/.../javascript-test-11-1-5-4-4-a-2-has-a-typo-spelling-mistake-in-its-description

  • Anonymous
    June 29, 2010
    @Tino: In IE5,6,7 and 8 document modes, your test case returns "abcdefg". In IE9 document mode, it returns "fg". This is expected behavior. (If you were really asking about changing IE8, the answer is no, that's not the sort of change that would be made for a shipped product).

  • Anonymous
    June 29, 2010
    EricLaw: ofcourse I meant wether it is/will be fixed in IE9. Since I don't run vista or win 7 (yet) I'm not in a position to test it myself. Glad to see confirmation that this is (finally - since this was also already in the non-normative section of ES3)) fixed as well :)