From: C. Scott Ananian Date: Mon, 2 Mar 2015 22:53:01 +0000 (-0500) Subject: Sync up with Parsoid parserTests. X-Git-Tag: 1.31.0-rc.0~12226^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=75e29f573722d8ca5a41a35f9337689c5f839f78;p=lhc%2Fweb%2Fwiklou.git Sync up with Parsoid parserTests. This now aligns with Parsoid commit 7608aeabdc1e47ce3dbfffd3ded85eecad647260 Change-Id: I4cb8f04b9d7988e5138c8f040fadeb0b7a9348f9 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index dec93389a2..32c7a3933c 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -6238,6 +6238,27 @@ parsoid=html2wt |} !! end +!!test +Testing serialization after deletion of table cells +!!options +parsoid={ + "modes": ["wt2wt"], + "changes": [ + ["#x", "remove"] + ] +} +!!wikitext +{| +!h1 !!h2 !!h3 +| id="x" |c1 {{!}}{{!}}{{!}}c2 |||c3 +|} +!! wikitext/edited +{| +!h1 !!h2 !!h3 +|c2 |||c3 +|} +!!end + ### ### Internal links ### @@ -19732,13 +19753,13 @@ B foo C !! html -

A [1] -B [2] +

A [1] +B [2] C [3]

