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

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

Issue 2133673003: Run WebGL 1.0 tests as part of the WebGL 2.0 conformance suite. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More suppressions for failures and flaky tests. Created 4 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: content/test/gpu/gpu_tests/webgl_conformance.py
diff --git a/content/test/gpu/gpu_tests/webgl_conformance.py b/content/test/gpu/gpu_tests/webgl_conformance.py
index dffc795e6fd28e7867caa0910ae37dd32de28494..73af5dfdbe0ad094105f58802b0d1cd28e073d1d 100644
--- a/content/test/gpu/gpu_tests/webgl_conformance.py
+++ b/content/test/gpu/gpu_tests/webgl_conformance.py
@@ -329,11 +329,15 @@ class WebglConformance(gpu_test_base.TestBase):
i = 0
min_version = None
+ max_version = None
while i < len(line_tokens):
token = line_tokens[i]
if token == '--min-version':
i += 1
min_version = line_tokens[i]
+ elif token == '--max-version':
+ i += 1
+ max_version = line_tokens[i]
i += 1
min_version_to_compare = min_version or folder_min_version
@@ -342,6 +346,9 @@ class WebglConformance(gpu_test_base.TestBase):
_CompareVersion(version, min_version_to_compare) < 0):
continue
+ if max_version and _CompareVersion(version, max_version) > 0:
+ continue
+
if (webgl2_only and not '.txt' in test_name and
(not min_version_to_compare or
not min_version_to_compare.startswith('2'))):

Powered by Google App Engine
This is Rietveld 408576698