Add a runtime-disabled dialog element skeleton
[WebKit-https.git] / LayoutTests / webgpu / whlsl-double-not.html
1 <!DOCTYPE html>
2 <html>
3 <meta charset=utf-8>
4 <meta name="timeout" content="long">
5 <title>Copying.</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.doubleNot = async () =>
14 {
15     let program = `
16         bool foo(bool x)
17         {
18             return !!x;
19         }
20     `;
21     assert_equals(await callBoolFunction(program, "foo", [makeBool(true)]), true);
22     assert_equals(await callBoolFunction(program, "foo", [makeBool(false)]), false);
23 }
24
25 runTests(whlslTests);
26 </script>
27 </html>