Replace 'elseif' with 'else if' in end2end tests
Bug: tint:1289 Change-Id: Icc93f4d6136238b6942f6ca7daae5ce494e2f0e9 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/78160 Commit-Queue: yang gu <yang.gu@intel.com> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
parent
6c9a5920ea
commit
3b46eb9d7b
|
@ -196,11 +196,11 @@ struct Status {
|
|||
fn main() {
|
||||
if (input.header != {input_header_code}u) {
|
||||
status.code = {status_bad_input_header}u;
|
||||
} elseif (input.footer != {input_footer_code}u) {
|
||||
} else if (input.footer != {input_footer_code}u) {
|
||||
status.code = {status_bad_input_footer}u;
|
||||
} elseif (input.data.header != {data_header_code}u) {
|
||||
} else if (input.data.header != {data_header_code}u) {
|
||||
status.code = {status_bad_data_header}u;
|
||||
} elseif (input.data.footer != {data_footer_code}u) {
|
||||
} else if (input.data.footer != {data_footer_code}u) {
|
||||
status.code = {status_bad_data_footer}u;
|
||||
} else {
|
||||
status.code = {status_ok}u;
|
||||
|
|
|
@ -132,16 +132,16 @@ TEST_P(ComputeSharedMemoryTests, AssortedTypes) {
|
|||
wg_struct.m = mat2x2<f32>(
|
||||
vec2<f32>(f32(i), f32(i + 1u)),
|
||||
vec2<f32>(f32(i + 2u), f32(i + 3u)));
|
||||
} elseif (LocalInvocationID.x == 1u) {
|
||||
} else if (LocalInvocationID.x == 1u) {
|
||||
wg_matrix = mat2x2<f32>(
|
||||
vec2<f32>(f32(i), f32(i + 1u)),
|
||||
vec2<f32>(f32(i + 2u), f32(i + 3u)));
|
||||
} elseif (LocalInvocationID.x == 2u) {
|
||||
} else if (LocalInvocationID.x == 2u) {
|
||||
wg_array[0u] = i;
|
||||
wg_array[1u] = i + 1u;
|
||||
wg_array[2u] = i + 2u;
|
||||
wg_array[3u] = i + 3u;
|
||||
} elseif (LocalInvocationID.x == 3u) {
|
||||
} else if (LocalInvocationID.x == 3u) {
|
||||
wg_vector = vec4<f32>(
|
||||
f32(i), f32(i + 1u), f32(i + 2u), f32(i + 3u));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue