for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-regions', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-regions'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css-style-attr', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css-style-attr'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-writing-modes', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-writing-modes'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not file.endswith('.xht'): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-multicol', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-multicol'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'filter-effects', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'filter-effects'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-transitions', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css-transitions-1'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-background', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-background'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-regions', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-regions'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-text', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-text'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-text', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-text'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-multicol', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-multicol'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css-style-attr', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css-style-attr'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-writing-modes', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-writing-modes'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-animations', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css-animations-1'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-transitions', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css-transitions-1'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-conditional', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-conditional'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-color', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-color'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-fonts', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-fonts'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-flexbox', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-flexbox'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css-text-decor-3', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css-text-decor-3'), indexer)
def grep(file): if not file.endswith(".xht"): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build # sys.excepthook = debugHook data = join("approved", "css2.1", "data") indexer = Indexer( suite, join(data, "sections.dat"), True, templatePathList=[data], extraData={"devel": False, "official": True} ) print "Building" shutil.rmtree(buildPath, True) os.makedirs(buildPath) suite.buildInto(buildPath, indexer) print "Moving output to " + distPath shutil.rmtree(distPath, True) os.makedirs(distPath) # ensure parent directories exist shutil.rmtree(distPath) os.rename(buildPath, distPath)
for src, dst in rawDirs.items(): if exists(join(root, src)): suite.addRaw(join(root, src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith(".list"): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith(".xht") or file.endswith(".html")): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join("approved", "css3-regions", "data") indexer = Indexer( suite, join(data, "sections.dat"), True, templatePathList=[data], extraData={"devel": False, "official": True} ) suite.buildInto(join("dist", "css3-regions"), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-flexbox', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-flexbox'), indexer)
for src, dst in rawDirs.items(): if exists(join(root, src)): suite.addRaw(join(root, src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith(".list"): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith(".xht") or file.endswith(".html")): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join("approved", "css3-background", "data") indexer = Indexer( suite, join(data, "sections.dat"), True, templatePathList=[data], extraData={"devel": False, "official": True} ) suite.buildInto(join("dist", "css3-background"), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'filter-effects', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'filter-effects'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css-masking', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css-masking'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-exclusions', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-exclusions'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-background', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-background'), indexer)
else: def grep(file): if not file.endswith('.xht'): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build #sys.excepthook = debugHook data = join('approved', 'css2.1', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) print "Building" shutil.rmtree(buildPath, True) os.makedirs(buildPath) suite.buildInto(buildPath, indexer) print "Moving output to " + distPath shutil.rmtree(distPath, True) os.makedirs(distPath) # ensure parent directories exist shutil.rmtree(distPath) os.rename(buildPath, distPath)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-fonts', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-fonts'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css-text-decor-3', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css-text-decor-3'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-shapes', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-shapes'), indexer)
for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-conditional', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel': False, 'official': True }) suite.buildInto(join('dist', 'css3-conditional'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-exclusions', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-exclusions'), indexer)
suite.addTestsByExt(root, '.html') if exists(join(root, reftestPath)): suite.addReftests(root, reftestPath) for src, dst in rawDirs.items(): if exists(join(root,src)): suite.addRaw(join(root,src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith('.list'): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not (file.endswith('.xht') or file.endswith('.html')): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join('approved', 'css3-transforms', 'data') indexer = Indexer(suite, join(data, 'sections.dat'), True, templatePathList=[data], extraData={ 'devel' : False, 'official' : True }) suite.buildInto(join('dist', 'css3-transforms'), indexer)
for src, dst in rawDirs.items(): if exists(join(root, src)): suite.addRaw(join(root, src), dst) # Add unreviewed tests for path in unreviewed: if path.endswith(".list"): print "Adding unreviewed reftests from %s" % path suite.addReftests(basepath(path), basename(path)) else: def grep(file): if not file.endswith(".xht"): return False for line in open(join(path, file)): if line.find(suite.specroot) != -1: return True return False files = listfiles(path) files = filter(grep, files) print "Adding %d unreviewed selftests from %s" % (len(files), path) suite.addTestsByList(path, files) # Build data = join("approved", "css-style-attr", "data") indexer = Indexer( suite, join(data, "sections.dat"), True, templatePathList=[data], extraData={"devel": False, "official": True} ) suite.buildInto(join("dist", "css-style-attr"), indexer)