/external/chromium_org/chrome/test/ispy/common/ |
D | ispy_utils.py | 26 def GetExpectationPath(expectation, file_name=''): argument 36 return 'expectations/%s/%s' % (expectation, file_name) 39 def GetFailurePath(test_run, expectation, file_name=''): argument 50 return GetTestRunPath(test_run, '%s/%s' % (expectation, file_name)) 111 def GenerateExpectation(self, expectation, images): argument 125 if not IsValidExpectationName(expectation): 131 GetExpectationPath(expectation, 'expected.png'), images[0]) 132 self.UploadImage(GetExpectationPath(expectation, 'mask.png'), mask) 134 def PerformComparison(self, test_run, expectation, actual): argument 146 if not IsValidExpectationName(expectation): [all …]
|
/external/chromium_org/third_party/WebKit/Source/core/css/ |
D | CSSCalculationValueTest.cpp | 173 CSSLengthArray expectation, actual; in TEST() local 174 initLengthArray(expectation); in TEST() 175 EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "0"))); in TEST() 177 expectation.at(CSSPrimitiveValue::UnitTypePixels) = 10; in TEST() 178 EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "10px"))); in TEST() 180 expectation.at(CSSPrimitiveValue::UnitTypePixels) = 0; in TEST() 181 expectation.at(CSSPrimitiveValue::UnitTypePercentage) = 20; in TEST() 182 EXPECT_TRUE(lengthArraysEqual(expectation, setLengthArray(actual, "20%%"))); in TEST() 184 expectation.at(CSSPrimitiveValue::UnitTypePixels) = 30; in TEST() 185 expectation.at(CSSPrimitiveValue::UnitTypePercentage) = -40; in TEST() [all …]
|
/external/chromium_org/tools/telemetry/telemetry/page/ |
D | test_expectations.py | 15 def __init__(self, expectation, pattern, conditions=None, bug=None): argument 16 self.expectation = expectation.lower() 66 def _Expect(self, expectation, url_pattern, conditions=None, bug=None): argument 67 self.expectations.append(Expectation(expectation, url_pattern, conditions, 81 return e.expectation 109 def _ModifiersApply(self, platform, gpu_info, expectation): argument 111 os_matches = (not expectation.os_conditions or 112 platform.GetOSName() in expectation.os_conditions or 113 platform.GetOSVersionName() in expectation.os_conditions) 118 gpu_matches = ((not expectation.gpu_conditions and [all …]
|
/external/qemu/android/kernel/ |
D | kernel_utils_unittest.cpp | 70 const Expectation* expectation = static_cast<const Expectation*>(opaque); in getDescriptionFunc() local 71 if (!expectation->result) in getDescriptionFunc() 73 text->assign(expectation->description); in getDescriptionFunc() 118 const Expectation& expectation = kData[n]; in TEST() local 120 (void*)&expectation); in TEST() 121 EXPECT_EQ(expectation.result, in TEST() 123 << "For [" << expectation.description << "]"; in TEST() 124 if (expectation.result) { in TEST() 125 EXPECT_EQ(expectation.ktype, kernelType) << "For [" in TEST() 126 << expectation.description << "]"; in TEST()
|
/external/skia/tools/skpdiff/ |
D | skpdiff_server.py | 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, 351 expectation.expected_hash) 353 download_gm_image(expectation.image_name, 355 expectation.actual_hash) [all …]
|
/external/chromium_org/third_party/skia/tools/skpdiff/ |
D | skpdiff_server.py | 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, 351 expectation.expected_hash) 353 download_gm_image(expectation.image_name, 355 expectation.actual_hash) [all …]
|
/external/chromium_org/chrome/browser/media_galleries/fileapi/ |
D | native_media_file_util_unittest.cc | 210 base::File::Error expectation = in TEST_F() local 219 url, base::Bind(&ExpectEqHelper, test_name, expectation)); in TEST_F() 222 url, base::Bind(&ExpectEqHelper, test_name, expectation)); in TEST_F() 263 base::File::Error expectation = in TEST_F() local 269 base::Bind(&ExpectEqHelper, test_name, expectation)); in TEST_F() 298 base::File::Error expectation = base::File::FILE_OK; in TEST_F() local 301 expectation = base::File::FILE_ERROR_NOT_FOUND; in TEST_F() 304 expectation = base::File::FILE_ERROR_INVALID_OPERATION; in TEST_F() 310 base::Bind(&ExpectEqHelper, test_name, expectation)); in TEST_F() 347 base::File::Error expectation; in TEST_F() local [all …]
|
/external/chromium_org/chrome/test/ispy/ |
D | ispy_api.py | 94 def _GetExpectationNameWithVersion(self, device_type, expectation, argument 108 return self._CreateExpectationName(device_type, expectation, version) 110 def _CreateExpectationName(self, device_type, expectation, version): argument 121 return '%s:%s(%s)' % (device_type, expectation, version) 123 def GenerateExpectation(self, device_type, expectation, chrome_version, argument 135 device_type, expectation, chrome_version) 143 def PerformComparison(self, test_run, device_type, expectation, argument 159 device_type, expectation, chrome_version, version_file), 204 expectation, chrome_version, argument 222 device_type, expectation, chrome_version) [all …]
|
/external/chromium_org/chrome/test/ispy/server/ |
D | update_mask_handler.py | 32 expectation = self.request.get('expectation') 35 if not (test_run and expectation): 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)
|
D | debug_view_handler.py | 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/chrome/test/mini_installer/ |
D | verifier.py | 21 for expectation_name, expectation in verifier_input.iteritems(): 22 if 'condition' in expectation: 23 condition = variable_expander.Expand(expectation['condition']) 26 self._VerifyExpectation(expectation_name, expectation, variable_expander) 28 def _VerifyExpectation(self, expectation_name, expectation, argument
|
D | registry_verifier.py | 42 def _VerifyExpectation(self, expectation_name, expectation, argument 70 assert not expectation['exists'], ('Registry key %s is missing' % 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/third_party/WebKit/Source/core/loader/ |
D | MixedContentCheckerTest.cpp | 22 bool expectation; in TEST() member 37 bool expectation = cases[i].expectation; in TEST() local 42 …expectation, MixedContentChecker::isMixedContent(securityOrigin.get(), targetUrl)) << "Origin: " <… in TEST()
|
/external/chromium_org/third_party/WebKit/Tools/TestResultServer/static-dashboards/ |
D | aggregate_results.js | 158 for (var expectation in values) 159 …maxValue = Math.max(maxValue, Math.max.apply(null, filteredValues(values[expectation], desiredNumb… 165 for (var expectation in values) { 166 if (expectation == 'WONTFIX' || isAllZeros(values[expectation])) 168 …chartData += (chartData ? ',' : 'e:') + extendedEncode(filteredValues(values[expectation], desired… 170 if (expectation) { 172 labels += (labels ? '|' : '') + expectation; 231 for (var expectation in values) 232 html += htmlForTableRow(expectation, values[expectation]);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/models/ |
D | test_expectations.py | 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. 171 result.add(expectation) 509 for expectation in expectations: 510 expectation = expectation.upper() 511 …pectations.append(TestExpectationParser._inverted_expectation_tokens.get(expectation, expectation)) 579 def get_test_set(self, expectation, include_skips=True): argument 580 tests = self._expectation_to_tests[expectation] 624 for expectation in expectations: [all …]
|
D | test_expectations_unittest.py | 773 expectation = self._tokenize(in_string) 776 self.assertEqual(expected_string, expectation.to_string(self._converter)) 787 expectation = TestExpectationLine() 789 self.assertEqual(expectation.to_string(self._converter), '') 790 expectation.comment = ' Qux.' 791 self.assertEqual(expectation.to_string(self._converter), '# Qux.') 792 expectation.name = 'bar' 793 self.assertEqual(expectation.to_string(self._converter), 'bar # Qux.') 794 expectation.specifiers = ['foo'] 796 self.assertEqual(expectation.to_string(self._converter), '[ FOO ] bar # Qux.') [all …]
|
/external/chromium_org/media/tools/layout_tests/ |
D | README | 33 latest test expectation file and does the simple parsing. The 34 parsed test expectation is joined with the layout tests using test name 37 tests that are skipped as specified in the test expectation file, 'nonskip' 38 tests are in the test expectation file and not skipped (these are tests 43 and 'nonskip'). It also looks into the SVN test expectation history 61 A class to model the content of test expectation file for analysis. 69 test expectation file. So, the map should keep all the occurrence 70 information. For example, the current test expectation file has the 78 expectation information. 82 A class to represent history of the test expectation file. The history
|
/external/chromium_org/net/data/proxy_resolver_v8_unittest/ |
D | bindings.js | 13 function expectEquals(expectation, actual) { argument 14 if (!(expectation === actual)) { 15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
|
/external/chromium-libpac/test/js-unittest/ |
D | bindings.js | 13 function expectEquals(expectation, actual) { argument 14 if (!(expectation === actual)) { 15 throw "FAIL: expected: " + expectation + ", actual: " + actual;
|
/external/chromium_org/chrome/browser/media_galleries/ |
D | media_galleries_permissions_unittest.cc | 116 std::vector<MediaGalleryPermission>* expectation; in Verify() member 126 EXPECT_EQ(test_data[i].expectation->size(), actual.size()); in Verify() 128 permission_entry < test_data[i].expectation->size() && in Verify() 131 EXPECT_EQ(test_data[i].expectation->at(permission_entry).pref_id, in Verify() 133 EXPECT_EQ(test_data[i].expectation->at(permission_entry).has_permission, in Verify()
|
/external/chromium_org/content/test/gpu/gpu_tests/ |
D | cloud_storage_test_base.py | 25 for expectation in expectations: 26 location = expectation["location"] 37 expectation["color"][0], 38 expectation["color"][1], 39 expectation["color"][2]) 40 if not actual_color.IsEqual(expected_color, expectation["tolerance"]): 43 str(expectation["color"]) + " but got [" +
|
/external/chromium_org/v8/test/preparser/ |
D | duplicate-parameter.pyt | 37 expectation = "strict_param_dupe" 40 Template(name, '"use strict";\n' + source)(non_selfstrict, expectation) 43 non_selfstrict, expectation) 46 source +'\n }\n}\n')(non_selfstrict, expectation) 56 selftest(selfstrict, expectation) 57 selftest(selfstrictnestedclean, expectation)
|
D | testcfg.py | 62 def Test(name, source, expectation): argument 66 if expectation: 71 def MkTest(replacement, expectation): argument 77 Test(testname, testsource, expectation)
|
/external/chromium_org/third_party/sinonjs/src/ |
D | sinon.js | 1040 function matchObject(expectation, actual) { argument 1044 for (var key in expectation) { 1045 if (expectation.hasOwnProperty(key)) { 1046 var exp = expectation[key]; 1094 var match = function (expectation, message) { argument 1096 var type = sinon.typeOf(expectation); 1099 if (typeof expectation.test === "function") { 1101 return expectation.test(actual) === true; 1103 m.message = "match(" + sinon.functionName(expectation.test) + ")"; 1107 for (var key in expectation) { [all …]
|
/external/chromium_org/chrome/browser/component_updater/test/ |
D | url_request_post_interceptor.cc | 61 Expectation expectation(expectations_.front()); in ClearExpectations() local 62 delete expectation.first; in ClearExpectations() 193 const URLRequestPostInterceptor::Expectation& expectation( in MaybeInterceptRequest() local 195 if (expectation.first->Match(request_body)) { in MaybeInterceptRequest() 196 const std::string response(expectation.second); in MaybeInterceptRequest() 197 delete expectation.first; in MaybeInterceptRequest()
|