blob: ca68bc8a4c28e030fe5c4c4f2f7d58adb99f3322 [file] [log] [blame]
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>Test the WHLSL test harness.</title>
<script src="js/test-harness.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
const whlslTests = {};
whlslTests.twoIntLiterals = async () => {
let program = `
bool foo()
{
return 42 == 42;
}
`;
assert_equals(await callBoolFunction(program, "foo", []), true);
}
runTests(whlslTests);
</script>
</html>