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 #2
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)):
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 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)):
Exemple #4
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 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)):
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 #6
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 #7
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('css21_dev', '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)):
Exemple #8
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)):
Exemple #9
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 Flexbox Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-flexbox')))

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

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

# Add approved tests
root = join('approved', 'css3-flexbox', '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 #10
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 Shapes Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-shapes')))

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

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

# Add approved tests
root = join('approved', 'css3-shapes', '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 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 #12
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 Fonts Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-fonts')))

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

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

# Add approved tests
root = join('approved', 'css3-fonts', '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 #13
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', '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)):
Exemple #14
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 Text Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-text')))

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

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

# Add approved tests
root = join('approved', 'css3-text', '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 #15
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 Transitions Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css-transitions-1')))

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

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

# Add approved tests
root = join('approved', 'css3-transitions', '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)):
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)):
Exemple #17
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 Conditional Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-conditional')))

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

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

# Add approved tests
root = join('approved', 'css3-conditional', '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 #18
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)
Exemple #19
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)):
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 Animations Test Suite from repository %s into %s" % \
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css-animations-1')))

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

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

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