[WHLSL] Move WHLSL tests to their own folder
[WebKit-https.git] / LayoutTests / webgpu / whlsl / comment-parsing.html
1 <!DOCTYPE html>
2 <html>
3 <meta charset=utf-8>
4 <meta name="timeout" content="long">
5 <title>Test structs.</title>
6 <script src="js/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.commentParsing = async () => {
14     let program = `
15         /* this comment
16         runs over multiple lines */
17         bool foo() { return true; }
18     `;
19     assert_equals(await callBoolFunction(program, "foo", []), true);
20
21     await checkFail(
22         `
23         /* this comment
24         runs over multiple lines
25         bool foo() { return true; }
26         `);
27 }
28
29 runTests(whlslTests);
30 </script>
31 </html>
32