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

Unified Diff: content/test/gpu/gpu_tests/test_expectations.py

Issue 2369373003: Revert of Port WebGL extension availability tests to the integration test harness. (Closed)
Patch Set: Created 4 years, 3 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: content/test/gpu/gpu_tests/test_expectations.py
diff --git a/content/test/gpu/gpu_tests/test_expectations.py b/content/test/gpu/gpu_tests/test_expectations.py
index c722c86a80e84f3c59cc3b81c53bd778c1b023f8..695d99f2da48fb529e29f81c75efe14d2540deda 100644
--- a/content/test/gpu/gpu_tests/test_expectations.py
+++ b/content/test/gpu/gpu_tests/test_expectations.py
@@ -89,16 +89,12 @@
class TestExpectations(object):
"""A class which defines the expectations for a page set test execution"""
- def __init__(self, url_prefixes=None):
+ def __init__(self):
self._expectations = []
- self._url_prefixes = []
self._skip_matching_names = False
self._built_expectation_cache = True
self._ClearExpectationsCache()
self.SetExpectations()
- if url_prefixes:
- for p in url_prefixes:
- self._url_prefixes.append(p)
def SetExpectations(self):
"""Called on creation. Override to set up custom expectations."""
@@ -181,13 +177,6 @@
query_index = url_path.find('?')
if query_index > 0:
url_path = url_path[0:query_index]
- # Look for the URL prefixes specified at construction time, and
- # trim the first one found, if any.
- if self._url_prefixes:
- for p in self._url_prefixes:
- if url_path.startswith(p):
- url_path = url_path[len(p):]
- break
return url_path
def _GetExpectationObjectForPage(self, browser, page):
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_test_expectations.py ('k') | content/test/gpu/gpu_tests/webgl2_conformance_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698