def test_gather_baselines(self): example_json = layouttestresults_unittest.LayoutTestResultsTest.example_full_results_json results_json = json.loads(strip_json_wrapper(example_json)) server = RebaselineServer() server._test_config = get_test_config() server._gather_baselines(results_json) self.assertEqual( results_json['tests']['svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr.html']['state'], 'needs_rebaseline') self.assertNotIn('prototype-chocolate.html', results_json['tests'])
def test_gather_baselines(self): example_json = layout_test_results_unittest.LayoutTestResultsTest.example_full_results_json results_json = json.loads(strip_json_wrapper(example_json)) server = RebaselineServer() server._test_config = get_test_config() server._gather_baselines(results_json) self.assertEqual( results_json['tests']['svg/dynamic-updates/SVGFEDropShadowElement-dom-stdDeviation-attr.html']['state'], 'needs_rebaseline') self.assertNotIn('prototype-chocolate.html', results_json['tests'])
def __init__(self, path): super(WebKitPatch, self).__init__() self._path = path self.commands = [ AnalyzeBaselines(), AutoRebaseline(), CopyExistingBaselinesInternal(), CrashLog(), FlakyTests(), LayoutTestsServer(), OptimizeBaselines(), PrettyDiff(), PrintBaselines(), PrintExpectations(), Rebaseline(), RebaselineCL(), RebaselineExpectations(), RebaselineServer(), RebaselineTest(), ] self.help_command = HelpCommand(tool=self) self.commands.append(self.help_command)
def __init__(self, path): MultiCommandTool.__init__(self, commands=[ AnalyzeBaselines(), AutoRebaseline(), CommitAnnouncerCommand(), CopyExistingBaselinesInternal(), CrashLog(), FlakyTests(), LayoutTestsServer(), OptimizeBaselines(), PrettyDiff(), PrintBaselines(), PrintExpectations(), Rebaseline(), RebaselineExpectations(), RebaselineFromTryJobs(), RebaselineJson(), RebaselineServer(), RebaselineTest(), ]) Host.__init__(self) self._path = path