/external/chromium_org/chrome/test/mini_installer/ |
verifier.py | 7 """Verifies that the current machine states match the expectation.""" 14 key is an expectation name and the associated value is an expectation 15 dictionary. The expectation dictionary may contain an optional 16 'condition' property, a string that determines whether the expectation 17 should be verified. Each subclass can specify a different expectation 18 name and expectation dictionary. 21 for expectation_name, expectation in verifier_input.iteritems(): 22 if 'condition' in expectation: 23 condition = variable_expander.Expand(expectation['condition'] [all...] |
file_verifier.py | 11 """Verifies that the current files match the expectation dictionaries.""" 13 def _VerifyExpectation(self, expectation_name, expectation, 18 |expectation|. 23 expectation: A dictionary with the following key and value: 29 assert expectation['exists'] == file_exists, \
|
process_verifier.py | 10 """Verifies that the running processes match the expectation dictionaries.""" 12 def _VerifyExpectation(self, expectation_name, expectation, 17 |expectation|. 22 expectation: A dictionary with the following key and value: 31 assert expectation['running'] == is_running, \
|
registry_verifier.py | 42 def _VerifyExpectation(self, expectation_name, expectation, 46 Verifies a registry key according to the |expectation|. 51 expectation: A dictionary with the following keys and values: 69 # Key doesn't exist. See that it matches the expectation. 70 assert not expectation['exists'], ('Registry key %s is missing' % 73 # The key exists, see that it matches the expectation. 74 assert expectation['exists'], ('Registry key %s exists' % key) 77 if 'values' not in expectation: 79 for value, value_expectation in expectation['values'].iteritems():
|
/external/chromium_org/chrome/test/functional/ispy/server/ |
update_mask_handler.py | 32 expectation = self.request.get('expectation') 35 if not (test_run and expectation): 38 {'error': '\'test_run\' and \'expectation\' must be ' 45 if not self.ispy.FailureExists(test_run, expectation): 51 failure = self.ispy.GetFailure(test_run, expectation) 54 ispy_utils.GetExpectationPath(expectation, 'mask.png'), 57 self.ispy.RemoveFailure(test_run, expectation)
|
debug_view_handler.py | 29 expectation: The expectation name. 32 expectation = self.request.get('expectation') 33 expected_path = ispy_utils.GetExpectationPath(expectation, 'expected.png') 34 actual_path = ispy_utils.GetFailurePath(test_run, expectation, 'actual.png') 43 data['expectation'] = expectation
|
/external/chromium_org/tools/telemetry/telemetry/page/ |
test_expectations.py | 14 class Expectation(object): 15 def __init__(self, expectation, pattern, conditions=None, bug=None): 16 self.expectation = expectation.lower() 37 raise ValueError('Unknown expectation condition: "%s"' % c0) 47 raise ValueError('Unknown expectation condition: "%s"' % condition) 66 def _Expect(self, expectation, url_pattern, conditions=None, bug=None): 67 self.expectations.append(Expectation(expectation, url_pattern, conditions, 81 return e.expectation [all...] |
/external/chromium_org/chrome/test/functional/ispy/client/ |
chrome_utils.py | 39 """Updates the most recent expectation version to the Chrome version. 62 logging.info('Updating expectation version...') 68 """Returns the expectation version for the given Chrome version. 76 Expectation version string. 82 raise Exception('No expectation exists for Chrome %s' % chrome_version) 85 """Gets the list of expectation versions from google storage.""" 88 def _GetExpectationNameWithVersion(self, device_type, expectation, 90 """Get the expectation to be used with the current Chrome version. 94 expectation: name for the expectation to generate [all...] |
/cts/libs/vogar-expect/src/vogar/ |
AnnotatedOutcome.java | 28 * with, if applicable, and the expectation for this test, so that result value information is 38 private final Expectation expectation; field in class:AnnotatedOutcome 47 AnnotatedOutcome(Outcome outcome, Expectation expectation, 53 this.expectation = expectation; 70 return outcome.getResultValue(expectation); 76 previousResultValues.add(previousOutcome.getResultValue(expectation)); 100 return tagOutcome == null ? null : tagOutcome.getResultValue(expectation); [all...] |
ExpectationStore.java | 49 * <p>If an outcome matches both an outcome expectation and a failure 50 * expectation, the outcome expectation will be returned. 54 private final Map<String, Expectation> outcomes = new LinkedHashMap<String, Expectation>(); 55 private final Map<String, Expectation> failures = new LinkedHashMap<String, Expectation>(); 61 * returns a value for all names, even if no explicit expectation was set. 63 public Expectation get(String name) { 64 Expectation byName = getByNameOrPackage(name) 95 Expectation expectation = outcomes.get(name); local 191 Expectation expectation = new Expectation(result, pattern, tags, description, buganizerBug); local [all...] |
/external/skia/tools/skpdiff/ |
skpdiff_server.py | 256 expectation is different between the following two files: 307 # Store old and new versions of the expectation for each GM 335 for expectation in self._expectations: 338 expectation.device_name + '-' + 339 expectation.image_name) 342 expectation.device_name + '-' + 343 expectation.image_name) 346 expectation.image_name, expectation.device_name)) 349 download_gm_image(expectation.image_name [all...] |
/external/chromium_org/chrome/browser/media_galleries/fileapi/ |
native_media_file_util_unittest.cc | 209 base::PlatformFileError expectation = local 218 url, base::Bind(&ExpectEqHelper, test_name, expectation)); 221 url, base::Bind(&ExpectEqHelper, test_name, expectation)); 262 base::PlatformFileError expectation = local 268 base::Bind(&ExpectEqHelper, test_name, expectation)); 297 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local 300 expectation = base::PLATFORM_FILE_ERROR_NOT_FOUND; 303 expectation = base::PLATFORM_FILE_ERROR_INVALID_OPERATION; 309 base::Bind(&ExpectEqHelper, test_name, expectation)); 346 base::PlatformFileError expectation; local 402 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local 451 base::PlatformFileError expectation; local 497 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local 527 base::PlatformFileError expectation = base::PLATFORM_FILE_OK; local [all...] |
/external/chromium_org/content/browser/media/ |
media_source_browsertest.cc | 33 const char* expectation) { 42 RunMediaTestPage("media_source_player.html", &query_params, expectation,
|
/external/chromium_org/media/base/ |
media_file_checker_unittest.cc | 13 static void RunMediaFileChecker(const std::string& filename, bool expectation) { 25 EXPECT_EQ(expectation, result);
|
/external/chromium_org/chrome/browser/media_galleries/ |
media_galleries_permissions_unittest.cc | 116 std::vector<MediaGalleryPermission>* expectation; member in struct:MediaGalleriesPermissionsTest::TestData 126 EXPECT_EQ(test_data[i].expectation->size(), actual.size()); 128 permission_entry < test_data[i].expectation->size() && 131 EXPECT_EQ(test_data[i].expectation->at(permission_entry).pref_id, 133 EXPECT_EQ(test_data[i].expectation->at(permission_entry).has_permission,
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/ |
test_expectations.py | 41 # Test expectation and specifier constants. 43 # FIXME: range() starts with 0 which makes if expectation checks harder 153 expectations = [expectation.lower() for expectation in expectation_line.expectations] 162 expectation = TestExpectations.expectation_from_string(part) 163 if expectation is None: # Careful, PASS is currently 0. 164 expectation_line.warnings.append('Unsupported expectation: %s' % part) 166 result.add(expectation) 241 The new format for a test expectation line is: 322 warnings.append('Unrecognized expectation "%s"' % token [all...] |
/external/chromium_org/content/test/gpu/gpu_tests/ |
maps.py | 89 for expectation in expectations: 90 location = expectation["location"] 101 expectation["color"][0], 102 expectation["color"][1], 103 expectation["color"][2]) 104 iter_result = pixel_color.IsEqual(expect_color, expectation["tolerance"]) 108 str(expectation["color"]) + " but got [" +
|
/external/chromium_org/v8/test/preparser/ |
testcfg.py | 45 expects_file = os.path.join(self.root, "preparser.expectation") 62 def Test(name, source, expectation): 66 if expectation: 71 def MkTest(replacement, expectation): 77 Test(testname, testsource, expectation)
|
/external/chromium_org/chrome/test/functional/ispy/common/ |
ispy_utils.py | 23 def GetExpectationPath(expectation, file_name=''): 24 """Get the path to a test file in the given test run and expectation. 27 expectation: name of the expectation. 33 return 'expectations/%s/%s' % (expectation, file_name) 36 def GetFailurePath(test_run, expectation, file_name=''): 41 expectation: name of the expectation. 47 return 'failures/%s/%s/%s' % (test_run, expectation, file_name) 96 def GenerateExpectation(self, expectation, images) [all...] |
/external/chromium_org/gpu/gles2_conform_support/ |
gles2_conform_test.cc | 54 int32 expectation = local 56 if (expectation != gpu::GPUTestExpectationsParser::kGpuTestPass) {
|
/external/chromium/net/data/proxy_resolver_v8_unittest/ |
bindings.js | 13 function expectEquals(expectation, actual) { 14 if (!(expectation === actual)) { 15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
|
/external/chromium-libpac/test/js-unittest/ |
bindings.js | 13 function expectEquals(expectation, actual) { 14 if (!(expectation === actual)) { 15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
|
/external/chromium_org/chrome/browser/component_updater/test/ |
url_request_post_interceptor.cc | 62 Expectation expectation(expectations_.front()); 63 delete expectation.first; 180 // popping the expectation off the queue, counting the match, and 196 const URLRequestPostInterceptor::Expectation& expectation( 198 if (expectation.first->Match(request_body)) { 199 const std::string response(expectation.second); 200 delete expectation.first;
|
/external/chromium_org/net/data/proxy_resolver_v8_unittest/ |
bindings.js | 13 function expectEquals(expectation, actual) { 14 if (!(expectation === actual)) { 15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
|
/external/chromium_org/third_party/WebKit/Tools/TestResultServer/static-dashboards/ |
aggregate_results.js | 158 for (var expectation in values) 159 maxValue = Math.max(maxValue, Math.max.apply(null, filteredValues(values[expectation], desiredNumberOfPoints))); 165 for (var expectation in values) { 166 if (expectation == 'WONTFIX' || isAllZeros(values[expectation])) 168 chartData += (chartData ? ',' : 'e:') + extendedEncode(filteredValues(values[expectation], desiredNumberOfPoints).reverse(), maxValue); 170 if (expectation) { 172 labels += (labels ? '|' : '') + expectation; 231 for (var expectation in values) 232 html += htmlForTableRow(expectation, values[expectation]) [all...] |