webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Public Attributes | List of all members
webkitpy.w3c.test_parser.TestParser Class Reference
Inheritance diagram for webkitpy.w3c.test_parser.TestParser:

Public Member Functions

def __init__ (self, options, filename, host=Host())
 
def load_file (self, filename, is_ref=False)
 
def analyze_test (self, test_contents=None, ref_contents=None)
 
def reference_links_of_type (self, reftest_type)
 
def is_jstest (self)
 
def is_wpt_manualtest (self)
 
def is_slow_test (self)
 
def potential_ref_filename (self)
 
def is_wpt_reftest (self)
 
def support_files (self, doc)
 

Public Attributes

 options
 
 filename
 
 host
 
 filesystem
 
 test_doc
 
 ref_doc
 

Constructor & Destructor Documentation

◆ __init__()

def webkitpy.w3c.test_parser.TestParser.__init__ (   self,
  options,
  filename,
  host = Host() 
)

Member Function Documentation

◆ analyze_test()

def webkitpy.w3c.test_parser.TestParser.analyze_test (   self,
  test_contents = None,
  ref_contents = None 
)
Analyzes a file to determine if it's a test, what type of test, and what reference or support files it requires. Returns all of the test info 

◆ is_jstest()

def webkitpy.w3c.test_parser.TestParser.is_jstest (   self)
Returns whether the file appears to be a jstest, by searching for usage of W3C-style testharness paths.

◆ is_slow_test()

def webkitpy.w3c.test_parser.TestParser.is_slow_test (   self)

◆ is_wpt_manualtest()

def webkitpy.w3c.test_parser.TestParser.is_wpt_manualtest (   self)
Returns whether the test is a manual test according WPT rules (i.e. file ends with -manual.htm path).

◆ is_wpt_reftest()

def webkitpy.w3c.test_parser.TestParser.is_wpt_reftest (   self)
Returns whether the test is a ref test according WPT rules (i.e. file has a -ref.html counterpart).

◆ load_file()

def webkitpy.w3c.test_parser.TestParser.load_file (   self,
  filename,
  is_ref = False 
)

◆ potential_ref_filename()

def webkitpy.w3c.test_parser.TestParser.potential_ref_filename (   self)

◆ reference_links_of_type()

def webkitpy.w3c.test_parser.TestParser.reference_links_of_type (   self,
  reftest_type 
)

◆ support_files()

def webkitpy.w3c.test_parser.TestParser.support_files (   self,
  doc 
)
Searches the file for all paths specified in url()'s, href or src attributes.

Member Data Documentation

◆ filename

webkitpy.w3c.test_parser.TestParser.filename

◆ filesystem

webkitpy.w3c.test_parser.TestParser.filesystem

◆ host

webkitpy.w3c.test_parser.TestParser.host

◆ options

webkitpy.w3c.test_parser.TestParser.options

◆ ref_doc

webkitpy.w3c.test_parser.TestParser.ref_doc

◆ test_doc

webkitpy.w3c.test_parser.TestParser.test_doc

The documentation for this class was generated from the following file: