webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Functions | Variables
buildtests Namespace Reference

Functions

def appendtest (tests, input, expected)
 

Variables

string doctmpl
 
string testobj = "{name:'%s', input:'%s', expected:'%s'}"
 
 files = os.listdir('dat/')
 
list tests = []
 
string input = ""
 
string expected = ""
 
string state = ""
 
 f = open('dat/'+file)
 
 line = f.readline()
 
 barename = file.replace(".dat", "")
 
 out = open('tests/'+barename+".html", "w")
 

Function Documentation

◆ appendtest()

def buildtests.appendtest (   tests,
  input,
  expected 
)

Variable Documentation

◆ barename

buildtests.barename = file.replace(".dat", "")

◆ doctmpl

string buildtests.doctmpl
Initial value:
1 = """<!doctype html>
2 <title>WebVTT cue data parser test %s</title>
3 <style>video { display:none }</style>
4 <script src=/../../../resources/testharness.js></script>
5 <script src=/../../../resources/testharnessreport.js></script>
6 <script src=/core/standards/html-parsing/html5lib_harness/template.js></script>
7 <script src=/core/standards/html-parsing/html5lib_harness/common.js></script>
8 <script src=../common.js></script>
9 <div id=log></div>
10 <script>
11 runTests([
12 %s
13 ]);
14 </script>"""

◆ expected

string buildtests.expected = ""

◆ f

buildtests.f = open('dat/'+file)

◆ files

buildtests.files = os.listdir('dat/')

◆ input

string buildtests.input = ""

◆ line

buildtests.line = f.readline()

◆ out

buildtests.out = open('tests/'+barename+".html", "w")

◆ state

string buildtests.state = ""

◆ testobj

string buildtests.testobj = "{name:'%s', input:'%s', expected:'%s'}"

◆ tests

list buildtests.tests = []