| <meta name="timeout" content="long"> |
| <script src="js/test-harness.js"></script> |
| <script src="../js/webgpu-functions.js"></script> |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| whlslTests.operatorXY = async () => { |
| if (bool2(true, false).xy.x) |
| if (bool2(true, false).yx.y) |
| assert_equals(await callIntFunction(program, "foo", []), 42); |
| assert_equals(await callIntFunction(program, "bar", []), 24); |
| assert_equals(await callIntFunction(program, "baz", []), 10); |
| whlslTests.assignOperatorXY = async () => { |
| assert_equals(await callIntFunction(program, "foo", [makeInt(20), makeInt(10)]), 10); |
| assert_equals(await callIntFunction(program, "foo", [makeInt(10), makeInt(20)]), -10); |