| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
info: | |
| 6 |
The form (?! Disjunction ) specifies a zero-width negative lookahead. |
| 7 |
In order for it to succeed, the pattern inside Disjunction must fail to match at the current position. |
| 8 |
The current position is not advanced before matching the sequel |
| 9 |
es5id: 15.10.2.8_A2_T4 |
| 10 |
description: > |
| 11 |
Execute /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter ") and |
| 12 |
check results |
| 13 |
---*/ |
| 14 |
|
| 15 |
var __executed = /Java(?!Script)([A-Z]\w*)/.test("i'm a JavaScripter "); |
| 16 |
|
| 17 |
//CHECK#1 |
| 18 |
if (__executed) { |
| 19 |
$ERROR('#1: /Java(?!Script)([A-Z]\\w*)/.test("i\'m a JavaScripter ") === false'); |
| 20 |
} |