diff options
Diffstat (limited to 'JavaScriptCore/tests/mozilla/js1_3/template.js')
-rw-r--r-- | JavaScriptCore/tests/mozilla/js1_3/template.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/JavaScriptCore/tests/mozilla/js1_3/template.js b/JavaScriptCore/tests/mozilla/js1_3/template.js new file mode 100644 index 0000000..1958832 --- /dev/null +++ b/JavaScriptCore/tests/mozilla/js1_3/template.js @@ -0,0 +1,44 @@ +/** + File Name: switch_1.js + Section: + Description: + + http://scopus.mcom.com/bugsplat/show_bug.cgi?id=315767 + + Verify that switches do not use strict equality in + versions of JavaScript < 1.4 + + Author: christine@netscape.com + Date: 12 november 1997 +*/ +// onerror = err; + + var SECTION = "script_1; + var VERSION = "JS1_3"; + var TITLE = "NativeScript"; + var BUGNUMBER="31567"; + + startTest(); + writeHeaderToLog( SECTION + " "+ TITLE); + + var tc = 0; + var testcases = new Array(); + + + testcases[tc++] = new TestCase( SECTION, + + + test(); +function test() { + for ( tc=0; tc < testcases.length; tc++ ) { + testcases[tc].passed = writeTestCaseResult( + testcases[tc].expect, + testcases[tc].actual, + testcases[tc].description +" = "+ + testcases[tc].actual ); + + testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value "; + } + stopTest(); + return ( testcases ); +} |