-
    -
  1. ↑ foo
  2. -
  3. ↑ foo
  4. -
  5. ↑
  6. +
      +
    1. ↑ foo
    2. +
    3. ↑ foo
    4. +
    5. ↑
    !!end @@ -19751,10 +19772,10 @@ A foo B !! html -

    A [1] +

    A [1] B [1]

    -
      -
    1. ↑ 1.0 1.1 foo
    2. +
        +
      1. ↑ 1.0 1.1 foo
      !!end @@ -19768,11 +19789,11 @@ B C !! html -

      A [1] +

      A [1] B [1] C [1]

      -
        -
      1. ↑ 1.0 1.1 1.2 foo
      2. +
          +
        1. ↑ 1.0 1.1 1.2 foo
        !!end @@ -19785,9 +19806,9 @@ parsoid A foo !! html -

        A [1]

        -
          -
        1. ↑ foo
        2. +

          A [1]

          +
            +
          1. ↑ foo
          !!end @@ -19802,11 +19823,11 @@ A !! html -

          A [1]

          +

          A [1]

            -
          1. ↑ This is a bolded link and this is a transclusion -
          2. +
          3. ↑ This is a bolded link and this is a transclusion +
          !!end @@ -19823,13 +19844,13 @@ A !! html -

          A [1]

          +

          A [1]

            -
          1. ↑ foo +
          2. ↑ foo bar baz -
          3. +
          !!end @@ -19853,10 +19874,10 @@ booz !! html -

          A [1]

          +

          A [1]

            -
          1. ↑ foo +
          2. ↑ foo bar @@ -19866,7 +19887,7 @@ baz booz -
          3. +
          !!end @@ -19879,9 +19900,9 @@ A foo {{echo| B C}} !! html -

          A [1] B C}}

          +

          A [1] B C}}

            -
          1. ↑ foo {{echo|
          2. +
          3. ↑ foo {{echo|
          !!end @@ -19893,9 +19914,9 @@ parsoid A foo "},"attrs":{}}'>[1] B C

          +

          A [1] B C

            -
          1. ↑ foo
          2. +
          3. ↑ foo
          !!end @@ -19908,11 +19929,11 @@ A foo B C !! html -

          A [1] B C

          +

          A [1] B C

            -
          1. ↑ foo
          2. +
          3. ↑ foo
          !!end @@ -19925,11 +19946,11 @@ A foo B C bar D !! html -

          A [1] B -C [2] D

          -
            -
          1. ↑ foo
          2. -
          3. ↑ bar
          4. +

            A [1] B +C [2] D

            +
              +
            1. ↑ foo
            2. +
            3. ↑ bar
            !!end @@ -19953,10 +19974,9 @@ c [2]

            c

            -
              -
            1. ↑
            2. -
            3. ↑
            4. -
            +
              +
            1. ↑
            2. +
            3. ↑
            !!end !!test @@ -19969,11 +19989,12 @@ parsoid B !! html -

            [1] A -[2] B

            -
              -
            1. ↑ foo
            2. -
            3. ↑ bar
            4. +

              [1] A +[2] B

              +
                +
              1. ↑ foo
              2. +
              3. ↑ bar +
              !!end @@ -19986,10 +20007,10 @@ parsoid !! html -

              [1]

              - +

              [1] +

                -
              1. ↑ foo <ref>bar</ref> baz
              2. +
              3. ↑ foo <ref>bar</ref> baz
              !!end @@ -20003,10 +20024,10 @@ B1 B2 bar !! html -

              A1 [1] A2 [1] -B1 [2] B2 [2]

              +

              A1 [1] A2 [1] +B1 [2] B2 [2]

              -
              1. ↑ 1.0 1.1 foo
              2. ↑ 2.0 2.1 bar
              3. +
                1. ↑ 1.0 1.1 foo
                2. ↑ 2.0 2.1 bar
                !!end @@ -20020,10 +20041,9 @@ A foo !! html -

                A [1]

                - +

                A [1]

                  -
                1. ↑ foo
                +
              4. ↑ foo
              !!end !!test @@ -20035,11 +20055,12 @@ parsoid !!html -

              [1] +

              [1]

              -
                -
              1. ↑ foo
              2. +
                  +
                1. ↑ foo
                2. +
                !!end !!test @@ -20051,11 +20072,12 @@ parsoid !!html -

                [1] +

                [1]

                -
                  -
                1. ↑ foo
                2. +
                    +
                  1. ↑ foo
                  2. +
                  !!end !!test @@ -20067,9 +20089,29 @@ parsoid !! html -

                  1 [1] 2 [1] +

                  1 [1] 2 [1] +

                  +
                    +
                  1. ↑ 1.0 1.1 foo
                  2. +
                  +!!end -
                  1. ↑ 1.0 1.1 foo
                  2. +!!test +Ref: 20. ref-tags with identical names but different content should keep it +!!options +parsoid +!! wikitext +A Foo one +B Foo two +C + + +!! html +

                    A [1] +B [1] +C [1]

                    + +
                    1. ↑ 1.0 1.1 1.2 Foo one
                    !!end @@ -20080,7 +20122,7 @@ parsoid !! wikitext !! html -
                      +
                        !!end !!test @@ -20096,16 +20138,18 @@ C baz !! html -

                        A [a 1] -B [b 1] -C [1]

                        +

                        A [a 1] +B [b 1] +C [1]

                        -
                        1. ↑ foo
                        2. +
                            +
                          1. ↑ foo
                          -
                          1. ↑ baz
                          2. +
                              +
                            1. ↑ baz
                            -
                              -
                            1. ↑ bar
                            2. +
                                +
                              1. ↑ bar
                              !!end @@ -20122,14 +20166,15 @@ B bar !! html -

                              A [1]

                              +

                              A [1]

                              -
                              1. ↑ foo
                              2. +
                                1. ↑ foo
                                -

                                B [1]

                                +

                                B [1]

                                -
                                1. ↑ bar
                                2. +
                                    +
                                  1. ↑ bar
                                  !!end @@ -20147,15 +20192,15 @@ C cfoo !! html -

                                  A [a 1] -B [1]

                                  +

                                  A [a 1] +B [1]

                                  -
                                  1. ↑ afoo
                                  2. +
                                    1. ↑ afoo
                                    -

                                    C [2]

                                    +

                                    C [2]

                                    -
                                    1. ↑ bfoo
                                    2. ↑ cfoo
                                    3. +
                                      1. ↑ bfoo
                                      2. ↑ cfoo
                                      !!end @@ -20173,10 +20218,10 @@ This should just get lost. !! html

                                      A [1] -B [2]

                                      +B [2]

                                      -
                                      1. ↑ foo
                                      2. ↑ bar
                                      3. +
                                        1. ↑ foo
                                        2. ↑ bar
                                        !!end @@ -20187,7 +20232,8 @@ parsoid !! wikitext Foo {{echo|}} !! html -

                                        [1]

                                        1. ↑ Foo
                                        +

                                        [1]

                                        1. ↑ Foo
                                        2. +
                                        !!end !! test @@ -20204,12 +20250,17 @@ B foo
                                        !! html -

                                        A [1] -B [X 1]

                                        +

                                        A [1] +B [X 1] +

                                        -
                                        1. ↑ foo bar for a
                                        +
                                          +
                                        1. ↑ foo bar for a
                                        2. +
                                        -
                                        1. ↑ foo
                                        +
                                          +
                                        1. ↑ foo
                                        2. +
                                        !! end !! test @@ -20221,7 +20272,8 @@ X{{echo|foo {{echo|bar}} and {{echo|baz}} boo}} !! html

                                        X[1]

                                        -
                                        1. ↑ foo bar and baz boo
                                        +
                                        1. ↑ foo bar and baz boo
                                        2. +
                                        !!end # This test only works in wt2html now as the are always generated @@ -20236,12 +20288,12 @@ parsoid A foo B bar !! html -

                                        A [1] B [inexistent 1] -

                                          -
                                        1. ↑ foo
                                        2. +

                                          A [1] B [inexistent 1]

                                          +
                                            +
                                          1. ↑ foo
                                          -
                                            -
                                          1. ↑ bar
                                          2. +
                                              +
                                            1. ↑ bar
                                            !! end @@ -20253,9 +20305,9 @@ parsoid hi !! html -

                                            [1]

                                            -
                                              -
                                            1. ↑ hi
                                            2. +

                                              [1]

                                              +
                                                +
                                              1. ↑ hi
                                              !! end @@ -20270,11 +20322,9 @@ afoo !! html -

                                              a[1]

                                              - - +

                                              a[1]

                                                -
                                              1. ↑ foo
                                              +
                                            3. ↑ foo
                                            !! end !! test @@ -20295,11 +20345,11 @@ Empty LI and TR nodes should be stripped from template content {{EmptyLITest}} {{EmptyTRTest}} !!html/parsoid -
                                              +
                                              • a
                                              • b
                                              - +
                                              @@ -20343,7 +20393,7 @@ Empty TR nodes should not be stripped if they have any attributes set !!wikitext {{EmptyTRWithHTMLAttrTest}} !!html/parsoid -
                                              foo
                                              +
                                              @@ -21543,11 +21593,11 @@ parsoid=html2wt,wt2wt a' foo bara' foo barfoo x'bar -'foo[1] +'foo[1] 'foo
                                              test
                                              'foo and
                                              bar -
                                                -
                                              1. ↑ test
                                              2. +
                                                  +
                                                1. ↑ test
                                                !! end @@ -21664,9 +21714,10 @@ foo ''a'' b !! html -

                                                foo [1]

                                                -
                                                  -
                                                1. ↑ a b
                                                2. +

                                                  foo [1]

                                                  +
                                                    +
                                                  1. ↑ a + b
                                                  !! end
                                              foo