Index: test/webkit/fast/regex/invalid-range-in-class-expected.txt |
diff --git a/test/webkit/add-recovery-expected.txt b/test/webkit/fast/regex/invalid-range-in-class-expected.txt |
similarity index 71% |
copy from test/webkit/add-recovery-expected.txt |
copy to test/webkit/fast/regex/invalid-range-in-class-expected.txt |
index 1d961b551aa9ef467543ddbb91dc528869e52611..6268eeea652af3376d1cb365ff276ad39688efc5 100644 |
--- a/test/webkit/add-recovery-expected.txt |
+++ b/test/webkit/fast/regex/invalid-range-in-class-expected.txt |
@@ -21,16 +21,22 @@ |
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-This tests that speculation recovery of destructive additions on unboxed integers works. |
+This page tests invalid character ranges in character classes. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
-PASS destructiveAddForBoxedInteger({x:1}, 2, 4) is 9 |
-PASS destructiveAddForBoxedInteger({x:2147483647}, 2, 4) is 2147483655 |
-PASS destructiveAddForBoxedInteger({x:2}, 2147483647, 4) is 4294967300 |
-PASS destructiveAddForBoxedInteger({x:2147483647}, 2147483647, 4) is 6442450945 |
-PASS destructiveAddForBoxedInteger({x:1}, 2, 2147483647) is 2147483652 |
+PASS /[a-c]+/.exec("-acbd"); is ["acb"] |
+PASS /[a\-c]+/.exec("-acbd") is ["-ac"] |
+PASS /[c-a]+/.exec("-acbd"); threw exception SyntaxError: Invalid regular expression: /[c-a]+/: Range out of order in character class. |
+PASS /[\d-x]+/.exec("1-3xy"); is ["1-3x"] |
+PASS /[x-\d]+/.exec("1-3xy"); is ["1-3x"] |
+PASS /[\d-\d]+/.exec("1-3xy"); is ["1-3"] |
+PASS /[\d-a-z]+/.exec("az1-3y"); is ["az1-3"] |
+PASS /[\d\-x]+/.exec("1-3xy"); is ["1-3x"] |
+PASS /[x\-\d]+/.exec("1-3xy"); is ["1-3x"] |
+PASS /[\d\-\d]+/.exec("1-3xy"); is ["1-3"] |
+PASS /[\d-]+/.exec("1-3xy") is ["1-3"] |
PASS successfullyParsed is true |
TEST COMPLETE |