Skip to content

Commit 22001c3

Browse files
authored
Revert "remove autotest scripts and extensions (#937)" (#938)
This reverts commit 0f3809c.
1 parent 0f3809c commit 22001c3

553 files changed

Lines changed: 14711 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/auto-test-case.meta

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ver": "1.1.0",
3+
"importer": "directory",
4+
"imported": true,
5+
"uuid": "17878048-2cfe-449a-87be-045ff8be632b",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {
9+
"compressionType": {},
10+
"isRemoteBundle": {}
11+
}
12+
}

assets/auto-test-case/dynamic.meta

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ver": "1.1.0",
3+
"importer": "directory",
4+
"imported": true,
5+
"uuid": "3ccfbeec-8f12-443a-ae5d-ea057d1130ca",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {
9+
"compressionType": {},
10+
"isRemoteBundle": {}
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ver": "1.1.0",
3+
"importer": "directory",
4+
"imported": true,
5+
"uuid": "3fbc9bf7-7d2d-4831-a2e9-336e4d6efbcf",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {
9+
"compressionType": {},
10+
"isRemoteBundle": {}
11+
}
12+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// @ts-ignore
2+
import { runScene, testCase, testClass } from 'db://automation-framework/runtime/test-framework.mjs';
3+
import { screenshot_custom } from '../common/utils';
4+
5+
@runScene('2d-rendering-in-3d')
6+
@testClass('T2dRenderingIn3d')
7+
export class T2dRenderingIn3d {
8+
public _dt = 160;
9+
10+
@testCase
11+
async play_01() {
12+
await screenshot_custom(this._dt);
13+
}
14+
15+
@testCase
16+
async play_03() {
17+
await screenshot_custom(this._dt * 2-70);
18+
}
19+
}
20+
21+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ver": "4.0.23",
3+
"importer": "typescript",
4+
"imported": true,
5+
"uuid": "e1bad672-2c14-4acb-ae09-b4615d657862",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {}
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"ver": "1.1.0",
3+
"importer": "directory",
4+
"imported": true,
5+
"uuid": "c61978bc-9e99-45f2-a449-e60d4addf91b",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {
9+
"compressionType": {},
10+
"isRemoteBundle": {}
11+
}
12+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
//@ts-ignore
2+
import { director } from 'cc';
3+
//@ts-ignore
4+
import { runScene, testCase, testClass } from 'db://automation-framework/runtime/test-framework.mjs';
5+
import { screenshot_custom } from '../common/utils';
6+
7+
@runScene('mipMapCheck')
8+
@testClass('MipMapCheck')
9+
export class MipMapCheck {
10+
_delay = 1;
11+
_dt = 60;
12+
13+
14+
@testCase
15+
async index(){
16+
await screenshot_custom();
17+
}
18+
@testCase
19+
async play_big_case() {
20+
await screenshot_custom(this._dt+1);
21+
}
22+
23+
@testCase
24+
async play_small_coin() {
25+
await screenshot_custom(this._dt+1+20);
26+
}
27+
28+
@testCase
29+
async play_small_case() {
30+
await screenshot_custom(this._dt*2-15);
31+
}
32+
33+
@testCase
34+
async play_big_coin() {
35+
await screenshot_custom(this._dt*2+30);
36+
}
37+
38+
@testCase
39+
async play_end() {
40+
await screenshot_custom(this._dt*4);
41+
}
42+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ver": "4.0.23",
3+
"importer": "typescript",
4+
"imported": true,
5+
"uuid": "f7fad213-5353-4e3f-b061-209522d485b3",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {}
9+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { director, find } from 'cc';
2+
// @ts-ignore
3+
import { runScene, testCase, testClass, waitForFrames, PlatformEnum } from 'db://automation-framework/runtime/test-framework.mjs';
4+
import { screenshot_custom_by_wait } from '../common/utils';
5+
import { setMipRange_cubemap } from '../../../cases/GFX/setMipRange/setMipRange-cube';
6+
import { setMipRange_quad } from '../../../cases/GFX/setMipRange/setMipRange-quad';
7+
8+
@testClass('setMipRange', 'setMipRange', [PlatformEnum.WEB_MOBILE, PlatformEnum.HUAWEI_QUICK_GAME, PlatformEnum.OPPO_MINI_GAME])
9+
export class setMipRange {
10+
_dt = 50;
11+
12+
@testCase
13+
async startPlay() {
14+
await waitForFrames(5);
15+
await screenshot_custom_by_wait();
16+
await screenshot_custom_by_wait(this._dt);
17+
for (let i = 0; i < 3; i++) {
18+
await screenshot_custom_by_wait(this._dt*2);
19+
}
20+
}
21+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"ver": "4.0.23",
3+
"importer": "typescript",
4+
"imported": true,
5+
"uuid": "23a787e2-5090-425d-8c9e-3a62003ad4cc",
6+
"files": [],
7+
"subMetas": {},
8+
"userData": {}
9+
}

0 commit comments

Comments
 (0)