File tree Expand file tree Collapse file tree
test/java/org/htmlunit/javascript/regexp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 INCOMPATIBLE CHANGE: CookieManager.getPort(URL) removed. Looks like
1313 <a href="http://code.google.com/p/googleappengine/issues/detail?id=4784"> is solved.
1414 </action>
15+ <action type="fix" dev="Lai Quang Duong">
16+ Regexp "[^]" and "[^]" break translation of later char rangen in the regex.
17+ </action>
1518 <action type="add" dev="rbri" issue="573">
1619 window.isSecureContext added.
1720 </action>
Original file line number Diff line number Diff line change @@ -1151,6 +1151,26 @@ public void specialBrackets7() throws Exception {
11511151 testEvaluate ("'ab]cd'.replace(/[^]]/g, 'x')" );
11521152 }
11531153
1154+ /**
1155+ * @throws Exception if the test fails
1156+ */
1157+ @ Test
1158+ @ Alerts ("xcd" )
1159+ public void specialBrackets8 () throws Exception {
1160+ // [^] matches any character in JS
1161+ testEvaluate ("'abdcd'.replace(/a[^]d/g, 'x')" );
1162+ }
1163+
1164+ /**
1165+ * @throws Exception if the test fails
1166+ */
1167+ @ Test
1168+ @ Alerts ("x abdu" )
1169+ public void specialBrackets9 () throws Exception {
1170+ // [^] matches any character in JS
1171+ testEvaluate ("'abdo abdu'.replace(/a[^]d[o]/g, 'x')" );
1172+ }
1173+
11541174 /**
11551175 * @throws Exception if the test fails
11561176 */
You can’t perform that action at this time.
0 commit comments