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

Functions

def valueTreeToString (fout, value, path='.')
 
def parseAndSaveValueTree (input, actual_path)
 
def rewriteValueTree (value, rewrite_path)
 

Variables

 input_path = sys.argv[1]
 
 base_path = os.path.splitext(input_path)[0]
 
string actual_path = base_path + '.actual'
 
string rewrite_path = base_path + '.rewrite'
 
string rewrite_actual_path = base_path + '.actual-rewrite'
 
 input = file( input_path, 'rt' ).read()
 
def root = parseAndSaveValueTree( input, actual_path )
 
def rewrite = rewriteValueTree( json.write( root ), rewrite_path )
 
def rewrite_root = parseAndSaveValueTree( rewrite, rewrite_actual_path )
 

Function Documentation

◆ parseAndSaveValueTree()

def pyjsontestrunner.parseAndSaveValueTree (   input,
  actual_path 
)

◆ rewriteValueTree()

def pyjsontestrunner.rewriteValueTree (   value,
  rewrite_path 
)

◆ valueTreeToString()

def pyjsontestrunner.valueTreeToString (   fout,
  value,
  path = '.' 
)

Variable Documentation

◆ actual_path

string pyjsontestrunner.actual_path = base_path + '.actual'

◆ base_path

pyjsontestrunner.base_path = os.path.splitext(input_path)[0]

◆ input

pyjsontestrunner.input = file( input_path, 'rt' ).read()

◆ input_path

pyjsontestrunner.input_path = sys.argv[1]

◆ rewrite

def pyjsontestrunner.rewrite = rewriteValueTree( json.write( root ), rewrite_path )

◆ rewrite_actual_path

string pyjsontestrunner.rewrite_actual_path = base_path + '.actual-rewrite'

◆ rewrite_path

string pyjsontestrunner.rewrite_path = base_path + '.rewrite'

◆ rewrite_root

def pyjsontestrunner.rewrite_root = parseAndSaveValueTree( rewrite, rewrite_actual_path )

◆ root

def pyjsontestrunner.root = parseAndSaveValueTree( input, actual_path )