Add a runtime-disabled dialog element skeleton
[WebKit-https.git] / LayoutTests / webgpu / whlsl-logical-negation.html
1 <!DOCTYPE html>
2 <html>
3 <meta charset=utf-8>
4 <meta name="timeout" content="long">
5 <title>Lvalues.</title>
6 <script src="js/whlsl-test-harness.js"></script>
7 <script src="js/webgpu-functions.js"></script>
8 <script src="../resources/testharness.js"></script>
9 <script src="../resources/testharnessreport.js"></script>
10 <script>
11 const whlslTests = {};
12
13 whlslTests.logicalNegation = async () =>
14 {
15     let program = "bool foo(bool x) { return !x; }";
16     assert_equals(await callBoolFunction(program, "foo", [makeBool(true)]), false);
17     assert_equals(await callBoolFunction(program, "foo", [makeBool(false)]), true);
18 }
19
20 runTests(whlslTests);
21 </script>
22 </html>