ECMAScript Test Suite

Similar documents
ECMA-403. NFCIP-2 Test Methods. 1 st Edition / June Reference number ECMA-123:2009

ECMA-404. The JSON Data Interchange Syntax. 2 nd Edition / December Reference number ECMA-123:2009

ECMA-405. Data Interchange on Parallel Write/Read Disk Format for 5 Optical Disks. 1 st Edition / December Reference number ECMA-123:2009

ECMA-119. Volume and File Structure of CDROM for Information Interchange. 3 rd Edition / December Reference number ECMA-123:2009

ECMA-409. NFC-SEC-02: NFC-SEC Cryptography Standard using ECDH-256 and AES-GCM. 2 nd Edition / June Reference number ECMA-123:2009

ECMA-385. NFC-SEC: NFCIP-1 Security Services and Protocol. 4 th Edition / June Reference number ECMA-123:2009

ECMA-415. NFC-SEC Test Methods. 1 st Edition / December Reference number ECMA-123:2009

ECMA TR/84. Common Language Infrastructure (CLI) Technical Report: Information Derived from Partition IV XML File. 5 th Edition / December 2010

XDI Requirements and Use Cases

Ecma International Policy on Submission, Inclusion and Licensing of Software

ECMA-397. Short Distance Visible Light Communication (SDVLC) 1 st Edition / December Reference number ECMA-123:2010

Ecma International Policy on Submission, Inclusion and Licensing of Software

TestCases for the SCA Assembly Model Version 1.1

ISO INTERNATIONAL STANDARD. Document management Engineering document format using PDF Part 1: Use of PDF 1.6 (PDF/E-1)

Wireless Innovation Forum Contribution

Updates: 2710 September 2003 Category: Standards Track. Source Address Selection for the Multicast Listener Discovery (MLD) Protocol

Test Assertions for the SCA Assembly Model Version 1.1 Specification

Category: Informational November 2000

ISO/IEC INTERNATIONAL STANDARD. Information technology JPEG XR image coding system Part 5: Reference software

ISO INTERNATIONAL STANDARD. Dentistry Graphical symbols for dental instruments. Art dentaire Symboles graphiques pour instruments dentaires

DITA 1.2 Whitepaper: Tools and DITA-Awareness

Open Command and Control (OpenC2) Language Specification. Version 0.0.2

ISO/IEC INTERNATIONAL STANDARD

Request for Comments: 3401 Updates: 2276 October 2002 Obsoletes: 2915, 2168 Category: Informational

ISO/IEC INTERNATIONAL STANDARD. Information technology MPEG extensible middleware (MXM) Part 3: MXM reference software

This document is a preview generated by EVS

ISO/IEC INTERNATIONAL STANDARD. Information technology Keyboard layouts for text and office systems Part 2: Alphanumeric section

ISO INTERNATIONAL STANDARD. Information and documentation The Dublin Core metadata element set

ISO/IEC INTERNATIONAL STANDARD. Information technology Guideline for the evaluation and selection of CASE tools

OASIS Specification Document Template Usage

ISO/IEC INTERNATIONAL STANDARD

SAML v2.0 Protocol Extension for Requesting Attributes per Request Version 1.0

OASIS - Artifact naming guidelines

ISO/IEC INTERNATIONAL STANDARD. Information technology ECMAScript for XML (E4X) specification

Information technology Security techniques Mapping the revised editions of ISO/IEC and ISO/IEC 27002

SAML v2.0 Protocol Extension for Requesting Attributes per Request Version 1.0

SAML v2.0 Protocol Extension for Requesting Attributes per Request Version 1.0

SCA-J POJO Component Implementation v1.1 TestCases Version 1.0

ISO/IEC INTERNATIONAL STANDARD

ISO/IEC INTERNATIONAL STANDARD

ISO INTERNATIONAL STANDARD. Language resource management Feature structures Part 1: Feature structure representation

ISO INTERNATIONAL STANDARD. Road vehicles Open interface for embedded automotive applications Part 4: OSEK/VDX Communication (COM)

ISO INTERNATIONAL STANDARD. Ergonomics of human-system interaction Part 110: Dialogue principles

Network Working Group Request for Comments: Category: Standards Track April 2001

ISO/IEC INTERNATIONAL STANDARD

Request for Comments: 3306 Category: Standards Track Microsoft August 2002

