summaryrefslogtreecommitdiffstats
path: root/dom/webgpu/tests/cts/checkout/src/demo/a/b/c.spec.ts
blob: 0ee8f4c182a0afcae73a39a00e9afe4bb8039cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
export const description = 'Description for c.spec.ts';

import { makeTestGroup } from '../../../common/framework/test_group.js';
import { unreachable } from '../../../common/util/util.js';
import { UnitTest } from '../../../unittests/unit_test.js';

export const g = makeTestGroup(UnitTest);

g.test('f')
  .desc(
    `Test plan for f
    - Test stuff
    - Test some more stuff`
  )
  .fn(() => {});

g.test('f,g').fn(() => {});

g.test('f,g,h')
  .paramsSimple([{}, { x: 0 }, { x: 0, y: 0 }])
  .fn(() => {});

g.test('case_depth_2_in_single_child_test')
  .paramsSimple([{ x: 0, y: 0 }])
  .fn(() => {});

g.test('deep_case_tree')
  .params(u =>
    u //
      .combine('x', [1, 2])
      .combine('y', [1, 2])
      .combine('z', [1, 2])
  )
  .fn(() => {});

g.test('statuses,debug').fn(t => {
  t.debug('debug');
});

g.test('statuses,skip').fn(t => {
  t.skip('skip');
});

g.test('statuses,warn').fn(t => {
  t.warn('warn');
});

g.test('statuses,fail').fn(t => {
  t.fail('fail');
});

g.test('statuses,throw').fn(() => {
  unreachable('unreachable');
});

g.test('multiple_same_stack').fn(t => {
  for (let i = 0; i < 3; ++i) {
    t.fail(
      i === 2
        ? 'this should appear after deduplicated line'
        : 'this should be "seen 2 times with identical stack"'
    );
  }
});

g.test('multiple_same_level').fn(t => {
  t.fail('this should print a stack');
  t.fail('this should print a stack');
  t.fail('this should not print a stack');
});

g.test('lower_levels_hidden,before').fn(t => {
  t.warn('warn - this should not print a stack');
  t.fail('fail');
});

g.test('lower_levels_hidden,after').fn(t => {
  t.fail('fail');
  t.warn('warn - this should not print a stack');
});