2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* RegularExpressionFlags :: IdentifierPart
|
|
|
|
*
|
2011-10-03 22:04:52 +02:00
|
|
|
* @path ch07/7.8/7.8.5/S7.8.5_A3.1_T3.js
|
2011-09-12 06:07:23 +02:00
|
|
|
* @description IdentifierPart :: m
|
2011-09-07 08:35:18 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
//CHECK#1
|
|
|
|
var regexp = /(?:)/m;
|
|
|
|
if (regexp.global !== false) {
|
|
|
|
$ERROR('#1: var regexp = /(?:)/g; regexp.global === false. 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));
|
|
|
|
}
|
|
|
|
|