ISO/IEC INTERNATIONAL STANDARD. Information technology Security techniques Information security management system implementation guidance

TestCases for the SCA POJO Component Implementation Specification Version 1.1

ISO/IEC INTERNATIONAL STANDARD

Network Working Group. November Encoding Long Options in the Dynamic Host Configuration Protocol (DHCPv4)

ISO/IEC INTERNATIONAL STANDARD

Level of Assurance Authentication Context Profiles for SAML 2.0

ISO/IEC INTERNATIONAL STANDARD. Information technology Multimedia service platform technologies Part 3: Conformance and reference software

ISO/IEC INTERNATIONAL STANDARD

This document is a preview generated by EVS

ISO INTERNATIONAL STANDARD

Information technology Process assessment Concepts and terminology

This document is a preview generated by EVS

ISO INTERNATIONAL STANDARD. Health informatics Service architecture Part 3: Computational viewpoint

ISO/IEC INTERNATIONAL STANDARD. Information technology Software asset management Part 2: Software identification tag

ISO INTERNATIONAL STANDARD. Dentistry Graphical symbols for dental instruments. Art dentaire Symboles graphiques pour instruments dentaires

ISO INTERNATIONAL STANDARD. Translation-oriented terminography. Terminographie axée sur la traduction. First edition

ISO/IEC INTERNATIONAL STANDARD

ISO/IEC INTERNATIONAL STANDARD

Request for Comments: 2536 Category: Standards Track March DSA KEYs and SIGs in the Domain Name System (DNS)

ISO/IEC INTERNATIONAL STANDARD. Information technology Biometric data interchange formats Part 8: Finger pattern skeletal data

Test Assertions for the SCA_J Common Annotations and APIs Version 1.1 Specification

ISO INTERNATIONAL STANDARD. Road vehicles Controller area network (CAN) Part 4: Time-triggered communication

Part 5: Face image data

ISO/IEC INTERNATIONAL STANDARD. Information technology Multimedia service platform technologies Part 2: MPEG extensible middleware (MXM) API

Service Component Architecture Client and Implementation Model for C++ Test Cases Version 1.1

ISO INTERNATIONAL STANDARD

ISO/IEC INTERNATIONAL STANDARD. Information technology Biometric data interchange formats Part 2: Finger minutiae data

ISO/IEC INTERNATIONAL STANDARD. Information technology Multimedia service platform technologies Part 5: Service aggregation

Using the AMQP Anonymous Terminus for Message Routing Version 1.0

SWOP Specifications for Web Offset Publications Edition 10.0 Errata

XACML Profile for Requests for Multiple Resources

ISO INTERNATIONAL STANDARD. Geographic information Simple feature access Part 1: Common architecture

ISO Document management applications Electronic document file format enhancement for accessibility Part 1: Use of ISO (PDF/UA-1)

E. Lewis ARIN September 23, KEY RR Secure Entry Point Flag draft-ietf-dnsext-keyrr-key-signing-flag-09. Status of this Memo

Information technology Security techniques Sector-specific application of ISO/IEC Requirements

ISO INTERNATIONAL STANDARD

Category: Standards Track September MIB Textual Conventions for Uniform Resource Identifiers (URIs)

ISO/IEC INTERNATIONAL STANDARD. Information technology Metamodel framework for interoperability (MFI) Part 1: Reference model

ISO INTERNATIONAL STANDARD

* Network Working Group. Expires: January 6, 2005 August A URN namespace for the Open Geospatial Consortium (OGC)

Information technology Guidelines for the application of ISO 9001:2008 to IT service management and its integration with ISO/IEC :2011

ISO/IEC TR TECHNICAL REPORT. Information technology Procedures for achieving metadata registry (MDR) content consistency Part 1: Data elements

Transcription:

ECMA TR/104 2 nd Edition / December 2016 ECMAScript Test Suite Reference number ECMA-123:2009 Ecma International 2009

COPYRIGHT PROTECTED DOCUMENT Ecma International 2016

Contents Page 1 Scope... 1 2 References... 1 3 Abbreviations... 1 4 Status... 1 5 Contributions... 1 6 Relation to ECMA-414... 2 Ecma International 2016 i

ii Ecma International 2016

