コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
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)
コード例 #4
0
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)
コード例 #5
0
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)
コード例 #6
0
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)
コード例 #7
0
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)
コード例 #8
0
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)
コード例 #9
0
ファイル: build-css3-text.py プロジェクト: ystskm/csswg-test
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)
コード例 #10
0
ファイル: build-css3-text.py プロジェクト: Hiroyou/csswg-test
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)
コード例 #11
0
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)
コード例 #12
0
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)
コード例 #13
0
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)
コード例 #14
0
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)
コード例 #15
0
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)
コード例 #16
0
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)
コード例 #17
0
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)
コード例 #18
0
ファイル: build-css3-fonts.py プロジェクト: Tayatt/csswg-test
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)
コード例 #19
0
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)
コード例 #20
0
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)
コード例 #21
0
        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)
コード例 #22
0
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)
コード例 #23
0
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)
コード例 #24
0
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)
コード例 #25
0
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)
コード例 #26
0
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)
コード例 #27
0
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)
コード例 #28
0
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)
コード例 #29
0
  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)

コード例 #30
0
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)
コード例 #31
0
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)
コード例 #32
0
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)
コード例 #33
0
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)
コード例 #34
0
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)
コード例 #35
0
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)
コード例 #36
0
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)