зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1392106 - skip css writing modes on win7/debug and fix import-tests.py to support reftest_writing_modes.list. r=gbrown,xidorn
This commit is contained in:
Родитель
9c8f263093
Коммит
b798845062
|
@ -41,5 +41,5 @@ include text-svgglyphs/reftest.list
|
||||||
include text-transform/reftest.list
|
include text-transform/reftest.list
|
||||||
|
|
||||||
# css writing mode
|
# css writing mode
|
||||||
include w3c-css/received/reftest_writing_modes.list
|
skip-if(winWidget&&isDebugBuild&&/^Windows\x20NT\x206\.1/.test(http.oscpu)) include w3c-css/received/reftest_writing_modes.list # Bug 1392106
|
||||||
|
|
||||||
|
|
|
@ -59,10 +59,10 @@ fails css-writing-modes/float-rgt-orthog-vrl-in-htb-003.xht
|
||||||
fails css-writing-modes/sizing-orthog-htb-in-vrl-001.xht
|
fails css-writing-modes/sizing-orthog-htb-in-vrl-001.xht
|
||||||
fails css-writing-modes/sizing-orthog-htb-in-vrl-004.xht
|
fails css-writing-modes/sizing-orthog-htb-in-vrl-004.xht
|
||||||
fails css-writing-modes/sizing-orthog-htb-in-vrl-013.xht
|
fails css-writing-modes/sizing-orthog-htb-in-vrl-013.xht
|
||||||
fails-if(OSX||winWidget) css-writing-modes/sizing-orthog-htb-in-vlr-008.xht
|
fails-if(OSX||winWidget||Android) css-writing-modes/sizing-orthog-htb-in-vlr-008.xht
|
||||||
fails-if(OSX||winWidget) css-writing-modes/sizing-orthog-htb-in-vlr-020.xht
|
fails-if(OSX||winWidget||Android) css-writing-modes/sizing-orthog-htb-in-vlr-020.xht
|
||||||
fails-if(OSX||winWidget) css-writing-modes/sizing-orthog-htb-in-vrl-008.xht
|
fails-if(OSX||winWidget||Android) css-writing-modes/sizing-orthog-htb-in-vrl-008.xht
|
||||||
fails-if(OSX||winWidget) css-writing-modes/sizing-orthog-htb-in-vrl-020.xht
|
fails-if(OSX||winWidget||Android) css-writing-modes/sizing-orthog-htb-in-vrl-020.xht
|
||||||
css-writing-modes/sizing-orthog-vlr-in-htb-008.xht
|
css-writing-modes/sizing-orthog-vlr-in-htb-008.xht
|
||||||
css-writing-modes/sizing-orthog-vlr-in-htb-020.xht
|
css-writing-modes/sizing-orthog-vlr-in-htb-020.xht
|
||||||
css-writing-modes/sizing-orthog-vrl-in-htb-008.xht
|
css-writing-modes/sizing-orthog-vrl-in-htb-008.xht
|
||||||
|
|
|
@ -71,7 +71,6 @@ support_dirs_mapped = set()
|
||||||
filemap = {}
|
filemap = {}
|
||||||
speclinkmap = {}
|
speclinkmap = {}
|
||||||
propsaddedfor = []
|
propsaddedfor = []
|
||||||
tests = []
|
|
||||||
gOptions = None
|
gOptions = None
|
||||||
gArgs = None
|
gArgs = None
|
||||||
gTestfiles = []
|
gTestfiles = []
|
||||||
|
@ -209,10 +208,11 @@ def get_document_for(srcname):
|
||||||
document = xml.dom.minidom.parse(srcname)
|
document = xml.dom.minidom.parse(srcname)
|
||||||
return document
|
return document
|
||||||
|
|
||||||
def add_test_items(srcname):
|
def add_test_items(srcname, tests):
|
||||||
|
|
||||||
if not (is_html(srcname) or is_xml(srcname)):
|
if not (is_html(srcname) or is_xml(srcname)):
|
||||||
map_file(srcname)
|
map_file(srcname)
|
||||||
return None
|
return tests
|
||||||
document = get_document_for(srcname)
|
document = get_document_for(srcname)
|
||||||
refs = []
|
refs = []
|
||||||
notrefs = []
|
notrefs = []
|
||||||
|
@ -236,9 +236,10 @@ def add_test_items(srcname):
|
||||||
tests.append(["!=", map_file(srcname), map_file(notref)])
|
tests.append(["!=", map_file(srcname), map_file(notref)])
|
||||||
# Add chained references too
|
# Add chained references too
|
||||||
for ref in refs:
|
for ref in refs:
|
||||||
add_test_items(ref)
|
tests = add_test_items(ref, tests)
|
||||||
for notref in notrefs:
|
for notref in notrefs:
|
||||||
add_test_items(notref)
|
tests = add_test_items(notref, tests)
|
||||||
|
return tests
|
||||||
|
|
||||||
AHEM_FONT_PATH = os.path.normpath(
|
AHEM_FONT_PATH = os.path.normpath(
|
||||||
os.path.join(os.path.dirname(__file__), "../fonts/Ahem.ttf"))
|
os.path.join(os.path.dirname(__file__), "../fonts/Ahem.ttf"))
|
||||||
|
@ -332,20 +333,9 @@ def read_fail_list():
|
||||||
pat = re.compile(fnmatch.translate(items.pop()))
|
pat = re.compile(fnmatch.translate(items.pop()))
|
||||||
gFailList.append((pat, refpat, items))
|
gFailList.append((pat, refpat, items))
|
||||||
|
|
||||||
def main():
|
def create_list_file(filename, tests):
|
||||||
global gDestPath, gLog, gTestfiles, gTestFlags, gFailList
|
global gDestPath, gTestfiles, gTestFlags, gFailList
|
||||||
read_options()
|
listfile = open(os.path.join(gDestPath, filename), "wb")
|
||||||
setup_paths()
|
|
||||||
read_fail_list()
|
|
||||||
setup_log()
|
|
||||||
write_log_header()
|
|
||||||
remove_existing_dirs()
|
|
||||||
populate_test_files()
|
|
||||||
|
|
||||||
for t in gTestfiles:
|
|
||||||
add_test_items(t)
|
|
||||||
|
|
||||||
listfile = open(os.path.join(gDestPath, "reftest.list"), "wb")
|
|
||||||
listfile.write("# THIS FILE IS AUTOGENERATED BY {0}\n# DO NOT EDIT!\n".format(os.path.basename(__file__)))
|
listfile.write("# THIS FILE IS AUTOGENERATED BY {0}\n# DO NOT EDIT!\n".format(os.path.basename(__file__)))
|
||||||
lastDefaultPreferences = None
|
lastDefaultPreferences = None
|
||||||
for test in tests:
|
for test in tests:
|
||||||
|
@ -377,6 +367,30 @@ def main():
|
||||||
listfile.write(" ".join(test) + "\n")
|
listfile.write(" ".join(test) + "\n")
|
||||||
listfile.close()
|
listfile.close()
|
||||||
|
|
||||||
|
def main():
|
||||||
|
global gLog
|
||||||
|
read_options()
|
||||||
|
setup_paths()
|
||||||
|
read_fail_list()
|
||||||
|
setup_log()
|
||||||
|
write_log_header()
|
||||||
|
remove_existing_dirs()
|
||||||
|
populate_test_files()
|
||||||
|
|
||||||
|
tests = []
|
||||||
|
for t in gTestfiles:
|
||||||
|
if 'css-writing-modes' in t:
|
||||||
|
continue
|
||||||
|
tests = add_test_items(t, tests)
|
||||||
|
create_list_file("reftest.list", tests)
|
||||||
|
|
||||||
|
tests = []
|
||||||
|
for t in gTestfiles:
|
||||||
|
if 'css-writing-modes' not in t:
|
||||||
|
continue
|
||||||
|
tests = add_test_items(t, tests)
|
||||||
|
create_list_file("reftest_writing_modes.list", tests)
|
||||||
|
|
||||||
gLog.close()
|
gLog.close()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# THIS FILE IS AUTOGENERATED BY import-tests.py
|
||||||
|
# DO NOT EDIT!
|
||||||
== css-writing-modes/abs-pos-non-replaced-icb-vlr-003.xht reference/ref-filled-green-100px-square.xht
|
== css-writing-modes/abs-pos-non-replaced-icb-vlr-003.xht reference/ref-filled-green-100px-square.xht
|
||||||
== css-writing-modes/abs-pos-non-replaced-icb-vlr-005.xht css-writing-modes/abs-pos-non-replaced-icb-vrl-004-ref.xht
|
== css-writing-modes/abs-pos-non-replaced-icb-vlr-005.xht css-writing-modes/abs-pos-non-replaced-icb-vrl-004-ref.xht
|
||||||
== css-writing-modes/abs-pos-non-replaced-icb-vlr-007.xht reference/ref-filled-green-100px-square.xht
|
== css-writing-modes/abs-pos-non-replaced-icb-vlr-007.xht reference/ref-filled-green-100px-square.xht
|
||||||
|
@ -919,4 +921,3 @@ fuzzy-if(OSX||winWidget,153,612) == css-writing-modes/writing-mode-vertical-lr-0
|
||||||
fuzzy-if(OSX||winWidget,153,612) == css-writing-modes/writing-mode-vertical-rl-001.xht css-writing-modes/reftest/writing-mode-vertical-rl-001-ref.xht
|
fuzzy-if(OSX||winWidget,153,612) == css-writing-modes/writing-mode-vertical-rl-001.xht css-writing-modes/reftest/writing-mode-vertical-rl-001-ref.xht
|
||||||
fuzzy-if(OSX||winWidget,153,612) == css-writing-modes/writing-mode-vertical-rl-002.xht css-writing-modes/reftest/writing-mode-vertical-rl-002-ref.xht
|
fuzzy-if(OSX||winWidget,153,612) == css-writing-modes/writing-mode-vertical-rl-002.xht css-writing-modes/reftest/writing-mode-vertical-rl-002-ref.xht
|
||||||
fuzzy-if(OSX||winWidget,153,612) == css-writing-modes/writing-mode-vertical-rl-003.htm css-writing-modes/writing-mode-vertical-rl-003-ref.htm
|
fuzzy-if(OSX||winWidget,153,612) == css-writing-modes/writing-mode-vertical-rl-003.htm css-writing-modes/writing-mode-vertical-rl-003-ref.htm
|
||||||
|
|
||||||
|
|
|
@ -230,7 +230,7 @@ reftest-no-accel:
|
||||||
chunks:
|
chunks:
|
||||||
by-test-platform:
|
by-test-platform:
|
||||||
macosx.*: 1
|
macosx.*: 1
|
||||||
windows.*: 2
|
windows.*/opt: 2
|
||||||
default: 4
|
default: 4
|
||||||
mozharness:
|
mozharness:
|
||||||
chunked:
|
chunked:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче