зеркало из https://github.com/mozilla/gecko-dev.git
ea46baf631
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 |
||
---|---|---|
.. | ||
base | ||
build | ||
doc | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |