| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 import collections | 4 import collections |
| 5 import itertools | 5 import itertools |
| 6 import os | 6 import os |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 from telemetry.testing import fakes | 9 from telemetry.testing import fakes |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 def GetArchName(self): | 26 def GetArchName(self): |
| 27 return 'x86_64' | 27 return 'x86_64' |
| 28 | 28 |
| 29 def GetOSName(self): | 29 def GetOSName(self): |
| 30 return 'win' | 30 return 'win' |
| 31 | 31 |
| 32 def GetOSVersionName(self): | 32 def GetOSVersionName(self): |
| 33 return 'win8' | 33 return 'win8' |
| 34 | 34 |
| 35 def GetOSVersionDetailString(self): |
| 36 # Not sure whether this is accurate. |
| 37 return 'Windows 8.1' |
| 38 |
| 35 | 39 |
| 36 class WebGLTestInfo(object): | 40 class WebGLTestInfo(object): |
| 37 def __init__(self, url): | 41 def __init__(self, url): |
| 38 self.name = ('WebglConformance_%s' % | 42 self.name = ('WebglConformance_%s' % |
| 39 url.replace('/', '_').replace('-', '_'). | 43 url.replace('/', '_').replace('-', '_'). |
| 40 replace('\\', '_').rpartition('.')[0].replace('.', '_')) | 44 replace('\\', '_').rpartition('.')[0].replace('.', '_')) |
| 41 self.url = 'file://' + url | 45 self.url = 'file://' + url |
| 42 | 46 |
| 43 Conditions = collections.\ | 47 Conditions = collections.\ |
| 44 namedtuple('Conditions', ['non_gpu', 'vendors', 'devices']) | 48 namedtuple('Conditions', ['non_gpu', 'vendors', 'devices']) |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 conflicts = non_gpu_conflicts and gpu_conflicts | 146 conflicts = non_gpu_conflicts and gpu_conflicts |
| 143 | 147 |
| 144 if conflicts: | 148 if conflicts: |
| 145 print "WARNING: Found a conflict for", pattern, " :" | 149 print "WARNING: Found a conflict for", pattern, " :" |
| 146 print " ", c1 | 150 print " ", c1 |
| 147 print " ", c2 | 151 print " ", c2 |
| 148 | 152 |
| 149 print " Type:" + (" (non-gpu)" if non_gpu_conflicts else "") + \ | 153 print " Type:" + (" (non-gpu)" if non_gpu_conflicts else "") + \ |
| 150 (" (gpu)" if gpu_conflicts else "") | 154 (" (gpu)" if gpu_conflicts else "") |
| 151 self.assertEquals(conflicts, False) | 155 self.assertEquals(conflicts, False) |
| OLD | NEW |