Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1021)

Unified Diff: Tools/Scripts/webkitpy/layout_tests/controllers/manager.py

Issue 20830003: Get rid of the distinction between modifiers and expectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: clean up a couple things Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
diff --git a/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py b/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
index fbbeda272767c9edc703dde0bfa7eb069bbbc2cb..59b0f9b46ab383d212a16cc8058ad5a7890d90ed 100644
--- a/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
+++ b/Tools/Scripts/webkitpy/layout_tests/controllers/manager.py
@@ -139,12 +139,11 @@ class Manager(object):
return self._is_http_test(test_file) or self._is_perf_test(test_file)
def _test_is_expected_missing(self, test_file):
- return (self._expectations.model().has_keyword(test_file, test_expectations.MISSING_KEYWORD)
- or self._expectations.model().has_keyword(test_file, test_expectations.NEEDS_REBASELINE_KEYWORD)
- or self._expectations.model().has_keyword(test_file, test_expectations.NEEDS_MANUAL_REBASELINE_KEYWORD))
+ expectations = self._expectations.model().get_expectations(test_file)
+ return test_expectations.MISSING in expectations or test_expectations.NEEDS_REBASELINE in expectations or test_expectations.NEEDS_MANUAL_REBASELINE in expectations
Dirk Pranke 2013/07/26 23:07:28 Nit: Maybe push this into TetsExpectationsLine.is_
def _test_is_slow(self, test_file):
- return self._expectations.has_modifier(test_file, test_expectations.SLOW)
+ return test_expectations.SLOW in self._expectations.model().get_expectations(test_file)
Dirk Pranke 2013/07/26 23:07:28 Nit: maybe push this into TestExpectationsLine.tes
def needs_servers(self, test_names):
return any(self._test_requires_lock(test_name) for test_name in test_names)

Powered by Google App Engine
This is Rietveld 408576698