本文整理匯總了Python中webkitpy.port.apple.ApplePort.do_text_results_differ方法的典型用法代碼示例。如果您正苦於以下問題:Python ApplePort.do_text_results_differ方法的具體用法?Python ApplePort.do_text_results_differ怎麽用?Python ApplePort.do_text_results_differ使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類webkitpy.port.apple.ApplePort
的用法示例。
在下文中一共展示了ApplePort.do_text_results_differ方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: do_text_results_differ
# 需要導入模塊: from webkitpy.port.apple import ApplePort [as 別名]
# 或者: from webkitpy.port.apple.ApplePort import do_text_results_differ [as 別名]
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