js/src/tests/ecma/template.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/tests/ecma/template.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/*
     1.6 + * Any copyright is dedicated to the Public Domain.
     1.7 + * http://creativecommons.org/licenses/publicdomain/
     1.8 + * Contributor: 
     1.9 + */
    1.10 +
    1.11 +
    1.12 +/**
    1.13 + *  File Name:          template.js
    1.14 + *  Reference:          ** replace with bugzilla URL or document reference **
    1.15 + *  Description:        ** replace with description of test **
    1.16 + *  Author:             ** replace with your e-mail address **
    1.17 + */
    1.18 +
    1.19 +var SECTION = "";       // provide a document reference (ie, ECMA section)
    1.20 +var VERSION = "ECMA";   // Version of JavaScript or ECMA
    1.21 +var TITLE   = "";       // Provide ECMA section title or a description
    1.22 +var BUGNUMBER = "";     // Provide URL to bugsplat or bugzilla report
    1.23 +
    1.24 +startTest();               // leave this alone
    1.25 +
    1.26 +/*
    1.27 + * Calls to AddTestCase here. AddTestCase is a function that is defined
    1.28 + * in shell.js and takes three arguments:
    1.29 + * - a string representation of what is being tested
    1.30 + * - the expected result
    1.31 + * - the actual result
    1.32 + *
    1.33 + * For example, a test might look like this:
    1.34 + *
    1.35 + * AddTestCase("** description",
    1.36 + *             "** expected value",
    1.37 + *             "** actual value");
    1.38 + */
    1.39 +
    1.40 +// leave this alone.  this executes the test cases and
    1.41 +// displays results.
    1.42 +test();      

mercurial