Introduction Test262 1 is a project of Ecma International's Technical Committee 39 that has a goal to make a test suite widely available that can be used by ECMAScript implementers to improve their adherence to ECMA-414 (which normatively includes ECMA-262 and ECMA-402) specification. The test suite consists of individual tests that have been contributed by Ecma TC39 members. The test262 test suite is publicly available at https://github.com/tc39/test262. This Ecma Technical Report was developed by Technical Committee 39 and was adopted by the General Assembly of December 2016. 1 The name Test262 is an historic artifact reflecting the fact that originally the test suite only contained tests relating to the ECMA-262 standard. With the introduction of ECMA-414 it also includes tests to other standards like ECMA-402. Ecma International 2016 iii

"COPYRIGHT NOTICE 2016 Ecma International This document may be copied, published and distributed to others, and certain derivative works of it may be prepared, copied, published, and distributed, in whole or in part, provided that the above copyright notice and this Copyright License and Disclaimer are included on all such copies and derivative works. The only derivative works that are permissible under this Copyright License and Disclaimer are: (i) works which incorporate all or portion of this document for the purpose of providing commentary or explanation (such as an annotated version of the document), (ii) works which incorporate all or portion of this document for the purpose of incorporating features that provide accessibility, (iii) translations of this document into languages other than English and into different formats and (iv) works by making use of this specification in standard conformant products by implementing (e.g. by copy and paste wholly or partly) the functionality therein. However, the content of this document itself may not be modified in any way, including by removing the copyright notice or references to Ecma International, except as required to translate it into languages other than English or into a different format. The official version of an Ecma International document is the English language version on the Ecma International website. In the event of discrepancies between a translated version and the official version, the official version shall govern. The limited permissions granted above are perpetual and will not be revoked by Ecma International or its successors or assigns. This document and the information contained herein is provided on an "AS IS" basis and ECMA INTERNATIONAL DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE." iv Ecma International 2016

ECMAScript Test Suite 1 Scope This Ecma Technical Report describes a test suite and harness developed by TC39 members and other contributors to validate how well an implementation of the ECMAScript adheres to the ECMA-414 suite of standards. It is assumed that readers are familiar with general software testing methodologies and the ECMA-262. 2 References The following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. ECMA-262, ECMAScript Language Specification ECMA-402, ECMAScript 2016 Internationalization API Specification ECMA-404, The JSON Data Interchange Format ECMA-414, ECMAScript Specification Suite 3 Abbreviations TC39 Technical Committee 39 test262 The software test suite defined by this report 4 Status Development of test262 is an on-going process. As of September 2016, test262 consisted of over 23700 individual test files covering the majority of the pseudo-code algorithms defined in the ECMA-414 Standards Suite. Each of these files contains one or more distinct test cases. This marks the most comprehensive ECMAScript test suite to date. While test coverage is broad, TC39 does not consider coverage to be complete and as with any software project there exists the possibility of omissions and errors. As TC39 members correct issues or contribute further tests the test suite will be updated at https://github.com/tc39/test262 which also contains the active development version of the source code. The most recent version of the test suite is available at https://github.com/tc39/test262/tree/master, which references the git master branch of the source code repository. 5 Contributions Test262 was initially composed of contributions from Ecma members Google and Microsoft. Google contributed tests from its Sputnik project, a test suite for ECMA-262 Edition 3. Microsoft contributed tests from its Internet Explorer Testing Center, a test suite for the Standard ECMA-262 Edition 5.1 features and changes from Edition 3. Development of test262 began in earnest in summer 2010. Since that time, thousands of Ecma International 2016 1

additional tests have been contributed by TC39 member organizations and members of the world-wide ECMAScript community. A guide for contributions can be found at https://github.com/tc39/test262#contributing-to-test262 which requests community users to sign the CLA and documents test authoring guidelines. All tests on test262 are declared as text files located within its project's test directory. Test262 does not offer any specific runner for the tests but lists current available runners maintained by community volunteers at https://github.com/tc39/test262#running-test262. A documentation for tests interpretation is available at https://github.com/tc39/test262/blob/master/interpreting.md. 6 Relation to ECMA-414 The Standard ECMA-414 along with the standards that it normatively references provides the normative definition of the ECMAScript programming language. Test262 is a non-normative test suite for implementations of Standard ECMA-414. Any differences between the requirements of ECMA-414 and those tested by test262 must be resolved in favour of the ECMA-414 specification. 2 Ecma International 2016

Ecma International 2016 3

Ecma International 2016