blob: 4654f7787d81c13caf87c97f8439a84ea8435dad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.8.5_A3.1_T5;
* @section: 7.8.5, 15.10.4.1;
* @assertion: RegularExpressionFlags :: IdentifierPart;
* @description: IdentifierPart :: mg;
*/
// Converted for Test262 from original Sputnik source
ES5Harness.registerTest( {
id: "S7.8.5_A3.1_T5",
path: "TestCases/07_Lexical_Conventions/7.8_Literals/7.8.5_Regular_Expression_Literals/S7.8.5_A3.1_T5.js",
assertion: "RegularExpressionFlags :: IdentifierPart",
description: "IdentifierPart :: mg",
test: function testcase() {
//CHECK#1
var regexp = /(?:)/mg;
if (regexp.global !== true) {
$ERROR('#1: var regexp = /(?:)/g; regexp.global === true. Actual: ' + (regexp.global));
}
//CHECK#2
if (regexp.ignoreCase !== false) {
$ERROR('#2: var regexp = /(?:)/g; regexp.ignoreCase === false. Actual: ' + (regexp.ignoreCase));
}
//CHECK#3
if (regexp.multiline !== true) {
$ERROR('#3: var regexp = /(?:)/g; regexp.multiline === true. Actual: ' + (regexp.multiline));
}
}
});
|