From 3b46eb9d7b0b1b25729459bd058bc42a1331407c Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Tue, 25 Jan 2022 09:03:10 +0000 Subject: [PATCH] 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 Reviewed-by: Corentin Wallez Commit-Queue: Corentin Wallez --- src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp | 6 +++--- src/tests/end2end/ComputeSharedMemoryTests.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp b/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp index 93f47d3d42..68bfd4f5d2 100644 --- a/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp +++ b/src/tests/end2end/ComputeLayoutMemoryBufferTests.cpp @@ -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; diff --git a/src/tests/end2end/ComputeSharedMemoryTests.cpp b/src/tests/end2end/ComputeSharedMemoryTests.cpp index ee27977dea..65410aebec 100644 --- a/src/tests/end2end/ComputeSharedMemoryTests.cpp +++ b/src/tests/end2end/ComputeSharedMemoryTests.cpp @@ -132,16 +132,16 @@ TEST_P(ComputeSharedMemoryTests, AssortedTypes) { wg_struct.m = mat2x2( vec2(f32(i), f32(i + 1u)), vec2(f32(i + 2u), f32(i + 3u))); - } elseif (LocalInvocationID.x == 1u) { + } else if (LocalInvocationID.x == 1u) { wg_matrix = mat2x2( vec2(f32(i), f32(i + 1u)), vec2(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(i), f32(i + 1u), f32(i + 2u), f32(i + 3u)); }