Home
last modified time | relevance | path

Searched refs:TEST_ASSERT (Results 1 - 25 of 85) sorted by relevance

1234

/third_party/skia/tests/
H A DGrPorterDuffTest.cpp50 #define TEST_ASSERT(...) REPORTER_ASSERT(reporter, __VA_ARGS__) macro
92 TEST_ASSERT(!analysis.requiresDstTexture() || in XPInfo()
101 TEST_ASSERT(analysis.requiresDstTexture() == analysis.requiresNonOverlappingDraws()); in XPInfo()
104 TEST_ASSERT(!xp->willReadDstColor() || in XPInfo()
107 TEST_ASSERT(xp->hasSecondaryOutput() == GrBlendCoeffRefsSrc2(fBlendInfo.fDstBlend)); in XPInfo()
132 TEST_ASSERT(xpi.fIgnoresInputColor); in test_lcd_coverage()
133 TEST_ASSERT(!xpi.fCompatibleWithCoverageAsAlpha); in test_lcd_coverage()
134 TEST_ASSERT(!xpi.fUnaffectedByDstValue); in test_lcd_coverage()
135 TEST_ASSERT(kInvalid_OutputType == xpi.fPrimaryOutputType); in test_lcd_coverage()
136 TEST_ASSERT(kInvalid_OutputTyp in test_lcd_coverage()
[all...]
/third_party/jerryscript/tests/unit-core/
H A Dtest-date-helpers.cpp57 TEST_ASSERT (ecma_date_day (0) == 0); in HWTEST_F()
58 TEST_ASSERT (ecma_date_day (MS_PER_DAY) == 1); in HWTEST_F()
62 TEST_ASSERT (ecma_date_time_within_day (0) == 0); in HWTEST_F()
63 TEST_ASSERT (ecma_date_time_within_day (42) == 42); in HWTEST_F()
64 TEST_ASSERT (ecma_date_time_within_day (42.51) == 42.51); in HWTEST_F()
65 TEST_ASSERT (ecma_date_time_within_day (MS_PER_DAY + 42) == 42); in HWTEST_F()
69 TEST_ASSERT (ecma_date_year_from_time (0) == 1970); in HWTEST_F()
70 TEST_ASSERT (ecma_date_year_from_time (0) == 1970); in HWTEST_F()
71 TEST_ASSERT (ecma_date_year_from_time (MS_PER_DAY) == 1970); in HWTEST_F()
72 TEST_ASSERT (ecma_date_year_from_tim in HWTEST_F()
[all...]
H A Dtest-symbol.cpp72 TEST_ASSERT (!jerry_value_is_error (symbol_1)); in HWTEST_F()
73 TEST_ASSERT (jerry_value_is_symbol (symbol_1)); in HWTEST_F()
76 TEST_ASSERT (!jerry_value_is_error (symbol_2)); in HWTEST_F()
77 TEST_ASSERT (jerry_value_is_symbol (symbol_2)); in HWTEST_F()
87 TEST_ASSERT (jerry_value_is_boolean (result_val)); in HWTEST_F()
88 TEST_ASSERT (jerry_get_boolean_value (jerry_has_property (object, symbol_1))); in HWTEST_F()
89 TEST_ASSERT (jerry_get_boolean_value (jerry_has_own_property (object, symbol_1))); in HWTEST_F()
92 TEST_ASSERT (jerry_value_is_boolean (result_val)); in HWTEST_F()
93 TEST_ASSERT (jerry_get_boolean_value (jerry_has_property (object, symbol_2))); in HWTEST_F()
94 TEST_ASSERT (jerry_get_boolean_valu in HWTEST_F()
[all...]
H A Dtest-api-strings.cpp28 TEST_ASSERT (!jerry_value_is_error (is_equal_fn_val)); in strict_equals()
31 TEST_ASSERT (!jerry_value_is_error (res)); in strict_equals()
32 TEST_ASSERT (jerry_value_is_boolean (res)); in strict_equals()
77 TEST_ASSERT (sz == 0); in HWTEST_F()
96 TEST_ASSERT (utf8_sz == cesu8_sz); in HWTEST_F()
98 TEST_ASSERT (!strncmp (string_from_utf8, string_from_cesu8, utf8_sz)); in HWTEST_F()
107 TEST_ASSERT (strict_equals (args[0], args[1])); in HWTEST_F()
113 TEST_ASSERT (utf8_sz == cesu8_sz && utf8_sz > 0); in HWTEST_F()
121 TEST_ASSERT (!strncmp (string_from_utf8_string, string_from_cesu8_string, utf8_sz)); in HWTEST_F()
134 TEST_ASSERT (cesu8_lengt in HWTEST_F()
[all...]
H A Dtest-arraybuffer.cpp33 TEST_ASSERT (jerry_value_is_boolean (result_val)); in register_js_value()
69 TEST_ASSERT (false); in assert_handler()
133 TEST_ASSERT (!jerry_value_is_error (eval_arraybuffer)); in HWTEST_F()
134 TEST_ASSERT (jerry_value_is_arraybuffer (eval_arraybuffer)); in HWTEST_F()
135 TEST_ASSERT (jerry_get_arraybuffer_byte_length (eval_arraybuffer) == 10); in HWTEST_F()
143 TEST_ASSERT (!jerry_value_is_error (arraybuffer)); in HWTEST_F()
144 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer)); in HWTEST_F()
145 TEST_ASSERT (jerry_get_arraybuffer_byte_length (arraybuffer) == length); in HWTEST_F()
153 TEST_ASSERT (!jerry_value_is_error (arraybuffer)); in HWTEST_F()
154 TEST_ASSERT (jerry_value_is_arraybuffe in HWTEST_F()
[all...]
H A Dtest-api.cpp78 TEST_ASSERT (args_cnt == 2); in handler()
80 TEST_ASSERT (jerry_value_is_string (args_p[0])); in handler()
82 TEST_ASSERT (sz == 1); in handler()
86 TEST_ASSERT (sz == 1); in handler()
87 TEST_ASSERT (!strncmp (buffer, "1", (size_t) sz)); in handler()
89 TEST_ASSERT (jerry_value_is_boolean (args_p[1])); in handler()
109 TEST_ASSERT ((uintptr_t) native_p == (uintptr_t) 0x0000000000000000ull); in handler_construct_1_freecb()
118 TEST_ASSERT ((uintptr_t) native_p == (uintptr_t) 0x0012345678abcdefull); in handler_construct_2_freecb()
151 TEST_ASSERT (jerry_value_is_object (this_val)); in handler_construct()
153 TEST_ASSERT (args_cn in handler_construct()
[all...]
H A Dtest-api-property.cpp56 TEST_ASSERT (prop_desc.is_value_defined == false); in HWTEST_F()
57 TEST_ASSERT (jerry_value_is_undefined (prop_desc.value)); in HWTEST_F()
58 TEST_ASSERT (prop_desc.is_writable_defined == false); in HWTEST_F()
59 TEST_ASSERT (prop_desc.is_writable == false); in HWTEST_F()
60 TEST_ASSERT (prop_desc.is_enumerable_defined == false); in HWTEST_F()
61 TEST_ASSERT (prop_desc.is_enumerable == false); in HWTEST_F()
62 TEST_ASSERT (prop_desc.is_configurable_defined == false); in HWTEST_F()
63 TEST_ASSERT (prop_desc.is_configurable == false); in HWTEST_F()
64 TEST_ASSERT (prop_desc.is_get_defined == false); in HWTEST_F()
65 TEST_ASSERT (jerry_value_is_undefine in HWTEST_F()
[all...]
H A Dtest-internal-properties.cpp99 TEST_ASSERT (set_result_1); in HWTEST_F()
100 TEST_ASSERT (set_result_2); in HWTEST_F()
101 TEST_ASSERT (set_result_3); in HWTEST_F()
108 TEST_ASSERT (set_internal_result_1); in HWTEST_F()
109 TEST_ASSERT (set_internal_result_2); in HWTEST_F()
110 TEST_ASSERT (set_internal_result_3); in HWTEST_F()
120 TEST_ASSERT (jerry_value_is_boolean (has_result_1) && jerry_get_boolean_value (has_result_1)); in HWTEST_F()
121 TEST_ASSERT (jerry_value_is_boolean (has_result_2) && jerry_get_boolean_value (has_result_2)); in HWTEST_F()
122 TEST_ASSERT (jerry_value_is_boolean (has_result_3) && jerry_get_boolean_value (has_result_3)); in HWTEST_F()
123 TEST_ASSERT (jerry_value_is_boolea in HWTEST_F()
[all...]
H A Dtest-context-data.cpp47 TEST_ASSERT ((*(const char **) user_data_p) == string1); in test_context_data1_free()
48 TEST_ASSERT (!test_context_data1_finalize_called); in test_context_data1_free()
54 TEST_ASSERT (test_context_data1_free_called); in test_context_data1_finalize()
55 TEST_ASSERT (!test_context_data1_finalize_called); in test_context_data1_finalize()
56 TEST_ASSERT ((*(const char **) user_data_p) == string1); in test_context_data1_finalize()
82 TEST_ASSERT ((*(const char **) user_data_p) == string2); in test_context_data2_free()
116 TEST_ASSERT (user_data_p == NULL); in test_context_data4_new()
123 TEST_ASSERT (user_data_p == NULL); in test_context_data4_free()
124 TEST_ASSERT (!test_context_data4_finalize_called); in test_context_data4_free()
130 TEST_ASSERT (!test_context_data4_finalize_calle in test_context_data4_finalize()
[all...]
H A Dtest-proxy.cpp71 TEST_ASSERT (args_count == 3); in handler_get()
72 TEST_ASSERT (jerry_value_is_object (args_p[0])); /* target */ in handler_get()
73 TEST_ASSERT (jerry_value_is_string (args_p[1])); /* P */ in handler_get()
74 TEST_ASSERT (jerry_value_is_object (args_p[2])); /* receiver */ in handler_get()
80 TEST_ASSERT (copied == 5); in handler_get()
81 TEST_ASSERT (strncmp (expected, buffer, 5) == 0); in handler_get()
99 TEST_ASSERT (args_count == 4); in handler_set()
100 TEST_ASSERT (jerry_value_is_object (args_p[0])); /* target */ in handler_set()
101 TEST_ASSERT (jerry_value_is_string (args_p[1])); /* P */ in handler_set()
102 TEST_ASSERT (jerry_value_is_numbe in handler_set()
[all...]
H A Dtest-api-promise.cpp30 TEST_ASSERT (jerry_value_is_undefined (promise_result)); in test_promise_resolve_success()
33 TEST_ASSERT (promise_state == JERRY_PROMISE_STATE_PENDING); in test_promise_resolve_success()
42 TEST_ASSERT (jerry_value_is_boolean (set_result) && (jerry_get_boolean_value (set_result) == true)); in test_promise_resolve_success()
56 TEST_ASSERT (jerry_value_is_object (promise_result)); in test_promise_resolve_success()
59 TEST_ASSERT (jerry_value_is_number (get_result)); in test_promise_resolve_success()
60 TEST_ASSERT (jerry_get_number_value (get_result) == 3.0); in test_promise_resolve_success()
67 TEST_ASSERT (promise_state == JERRY_PROMISE_STATE_FULFILLED); in test_promise_resolve_success()
80 TEST_ASSERT (jerry_value_is_object (promise_result)); in test_promise_resolve_success()
83 TEST_ASSERT (jerry_value_is_number (get_result)); in test_promise_resolve_success()
84 TEST_ASSERT (jerry_get_number_valu in test_promise_resolve_success()
[all...]
H A Dtest-typedarray.cpp80 TEST_ASSERT (false); in assert_handler()
93 TEST_ASSERT (!jerry_value_is_error (typedarray)); in test_typedarray_info()
94 TEST_ASSERT (jerry_value_is_typedarray (typedarray)); in test_typedarray_info()
95 TEST_ASSERT (jerry_get_typedarray_type (typedarray) == typedarray_type); in test_typedarray_info()
96 TEST_ASSERT (jerry_get_typedarray_length (typedarray) == element_count); in test_typedarray_info()
101 TEST_ASSERT (jerry_value_is_arraybuffer (arraybuffer)); in test_typedarray_info()
103 TEST_ASSERT (byte_length == element_count * bytes_per_element); in test_typedarray_info()
104 TEST_ASSERT (byte_offset == 0); in test_typedarray_info()
123 TEST_ASSERT (!jerry_value_is_error (prop_value)); in test_typedarray_queries()
184 TEST_ASSERT (!jerry_delete_property_by_inde in test_property_by_index()
[all...]
H A Dtest-dataview.cpp57 TEST_ASSERT (jerry_is_feature_enabled (JERRY_FEATURE_TYPEDARRAY)); in HWTEST_F()
64 TEST_ASSERT (!jerry_value_is_error (view1)); in HWTEST_F()
65 TEST_ASSERT (jerry_value_is_dataview (view1)); in HWTEST_F()
70 TEST_ASSERT (jerry_binary_operation (JERRY_BIN_OP_STRICT_EQUAL, internal_buffer, arraybuffer)); in HWTEST_F()
71 TEST_ASSERT (byteOffset == 0); in HWTEST_F()
72 TEST_ASSERT (byteLength == 16); in HWTEST_F()
76 TEST_ASSERT (!jerry_value_is_error (view1)); in HWTEST_F()
77 TEST_ASSERT (jerry_value_is_dataview (view2)); in HWTEST_F()
79 TEST_ASSERT (jerry_binary_operation (JERRY_BIN_OP_STRICT_EQUAL, internal_buffer, arraybuffer)); in HWTEST_F()
80 TEST_ASSERT (byteOffse in HWTEST_F()
[all...]
H A Dtest-newtarget.cpp62 TEST_ASSERT (0 && "Invalid arguments for demo method"); in construct_handler()
73 TEST_ASSERT (!jerry_value_is_undefined (target)); in construct_handler()
74 TEST_ASSERT (target == func_obj_val); in construct_handler()
82 TEST_ASSERT (jerry_value_is_undefined (target)); in construct_handler()
83 TEST_ASSERT (target != func_obj_val); in construct_handler()
91 TEST_ASSERT (!jerry_value_is_undefined (target)); in construct_handler()
92 TEST_ASSERT (target == func_obj_val); in construct_handler()
98 TEST_ASSERT (!jerry_value_is_error (func_call_result)); in construct_handler()
99 TEST_ASSERT (jerry_value_is_undefined (func_call_result)); in construct_handler()
105 TEST_ASSERT ( in construct_handler()
[all...]
H A Dtest-to-integer.cpp77 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
78 TEST_ASSERT (num == 123); in HWTEST_F()
87 TEST_ASSERT (ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
96 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
97 TEST_ASSERT (num == 0); in HWTEST_F()
107 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
108 TEST_ASSERT (1.0f / num == ecma_number_make_infinity (true)); in HWTEST_F()
117 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
118 TEST_ASSERT (1.0f / num == ecma_number_make_infinity (false)); in HWTEST_F()
127 TEST_ASSERT (!ECMA_IS_VALUE_ERRO in HWTEST_F()
[all...]
H A Dtest-api-set-and-clear-error-flag.cpp26 TEST_ASSERT (str_len == size); in compare_str()
29 TEST_ASSERT (!memcmp (str_p, str_buff, str_len)); in compare_str()
71 TEST_ASSERT (obj_val != err_val); in HWTEST_F()
111 TEST_ASSERT (jerry_value_is_abort (error)); in HWTEST_F()
120 TEST_ASSERT (jerry_value_is_abort (error2)); in HWTEST_F()
130 TEST_ASSERT (jerry_value_is_error (num2)); in HWTEST_F()
133 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in HWTEST_F()
138 TEST_ASSERT (jerry_value_is_error (num2)); in HWTEST_F()
140 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in HWTEST_F()
145 TEST_ASSERT (jerry_value_is_erro in HWTEST_F()
[all...]
H A Dtest-to-length.cpp75 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
76 TEST_ASSERT (num == 123); in HWTEST_F()
85 TEST_ASSERT (ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
94 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
95 TEST_ASSERT (num == 0); in HWTEST_F()
104 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
106 TEST_ASSERT (num == 4294967270); in HWTEST_F()
108 TEST_ASSERT (num == 0); in HWTEST_F()
118 TEST_ASSERT (!ECMA_IS_VALUE_ERROR (result)); in HWTEST_F()
120 TEST_ASSERT (nu in HWTEST_F()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dv32test.cpp67 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN {\ macro
103 TEST_ASSERT(b->size() == 3); in UVector32_API()
104 TEST_ASSERT(b->elementAti(1) == 20); in UVector32_API()
118 TEST_ASSERT(*b != *a); in UVector32_API()
119 TEST_ASSERT(!(*b == *a)); in UVector32_API()
120 TEST_ASSERT(!b->equals(*a)); in UVector32_API()
122 TEST_ASSERT(*b == *a); in UVector32_API()
123 TEST_ASSERT(!(*b != *a)); in UVector32_API()
124 TEST_ASSERT(b->equals(*a)); in UVector32_API()
126 TEST_ASSERT(* in UVector32_API()
[all...]
H A Duvectest.cpp67 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN {\ macro
117 TEST_ASSERT(a->elementAti(0) == 10); in UVector_API()
118 TEST_ASSERT(a->elementAti(1) == 15); in UVector_API()
119 TEST_ASSERT(a->elementAti(2) == 20); in UVector_API()
120 TEST_ASSERT(a->elementAti(3) == 30); in UVector_API()
121 TEST_ASSERT(a->indexOf((int32_t)3) == -1); in UVector_API()
122 TEST_ASSERT(a->indexOf((int32_t)15) == 1); in UVector_API()
123 TEST_ASSERT(a->indexOf((int32_t)15, 2) == -1); in UVector_API()
124 TEST_ASSERT(a->contains((int32_t)15)); in UVector_API()
125 TEST_ASSERT(! in UVector_API()
[all...]
H A Dutxttest.cpp32 #define TEST_ASSERT(x) UPRV_BLOCK_MACRO_BEGIN { \ macro
303 TEST_ASSERT(utext_isWritable(ut) == true); in TestCMR()
441 TEST_ASSERT(status == U_INDEX_OUTOFBOUNDS_ERROR); in TestCopyMove()
458 TEST_ASSERT(uti == usi); in TestCopyMove()
459 TEST_ASSERT(utc == usc); in TestCopyMove()
471 TEST_ASSERT(uti == expectedNativeLength); in TestCopyMove()
517 TEST_ASSERT(actualDelta == expectedDelta); in TestReplace()
535 TEST_ASSERT(uti == usi); in TestReplace()
536 TEST_ASSERT(utc == usc); in TestReplace()
545 TEST_ASSERT(ut in TestReplace()
1452 TEST_ASSERT(count < STRLEN); Ticket6847() function
[all...]
/third_party/jerryscript/tests/unit-ext/
H A Dtest-ext-arg.c143 TEST_ASSERT (!jerry_value_is_error (is_ok)); in test_validator1_handler()
144 TEST_ASSERT (arg1); in test_validator1_handler()
145 TEST_ASSERT (arg2 == 10.5); in test_validator1_handler()
146 TEST_ASSERT (strcmp (arg3, "abc") == 0); in test_validator1_handler()
147 TEST_ASSERT (jerry_value_is_function (arg4)); in test_validator1_handler()
151 TEST_ASSERT (!jerry_value_is_error (is_ok)); in test_validator1_handler()
152 TEST_ASSERT (arg1); in test_validator1_handler()
153 TEST_ASSERT (arg2 == 10.5); in test_validator1_handler()
154 TEST_ASSERT (strcmp (arg3, "abc") == 0); in test_validator1_handler()
155 TEST_ASSERT (jerry_value_is_undefine in test_validator1_handler()
[all...]
H A Dtest-ext-method-register.c53 TEST_ASSERT (jerry_value_is_boolean (return_value)); in freeze_property()
85 TEST_ASSERT (register_result.registered == 7); in test_simple_registration()
86 TEST_ASSERT (jerry_value_is_undefined (register_result.result)); in test_simple_registration()
99 TEST_ASSERT (jerry_value_is_number (result)); in test_simple_registration()
100 TEST_ASSERT (jerry_get_number_value (result) == 42.5); in test_simple_registration()
107 TEST_ASSERT (jerry_value_is_boolean (result)); in test_simple_registration()
108 TEST_ASSERT (jerry_get_boolean_value (result) == true); in test_simple_registration()
115 TEST_ASSERT (jerry_value_is_boolean (result)); in test_simple_registration()
116 TEST_ASSERT (jerry_get_boolean_value (result) == true); in test_simple_registration()
123 TEST_ASSERT (jerry_value_is_boolea in test_simple_registration()
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dutexttst.c39 #define TEST_ASSERT(x) UPRV_BLOCK_MACRO_BEGIN { \ macro
83 TEST_ASSERT(c == 0x41); in TestAPI()
85 TEST_ASSERT(utb == NULL); in TestAPI()
89 TEST_ASSERT(uta == &utLoc); in TestAPI()
92 TEST_ASSERT(uta == &utLoc); in TestAPI()
107 TEST_ASSERT(utb != NULL); in TestAPI()
108 TEST_ASSERT(utb != uta); in TestAPI()
110 TEST_ASSERT(len == u_strlen(uString)); in TestAPI()
126 TEST_ASSERT(uta!=NULL); in TestAPI()
129 TEST_ASSERT( in TestAPI()
[all...]
H A Dreapits.c43 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro
241 TEST_ASSERT(status == U_REGEX_INVALID_FLAG); in TestRegexCAPI()
247 TEST_ASSERT(status == U_REGEX_UNIMPLEMENTED); in TestRegexCAPI()
254 TEST_ASSERT(status == U_ILLEGAL_ARGUMENT_ERROR && re == NULL); in TestRegexCAPI()
260 TEST_ASSERT(status == U_USELESS_COLLATOR_ERROR && re == NULL); in TestRegexCAPI()
275 TEST_ASSERT(u_strcmp(pat, p) == 0); in TestRegexCAPI()
276 TEST_ASSERT(len==(int32_t)strlen("abc*")); in TestRegexCAPI()
301 TEST_ASSERT(clone1 != NULL); in TestRegexCAPI()
306 TEST_ASSERT(clone2 != NULL); in TestRegexCAPI()
312 TEST_ASSERT(clone in TestRegexCAPI()
[all...]
H A Dtracetst.c53 #define TEST_ASSERT(expr) UPRV_BLOCK_MACRO_BEGIN { \ macro
237 TEST_ASSERT(originalTEntryFunc != testTraceEntry); in TestTraceAPI()
238 TEST_ASSERT(originalTExitFunc != testTraceExit); in TestTraceAPI()
239 TEST_ASSERT(originalTDataFunc != testTraceData); in TestTraceAPI()
243 TEST_ASSERT(e == testTraceEntry); in TestTraceAPI()
244 TEST_ASSERT(x == testTraceExit); in TestTraceAPI()
245 TEST_ASSERT(d == testTraceData); in TestTraceAPI()
246 TEST_ASSERT(context == newContext); in TestTraceAPI()
258 TEST_ASSERT(level==UTRACE_OFF); in TestTraceAPI()
261 TEST_ASSERT(leve in TestTraceAPI()
[all...]

Completed in 12 milliseconds

1234