Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / S15.10.2.8_A2_T3.js
blob79cc4000a9d2b65aeb059258345ca034720f3990
1 // Copyright 2009 the Sputnik authors.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
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_T3
10 description: >
11     Execute /Java(?!Script)([A-Z]\w*)/.test("using of Java language")
12     and check results
13 ---*/
15 var __executed = /Java(?!Script)([A-Z]\w*)/.test("using of Java language");
17 assert(!__executed, 'The value of !__executed is expected to be true');
19 reportCompare(0, 0);