Exemple #1
0
from os.path import join, exists, basename
from w3ctestlib.Suite import TestSuite
from w3ctestlib.Indexer import Indexer
from w3ctestlib.Utils import listdirs, listfiles, basepath

# run from css test suite repo root

print "Building CSS Transforms Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-transforms')))

unreviewed = sys.argv[1:]
print "Requested unreviewed source directories."

# Set up
suite = TestSuite('css3-transforms', 'CSS Transforms Module Test Suite', 'http://www.w3.org/TR/css3-transforms/')
suite.setFormats(('html5', 'xhtml1'))

# Add approved tests
root = join('approved', 'css3-transforms', 'src')
dirs = listdirs(root)
for dir in dirs:
  if dir in skipDirs or rawDirs.has_key(dir): continue
  testroot = join(root, dir)
  suite.addTestsByExt(testroot, '.xht')
  suite.addTestsByExt(testroot, '.html')
  if exists(join(testroot, reftestPath)):
    suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, '.xht')
suite.addTestsByExt(root, '.html')
if exists(join(root, reftestPath)):
  suite.addReftests(root, reftestPath)
from os.path import join, exists, basename
from w3ctestlib.Suite import TestSuite
from w3ctestlib.Indexer import Indexer
from w3ctestlib.Utils import listdirs, listfiles, basepath

# run from css test suite repo root

print "Building CSS Exclusions Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-exclusions')))

unreviewed = sys.argv[1:]
print "Requested unreviewed source directories."

# Set up
suite = TestSuite('css-exclusions-1_dev', 'CSS Exclusions Module Test Suite', 'http://www.w3.org/TR/css3-exclusions/')
suite.setFormats(('html5', 'xhtml1', 'xhtml1print'))

# Add approved tests
root = join('approved', 'css3-exclusions', 'src')
dirs = listdirs(root)
for dir in dirs:
  if dir in skipDirs or rawDirs.has_key(dir): continue
  testroot = join(root, dir)
  suite.addTestsByExt(testroot, '.xht')
  suite.addTestsByExt(testroot, '.html')
  if exists(join(testroot, reftestPath)):
    suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, '.xht')
suite.addTestsByExt(root, '.html')
if exists(join(root, reftestPath)):
  suite.addReftests(root, reftestPath)
Exemple #3
0
from w3ctestlib.Suite import TestSuite
from w3ctestlib.Indexer import Indexer
from w3ctestlib.Utils import listdirs, listfiles, basepath

# run from css test suite repo root

print "Building CSS Exclusions Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-exclusions')))

unreviewed = sys.argv[1:]
print "Requested unreviewed source directories."

# Set up
suite = TestSuite('css-exclusions-1_dev', 'CSS Exclusions Module Test Suite',
                  'http://www.w3.org/TR/css3-exclusions/')
suite.setFormats(('html5', 'xhtml1', 'xhtml1print'))

# Add approved tests
root = join('approved', 'css3-exclusions', 'src')
dirs = listdirs(root)
for dir in dirs:
    if dir in skipDirs or rawDirs.has_key(dir): continue
    testroot = join(root, dir)
    suite.addTestsByExt(testroot, '.xht')
    suite.addTestsByExt(testroot, '.html')
    if exists(join(testroot, reftestPath)):
        suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, '.xht')
suite.addTestsByExt(root, '.html')
if exists(join(root, reftestPath)):
    suite.addReftests(root, reftestPath)
from w3ctestlib.Indexer import Indexer
from w3ctestlib.Utils import listdirs, listfiles, basepath

# run from css test suite repo root

print "Building CSS Regions Test Suite from repository %s into %s" % (
    os.path.abspath("."),
    os.path.abspath(os.path.join(".", "dist", "css3-regions")),
)

unreviewed = sys.argv[1:]
print "Requested unreviewed source directories."

# Set up
suite = TestSuite("css-regions-1_dev", "CSS Regions Module Test Suite", "http://www.w3.org/TR/css3-regions/")
suite.setFormats(("html5", "xhtml1"))

# Add approved tests
root = join("approved", "css3-regions", "src")
dirs = listdirs(root)
for dir in dirs:
    if dir in skipDirs or rawDirs.has_key(dir):
        continue
    testroot = join(root, dir)
    suite.addTestsByExt(testroot, ".xht")
    suite.addTestsByExt(testroot, ".html")
    if exists(join(testroot, reftestPath)):
        suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, ".xht")
suite.addTestsByExt(root, ".html")
if exists(join(root, reftestPath)):