You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2017/07/03 16:42:23 UTC
[5/6] git commit: [flex-falcon] [refs/heads/develop] - add more regex
tests
add more regex tests
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/faa071ab
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/faa071ab
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/faa071ab
Branch: refs/heads/develop
Commit: faa071ab47b1a146d1b1f34baccdb6534e346221
Parents: 80898c6
Author: Alex Harui <ah...@apache.org>
Authored: Thu Jun 29 22:27:04 2017 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Mon Jul 3 09:41:45 2017 -0700
----------------------------------------------------------------------
.../internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java | 7 +++++++
1 file changed, 7 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/faa071ab/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
----------------------------------------------------------------------
diff --git a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
index 05b318b..ce5bc4a 100644
--- a/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
+++ b/compiler-jx/src/test/java/org/apache/flex/compiler/internal/codegen/js/flexjs/TestFlexJSGlobalClasses.java
@@ -955,5 +955,12 @@ public class TestFlexJSGlobalClasses extends TestGoogGlobalClasses
assertOut("var /** @type {RegExp} */ a = /[^\\u0009\\u000a\\u000d\\u0020]/g");
}
+ @Test
+ public void testRegExp_LiteralComplex5()
+ {
+ IVariableNode node = getVariable("var a:RegExp = /[^\\s+(\\w+)(?:\\s*=\\s*(\".*?\"|'.*?'|[\\w\\.]+))?/sg");
+ asBlockWalker.visitVariable(node);
+ assertOut("var /** @type {RegExp} */ a = /[^\\s+(\\w+)(?:\\s*=\\s*(\".*?\"|'.*?'|[\\w\\.]+))?/sg");
+ }
}