]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/mozilla/ecma_2/RegExp/exec-001.js
JavaScriptCore-461.tar.gz
[apple/javascriptcore.git] / tests / mozilla / ecma_2 / RegExp / exec-001.js
CommitLineData
b37bf2e1
A
1/**
2 * File Name: RegExp/exec-001.js
3 * ECMA Section: 15.7.5.3
4 * Description: Based on ECMA 2 Draft 7 February 1999
5 *
6 * Author: christine@netscape.com
7 * Date: 19 February 1999
8 */
9 var SECTION = "RegExp/exec-001";
10 var VERSION = "ECMA_2";
11 var TITLE = "RegExp.prototype.exec(string)";
12
13 startTest();
14
15 /*
16 * for each test case, verify:
17 * - type of object returned
18 * - length of the returned array
19 * - value of lastIndex
20 * - value of index
21 * - value of input
22 * - value of the array indices
23 */
24
25 // test cases without subpatterns
26 // test cases with subpatterns
27 // global property is true
28 // global property is false
29 // test cases in which the exec returns null
30
31 testcases[0] = { expect:"PASSED", actual:"PASSED", description:"NO TESTS EXIST" };
32
33 test();
34