Exemple #1
0
import sys
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 CSS3 Color Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-color')))

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

# Set up
suite = TestSuite('css3-color', 'CSS Color Module Level 3 Test Suite', 'http://www.w3.org/TR/css3-color/')

# Add approved tests
root = join('approved', 'css3-color', '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 #2
0
import sys
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)):
Exemple #3
0
# run from css test suite repo root

sourcePath = '.'
suiteName = 'css2.1'
distPath = join('dist', suiteName)
buildPath = 'build'

print "Building CSS2.1 Test Suite from repository %s into %s" % \
      (os.path.abspath(sourcePath), os.path.abspath(distPath))

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

# Set up
suite = TestSuite(suiteName, 'CSS2.1 Test Suite', 'http://www.w3.org/TR/CSS21/')

# Add approved tests
root = join('approved', 'css2.1', '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')
  if exists(join(testroot, reftestPath)):
    suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, '.xht')
if exists(join(root, reftestPath)):
  suite.addReftests(root, reftestPath)
for src, dst in rawDirs.items():
  if exists(join(root,src)):
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 Text Decoration Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css-text-decor-3')))

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

# Set up
suite = TestSuite('css-text-decor-3_dev',
                  'CSS Text Decoration Module Level 3 Test Suite',
                  'http://www.w3.org/TR/css-text-decor-3/')
suite.setFormats(('html5', 'xhtml1'))

# Add approved tests
root = join('approved', 'css-text-decor-3', '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')
Exemple #5
0
import sys
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 Style Attributes Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css-style-attr')))

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

# Set up
suite = TestSuite('css-style-attr', 'CSS Style Attributes Module Test Suite',
                  'http://www.w3.org/TR/css-style-attr/')

# Add approved tests
root = join('approved', 'css-style-attr', '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 Writing Modes Level 3 Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-writing-modes')))

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

# Set up
suite = TestSuite('css-writing-modes-3_dev',
                  'CSS Writing Modes Module Level 3 Test Suite',
                  'http://www.w3.org/TR/css3-writing-modes/')
suite.setFormats(('html5', 'xhtml1'))

# Add approved tests
root = join('approved', 'css3-writing-modes', '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')
Exemple #7
0
import sys
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 Multicol Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-multicol')))

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

# Set up
suite = TestSuite('css3-multicol', 'CSS Multi-column Layout Module Test Suite',
                  'http://www.w3.org/TR/css3-multicol/')

# Add approved tests
root = join('approved', 'css3-multicol', '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')
    if exists(join(testroot, reftestPath)):
        suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, '.xht')
if exists(join(root, reftestPath)):
    suite.addReftests(root, reftestPath)
for src, dst in rawDirs.items():
    if exists(join(root, src)):
import sys
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 Filter Effects Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'filter-effects')))

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

# Set up
suite = TestSuite('filter-effects', 'Filter Effects 1.0 Test Suite',
                  'http://www.w3.org/TR/filter-effects/')
suite.setFormats(('html5', 'xhtml1'))

# Add approved tests
root = join('approved', 'filter-effects', '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)):

# run from css test suite repo root

sourcePath = "."
suiteName = "css2.1"
distPath = join("dist", suiteName)
buildPath = "build"

print "Building CSS2.1 Test Suite from repository %s into %s" % (os.path.abspath(sourcePath), os.path.abspath(distPath))

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

# Set up
suite = TestSuite(suiteName, "CSS2.1 Test Suite", "http://www.w3.org/TR/CSS21/")

# Add approved tests
root = join("approved", "css2.1", "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")
    if exists(join(testroot, reftestPath)):
        suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, ".xht")
if exists(join(root, reftestPath)):
    suite.addReftests(root, reftestPath)
for src, dst in rawDirs.items():
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 Backgrounds and Borders 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('css3-background',
                  'CSS Backgrounds and Borders Module Test Suite',
                  'http://www.w3.org/TR/css3-background/')

# Add approved tests
root = join('approved', 'css3-background', '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)):
Exemple #11
0
import sys
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 Masking Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css-masking')))

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

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

# Add approved tests
root = join('approved', 'css-masking', '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)):
from w3ctestlib.Indexer import Indexer
from w3ctestlib.Utils import listdirs, listfiles, basepath

# run from css test suite repo root

print "Building CSS Backgrounds and Borders 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(
    "css3-background", "CSS Backgrounds and Borders Module Test Suite", "http://www.w3.org/TR/css3-background/"
)

# Add approved tests
root = join("approved", "css3-background", "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")
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 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")