From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. 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..5c04067396 --- /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(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