blob: fdf42e82eb7a9a6bbdd86032490d57fa7ee1c927 [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/whlsl-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>