/external/chromium_org/chrome/test/mini_installer/ |
H A D | 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['conditio [all...] |
H A D | 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, \
|
H A D | 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, \
|
H A D | 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: 73 # Key doesn't exist. See that it matches the expectation. 74 assert expectation['exists'] is not 'required', ('Registry key %s is ' 78 # The key exists, see that it matches the expectation. 79 assert expectation['exists'] is not 'forbidden', ('Registry key %s exists' % 83 if 'values' not in expectation: 85 for value, value_expectation in expectation['values'].iteritems(): 91 # The value does not exist. See that this matches the expectation [all...] |
/external/chromium_org/chrome/test/ispy/common/ |
H A D | ispy_utils.py | 26 def GetExpectationPath(expectation, file_name=''): 27 """Get the path to a test file in the given test run and expectation. 30 expectation: name of the expectation. 36 return 'expectations/%s/%s' % (expectation, file_name) 39 def GetFailurePath(test_run, expectation, file_name=''): 44 expectation: name of the expectation. 50 return GetTestRunPath(test_run, '%s/%s' % (expectation, file_name)) 111 def GenerateExpectation(self, expectation, image [all...] |
/external/chromium_org/third_party/WebKit/Source/core/loader/ |
H A D | MixedContentCheckerTest.cpp | 22 bool expectation; member in struct:blink::TestCase 37 bool expectation = cases[i].expectation; local 42 EXPECT_EQ(expectation, MixedContentChecker::isMixedContent(securityOrigin.get(), targetUrl)) << "Origin: " << origin << ", Target: " << target << ", Expectation: " << expectation; local
|
/external/qemu/android/kernel/ |
H A D | kernel_utils_unittest.cpp | 70 const Expectation* expectation = static_cast<const Expectation*>(opaque); local 71 if (!expectation->result) 73 text->assign(expectation->description); 118 const Expectation& expectation = kData[n]; local 120 (void*)&expectation); 121 EXPECT_EQ(expectation.result, 123 << "For [" << expectation.description << "]"; 124 if (expectation.result) { 125 EXPECT_EQ(expectation.ktype, kernelType) << "For [" 126 << expectation [all...] |
/external/chromium_org/chrome/test/ispy/server/ |
H A D | 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)
|
H A D | 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-libpac/test/js-unittest/ |
H A D | bindings.js | 13 function expectEquals(expectation, actual) { 14 if (!(expectation === actual)) { 15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
|
/external/chromium_org/net/data/proxy_resolver_v8_unittest/ |
H A D | bindings.js | 13 function expectEquals(expectation, actual) { 14 if (!(expectation === actual)) { 15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
|
/external/chromium_org/tools/telemetry/telemetry/page/ |
H A D | test_expectations.py | 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 109 def _ModifiersApply(self, platform, gpu_info, expectation): 110 """Determines if the conditions for an expectation appl [all...] |
/external/chromium_org/media/base/ |
H A D | media_file_checker_unittest.cc | 14 static void RunMediaFileChecker(const std::string& filename, bool expectation) { argument 22 EXPECT_EQ(expectation, result);
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
H A D | CSSCalculationValueTest.cpp | 173 CSSLengthArray expectation, actual; local 174 initLengthArray(expectation); 175 EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "0"))); 177 expectation.at(CSSPrimitiveValue::UnitTypePixels) = 10; 178 EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "10px"))); 180 expectation.at(CSSPrimitiveValue::UnitTypePixels) = 0; 181 expectation.at(CSSPrimitiveValue::UnitTypePercentage) = 20; 182 EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "20%%"))); 184 expectation.at(CSSPrimitiveValue::UnitTypePixels) = 30; 185 expectation [all...] |
/external/chromium_org/chrome/test/ispy/ |
H A D | ispy_api.py | 30 """Updates the most recent expectation version to the Chrome version. 56 logging.info('Updating expectation version...') 62 """Returns the expectation version for the given Chrome version. 76 raise Exception('No expectation exists for Chrome %s' % chrome_version) 79 """Gets the list of expectation versions from google storage. 94 def _GetExpectationNameWithVersion(self, device_type, expectation, 96 """Get the expectation to be used with the current Chrome version. 100 expectation: name for the expectation to generate. 108 return self._CreateExpectationName(device_type, expectation, versio [all...] |
/external/chromium_org/third_party/skia/tools/skpdiff/ |
H A D | 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 [all...] |
/external/skia/tools/skpdiff/ |
H A D | 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 [all...] |
/external/chromium_org/chrome/browser/media_galleries/fileapi/ |
H A D | native_media_file_util_unittest.cc | 208 base::File::Error expectation = local 217 url, base::Bind(&ExpectEqHelper, test_name, expectation)); 220 url, base::Bind(&ExpectEqHelper, test_name, expectation)); 261 base::File::Error expectation = local 267 base::Bind(&ExpectEqHelper, test_name, expectation)); 296 base::File::Error expectation = base::File::FILE_OK; local 299 expectation = base::File::FILE_ERROR_NOT_FOUND; 302 expectation = base::File::FILE_ERROR_INVALID_OPERATION; 309 base::Bind(&ExpectEqHelper, test_name, expectation)); 346 base::File::Error expectation; local 403 base::File::Error expectation = base::File::FILE_OK; local 454 base::File::Error expectation; local 502 base::File::Error expectation = base::File::FILE_OK; local 532 base::File::Error expectation = base::File::FILE_OK; local [all...] |
/external/chromium_org/v8/test/mjsunit/regress/ |
H A D | regress-phi-truncation.js | 30 function test(fun, expectation) { 33 assertEquals(expectation, fun(0));
|
/external/chromium_org/content/browser/media/ |
H A D | media_source_browsertest.cc | 37 const std::string& expectation) { 46 RunMediaTestPage("media_source_player.html", query_params, expectation, 35 TestSimplePlayback(const std::string& media_file, const std::string& media_type, const std::string& expectation) argument
|
/external/chromium_org/v8/test/mjsunit/ |
H A D | debug-evaluate-const.js | 84 var expectation = { "const0" : 0, 93 assertEquals(expectation[name], value);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/ |
H A D | 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] 167 expectation = TestExpectations.expectation_from_string(part) 168 if expectation is None: # Careful, PASS is currently 0. 169 expectation_line.warnings.append('Unsupported expectation: %s' % part) 171 result.add(expectation) 247 The new format for a test expectation line is: 328 warnings.append('Unrecognized expectation " [all...] |
/external/chromium_org/chrome/browser/media_galleries/ |
H A D | 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/content/test/gpu/gpu_tests/ |
H A D | cloud_storage_test_base.py | 26 for expectation in expectations: 27 location = expectation["location"] 38 expectation["color"][0], 39 expectation["color"][1], 40 expectation["color"][2]) 41 if not actual_color.IsEqual(expected_color, expectation["tolerance"]): 44 str(expectation["color"]) + " but got [" +
|
/external/chromium_org/third_party/WebKit/Source/core/animation/ |
H A D | LengthStyleInterpolationTest.cpp | 112 CSSLengthArray actual, expectation; local 113 initLengthArray(expectation); 115 toCSSPrimitiveValue(interpolableValueToLength(list.get(), ValueRangeAll).get())->accumulateLengthArray(expectation); 116 EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "calc(10%% + 10ex + 10ch + 10vh + 10vmax)")));
|