Home | History | Annotate | Download | only in js1_3
      1 /**
      2     File Name:          switch_1.js
      3     Section:
      4     Description:
      5 
      6     http://scopus.mcom.com/bugsplat/show_bug.cgi?id=315767
      7 
      8     Verify that switches do not use strict equality in
      9     versions of JavaScript < 1.4
     10 
     11     Author:             christine (at) netscape.com
     12     Date:               12 november 1997
     13 */
     14 //    onerror = err;
     15 
     16     var SECTION = "script_1;
     17     var VERSION = "JS1_3";
     18     var TITLE   = "NativeScript";
     19     var BUGNUMBER="31567";
     20 
     21     startTest();
     22     writeHeaderToLog( SECTION + " "+ TITLE);
     23 
     24     var tc = 0;
     25     var testcases = new Array();
     26 
     27 
     28     testcases[tc++] = new TestCase( SECTION,
     29 
     30 
     31     test();
     32 function test() {
     33     for ( tc=0; tc < testcases.length; tc++ ) {
     34         testcases[tc].passed = writeTestCaseResult(
     35                             testcases[tc].expect,
     36                             testcases[tc].actual,
     37                             testcases[tc].description +" = "+
     38                             testcases[tc].actual );
     39 
     40         testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value ";
     41     }
     42     stopTest();
     43     return ( testcases );
     44 }
     45