gecko-dev/layout
Ting-Yu Lin ea46baf631 Bug 1579295 - Replace <body> with <main> for shape-outside tests. r=jfkthame
To prevent these tests depending on Bug 1102175 to pass because they
specify "direction" or "writing-mode" on <body>, replace <body> with
<main>. This patch doesn't change the meaning of the tests.

Except for shape-outside-margin-box-border-radius-008.html, which is
modified manually, all the other files are modified by the follow Python
3 script.

```
import fileinput
import glob

open_tag_before = '<body class="container">'
open_tag_after = '<main class="container">'

end_tag_before = '</body>'
end_tag_after = '</main>'

match_files = 'layout/reftests/w3c-css/submitted/shapes1/*.html'

with fileinput.FileInput(glob.glob(match_files), inplace=True) as f:
    found_open_tag = False
    for line in f:
        if not found_open_tag:
            line_open_tag = line.replace(open_tag_before, open_tag_after)
            if line_open_tag != line:
                print(line_open_tag, end='')
                found_open_tag = True
            else:
                print(line, end='')
        else:
            # Continue search for end tag
            line_end_tag = line.replace(end_tag_before, end_tag_after)
            if line_end_tag != line:
                print(line_end_tag, end='')
                found_open_tag = False
            else:
                print(line, end='')

```

Differential Revision: https://phabricator.services.mozilla.com/D44942

--HG--
extra : moz-landing-system : lando
2019-09-06 08:25:39 +00:00
..
base Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert 2019-09-05 21:37:32 +00:00
build Bug 1573364 - Convert svg.new-getBBox.enabled to a static pref. r=heycam 2019-08-13 04:55:09 +00:00
doc
forms Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert 2019-09-05 21:37:32 +00:00
generic Bug 1578311: Don't prune a trailing HTML br child from the accessibility tree. r=eeejay 2019-09-05 23:41:36 +00:00
inspector Bug 1564968 - add isElementThemed method to InspectorUtils to infer native theme styling such as focus. r=emilio 2019-08-28 17:49:22 +00:00
ipc
mathml Backed out changeset f20ce5c7a25c (bug 1575870) for assertion failure at nsNavHistory.cpp on a CLOSED TREE 2019-08-29 13:45:54 +03:00
media
painting Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert 2019-09-05 21:37:32 +00:00
printing Bug 1577711 - Part 2: Perform frame static clone after parent static clone, r=smaug 2019-09-05 14:55:19 +00:00
reftests Bug 1579295 - Replace <body> with <main> for shape-outside tests. r=jfkthame 2019-09-06 08:25:39 +00:00
style Bug 1579272 - Cleanup obviously fennec-centric test annotations; r=bc 2019-09-06 16:51:10 +00:00
svg Bug 1574137 - Disable test_filter_crossorigin.html on fission. r=gbrown 2019-09-06 13:35:57 +00:00
tables Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert 2019-09-05 21:37:32 +00:00
tools Bug 1577390 - Wait a bit before loading document in Layout Debugger when profiling. r=dbaron 2019-08-30 23:12:58 +00:00
xul Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert 2019-09-05 21:37:32 +00:00
moz.build