Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/regexp_parse/ (r=jorendorff)
authorEric Faust <efausbmo@gmail.com>
Tue, 09 Oct 2018 15:41:50 -0700
changeset 496134 222b9bd838ecc373b3e09442ca285ebca215ef2c
parent 496133 4da5afa3f427920eac6fc9d3de57c5fee80636af
child 496135 de0ab3ea1796c48872614041a6e87b34073a184a
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjorendorff
bugs1496297
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1496297 - Use |jit-test| skip-if as appropriate in jit-test/tests/regexp_parse/ (r=jorendorff)
js/src/jit-test/tests/regexp_parse/Assertion.js
js/src/jit-test/tests/regexp_parse/Atom.js
js/src/jit-test/tests/regexp_parse/Atom_CharacterClassEscape.js
js/src/jit-test/tests/regexp_parse/Atom_ControlEscape.js
js/src/jit-test/tests/regexp_parse/Atom_ControlLetter.js
js/src/jit-test/tests/regexp_parse/Atom_DecimalEscape.js
js/src/jit-test/tests/regexp_parse/Atom_HexEscapeSequence.js
js/src/jit-test/tests/regexp_parse/Atom_IdentityEscape.js
js/src/jit-test/tests/regexp_parse/Atom_Null.js
js/src/jit-test/tests/regexp_parse/Atom_RegExpUnicodeEscapeSequence.js
js/src/jit-test/tests/regexp_parse/Capture.js
js/src/jit-test/tests/regexp_parse/CharacterClass.js
js/src/jit-test/tests/regexp_parse/CharacterClass_CharacterClassEscape.js
js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js
js/src/jit-test/tests/regexp_parse/CharacterClass_ControlEscape.js
js/src/jit-test/tests/regexp_parse/CharacterClass_ControlLetter.js
js/src/jit-test/tests/regexp_parse/CharacterClass_HexEscapeSequence.js
js/src/jit-test/tests/regexp_parse/CharacterClass_Null.js
js/src/jit-test/tests/regexp_parse/CharacterClass_RegExpUnicodeEscapeSequence.js
js/src/jit-test/tests/regexp_parse/Disjunction.js
js/src/jit-test/tests/regexp_parse/Empty.js
js/src/jit-test/tests/regexp_parse/Everything.js
js/src/jit-test/tests/regexp_parse/Group.js
js/src/jit-test/tests/regexp_parse/Lookahead.js
js/src/jit-test/tests/regexp_parse/MatchOnly.js
js/src/jit-test/tests/regexp_parse/Quantifier.js
js/src/jit-test/tests/regexp_parse/directives.txt
--- a/js/src/jit-test/tests/regexp_parse/Assertion.js
+++ b/js/src/jit-test/tests/regexp_parse/Assertion.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("^", no_multiline_flags,
          Assertion("START_OF_INPUT"));
 test_mix("^", multiline_flags,
          Assertion("START_OF_LINE"));
 
 test_mix("$", no_multiline_flags,
--- a/js/src/jit-test/tests/regexp_parse/Atom.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("a", all_flags,
          Atom("a"));
 test_mix("abc\u3042\u3044\u3046", all_flags,
          Atom("abc\u3042\u3044\u3046"));
 
 // raw brace
--- a/js/src/jit-test/tests/regexp_parse/Atom_CharacterClassEscape.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_CharacterClassEscape.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("\\d", all_flags,
          CharacterClass([["0", "9"]]));
 
 test_mix("\\D", no_unicode_flags,
          CharacterClass([
              ["\u0000", "/"],
--- a/js/src/jit-test/tests/regexp_parse/Atom_ControlEscape.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_ControlEscape.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("\\f", all_flags,
          Atom("\u000c"));
 
 test_mix("\\n", all_flags,
          Atom("\u000a"));
 
--- a/js/src/jit-test/tests/regexp_parse/Atom_ControlLetter.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_ControlLetter.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("\\ca", all_flags,
          Atom("\u0001"));
 test_mix("\\cz", all_flags,
          Atom("\u001a"));
 test_mix("\\cA", all_flags,
          Atom("\u0001"));
--- a/js/src/jit-test/tests/regexp_parse/Atom_DecimalEscape.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_DecimalEscape.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 // LegacyOctalEscapeSequence
 
 test_mix("\\1", no_unicode_flags,
          Atom("\u0001"));
 test_mix("\\2", no_unicode_flags,
          Atom("\u0002"));
--- a/js/src/jit-test/tests/regexp_parse/Atom_HexEscapeSequence.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_HexEscapeSequence.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("\\x00", all_flags,
          Atom("\u0000"));
 test_mix("\\xFF", all_flags,
          Atom("\u00FF"));
 
 test_mix("\\x0", no_unicode_flags,
--- a/js/src/jit-test/tests/regexp_parse/Atom_IdentityEscape.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_IdentityEscape.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 // SyntaxCharacter
 
 test("\\^", all_flags,
      Atom("^"));
 test("\\$", all_flags,
      Atom("$"));
--- a/js/src/jit-test/tests/regexp_parse/Atom_Null.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_Null.js
@@ -1,7 +1,4 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("\\0", all_flags,
          Atom("\u0000"));
--- a/js/src/jit-test/tests/regexp_parse/Atom_RegExpUnicodeEscapeSequence.js
+++ b/js/src/jit-test/tests/regexp_parse/Atom_RegExpUnicodeEscapeSequence.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 // LeadSurrogate TrailSurrogate
 
 test("\\uD83D\\uDC38", all_flags,
      Atom("\uD83D\uDC38"));
 test("X\\uD83D\\uDC38Y", no_unicode_flags,
      Atom("X\uD83D\uDC38Y"));
--- a/js/src/jit-test/tests/regexp_parse/Capture.js
+++ b/js/src/jit-test/tests/regexp_parse/Capture.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("()", all_flags,
      Capture(1, Empty()));
 
 test("(a)", all_flags,
      Capture(1, Atom("a")));
 
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("[]", all_flags,
          NegativeCharacterClass([
              ["\u0000", "\uFFFF"]
          ]));
 
 test("[a]", all_flags,
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass_CharacterClassEscape.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_CharacterClassEscape.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("[\\d]", all_flags,
      CharacterClass([["0", "9"]]));
 
 test("[\\D]", no_unicode_flags,
      CharacterClass([
          ["\u0000", "/"],
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_ClassEscape.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("[\b]", all_flags,
      CharacterClass([
          ["\u0008", "\u0008"]
      ]));
 test("[\-]", all_flags,
      CharacterClass([
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass_ControlEscape.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_ControlEscape.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("[\\f]", all_flags,
      CharacterClass([
          ["\u000c", "\u000c"]
      ]));
 
 test("[\\n]", all_flags,
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass_ControlLetter.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_ControlLetter.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("[\\ca]", all_flags,
      CharacterClass([
          ["\u0001", "\u0001"]
      ]));
 test("[\\cz]", all_flags,
      CharacterClass([
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass_HexEscapeSequence.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_HexEscapeSequence.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("[\\x00]", all_flags,
      CharacterClass([
          ["\u0000", "\u0000"]
      ]));
 test("[\\xff]", all_flags,
      CharacterClass([
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass_Null.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_Null.js
@@ -1,9 +1,6 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("[\\0]", all_flags,
      CharacterClass([
          ["\u0000", "\u0000"]
      ]));
--- a/js/src/jit-test/tests/regexp_parse/CharacterClass_RegExpUnicodeEscapeSequence.js
+++ b/js/src/jit-test/tests/regexp_parse/CharacterClass_RegExpUnicodeEscapeSequence.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 // LeadSurrogate TrailSurrogate
 
 test("[X\\uD83D\\uDC38Y]", no_unicode_flags,
      CharacterClass([
          ["X", "X"],
          ["\uD83D", "\uD83D"],
--- a/js/src/jit-test/tests/regexp_parse/Disjunction.js
+++ b/js/src/jit-test/tests/regexp_parse/Disjunction.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("a|\u3042", all_flags,
      Disjunction([
          Atom("a"),
          Atom("\u3042")
      ]));
 
--- a/js/src/jit-test/tests/regexp_parse/Empty.js
+++ b/js/src/jit-test/tests/regexp_parse/Empty.js
@@ -1,7 +1,4 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("", all_flags,
      Empty());
--- a/js/src/jit-test/tests/regexp_parse/Everything.js
+++ b/js/src/jit-test/tests/regexp_parse/Everything.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix(".", no_unicode_flags,
          CharacterClass([
              ["\u0000", "\u0009"],
              ["\u000b", "\u000c"],
              ["\u000e", "\u2027"],
              ["\u202A", "\uFFFF"]
--- a/js/src/jit-test/tests/regexp_parse/Group.js
+++ b/js/src/jit-test/tests/regexp_parse/Group.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test("(?:)", all_flags,
      Empty());
 test("(?:a)", all_flags,
      Atom("a"));
 test("X(?:a)Y", all_flags,
      Text([
--- a/js/src/jit-test/tests/regexp_parse/Lookahead.js
+++ b/js/src/jit-test/tests/regexp_parse/Lookahead.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("(?=abc)", all_flags,
          Lookahead(Atom("abc")));
 
 test_mix("(?!abc)", all_flags,
          NegativeLookahead(Atom("abc")));
 
--- a/js/src/jit-test/tests/regexp_parse/MatchOnly.js
+++ b/js/src/jit-test/tests/regexp_parse/MatchOnly.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 // Leading and trailing .* are ignored if match_only==true.
 
 test_match_only(".*abc", all_flags,
                 Atom("abc"));
 test_match_only("abc.*", all_flags,
                 Atom("abc"));
--- a/js/src/jit-test/tests/regexp_parse/Quantifier.js
+++ b/js/src/jit-test/tests/regexp_parse/Quantifier.js
@@ -1,11 +1,8 @@
-if (typeof parseRegExp === 'undefined')
-    quit();
-
 load(libdir + "regexp_parse.js");
 
 test_mix("a*", all_flags,
          Quantifier(0, kInfinity, "GREEDY", Atom("a")));
 test_mix("a*?", all_flags,
          Quantifier(0, kInfinity, "NON_GREEDY", Atom("a")));
 
 test_mix("a+", all_flags,
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/regexp_parse/directives.txt
@@ -0,0 +1,1 @@
+|jit-test| skip-if: typeof parseRegExp === 'undefined'