Exemple #1
0
 def __init__(self, host, port_name, **kwargs):
     ApplePort.__init__(self, host, port_name, **kwargs)
     self._leak_detector = LeakDetector(self)
     if self.get_option("leaks"):
         # DumpRenderTree slows down noticably if we run more than about 1000 tests in a batch
         # with MallocStackLogging enabled.
         self.set_option_default("batch_size", 1000)
Exemple #2
0
 def __init__(self, host, port_name, **kwargs):
     ApplePort.__init__(self, host, port_name, **kwargs)
     self._leak_detector = LeakDetector(self)
     if self.get_option("leaks"):
         # DumpRenderTree slows down noticably if we run more than about 1000 tests in a batch
         # with MallocStackLogging enabled.
         self.set_option_default("batch_size", 1000)
Exemple #3
0
 def baseline_path(self):
     if self.name() == self._most_recent_version():
         # Baselines for the most recently shiping version should go into 'mac', not 'mac-foo'.
         if self.get_option('webkit_test_runner'):
             return self._webkit_baseline_path('mac-wk2')
         return self._webkit_baseline_path('mac')
     return ApplePort.baseline_path(self)
Exemple #4
0
 def baseline_path(self):
     if self.name() == self._most_recent_version():
         # Baselines for the most recently shiping version should go into 'mac', not 'mac-foo'.
         if self.get_option('webkit_test_runner'):
             return self._webkit_baseline_path('mac-wk2')
         return self._webkit_baseline_path('mac')
     return ApplePort.baseline_path(self)
Exemple #5
0
    def do_text_results_differ(self, expected_text, actual_text):
        # Sanity was restored in WK2, so we don't need this hack there.
        if self.get_option('webkit_test_runner'):
            return ApplePort.do_text_results_differ(self, expected_text, actual_text)

        # This is a hack (which dates back to ORWT).
        # Windows does not have an EDITING DELEGATE, so we strip any EDITING DELEGATE
        # messages to make more of the tests pass.
        # It's possible more of the ports might want this and this could move down into WebKitPort.
        delegate_regexp = re.compile("^EDITING DELEGATE: .*?\n", re.MULTILINE)
        expected_text = delegate_regexp.sub("", expected_text)
        actual_text = delegate_regexp.sub("", actual_text)
        return expected_text != actual_text
Exemple #6
0
 def __init__(self, **kwargs):
     ApplePort.__init__(self, **kwargs)
     self._operating_system = "win"
Exemple #7
0
 def __init__(self, host, **kwargs):
     ApplePort.__init__(self, host, **kwargs)
     self._operating_system = 'win'
Exemple #8
0
 def __init__(self, host, **kwargs):
     self._operating_system = 'win'
     ApplePort.__init__(self, host, **kwargs)
Exemple #9
0
 def __init__(self, **kwargs):
     ApplePort.__init__(self, **kwargs)
     self._operating_system = 'win'