From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- .../tests/cts/checkout/src/unittests/basic.spec.ts | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dom/webgpu/tests/cts/checkout/src/unittests/basic.spec.ts (limited to 'dom/webgpu/tests/cts/checkout/src/unittests/basic.spec.ts') diff --git a/dom/webgpu/tests/cts/checkout/src/unittests/basic.spec.ts b/dom/webgpu/tests/cts/checkout/src/unittests/basic.spec.ts new file mode 100644 index 0000000000..f80444f03b --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/src/unittests/basic.spec.ts @@ -0,0 +1,35 @@ +export const description = ` +Basic unit tests for test framework. +`; + +import { makeTestGroup } from '../common/framework/test_group.js'; + +import { UnitTest } from './unit_test.js'; + +export const g = makeTestGroup(UnitTest); + +g.test('test,sync').fn(t => {}); + +g.test('test,async').fn(async t => {}); + +g.test('test_with_params,sync') + .paramsSimple([{}]) + .fn(t => { + t.debug(JSON.stringify(t.params)); + }); + +g.test('test_with_params,async') + .paramsSimple([{}]) + .fn(async t => { + t.debug(JSON.stringify(t.params)); + }); + +g.test('test_with_params,private_params') + .paramsSimple([ + { a: 1, b: 2, _result: 3 }, // + { a: 4, b: -3, _result: 1 }, + ]) + .fn(t => { + const { a, b, _result } = t.params; + t.expect(a + b === _result); + }); -- cgit v1.2.3