diff --git a/pages.json b/pages.json
index 3c990062ebf8ddb0aae1b1b087bcdd9152e798df..3f36c28e2cfa39503229ac4c1bd6c9f8f4be0b8c 100644
--- a/pages.json
+++ b/pages.json
@@ -546,17 +546,10 @@
}
},
{
- "path": "pages/API/request-animation-frame/request-animation-frame",
+ "path": "pages/API/animation-frame/animation-frame",
"group": "1,4,9,0",
"style": {
- "navigationBarTitleText": "requestAnimationFrame | 加入请求帧动画队列"
- }
- },
- {
- "path": "pages/API/cancel-animation-frame/cancel-animation-frame",
- "group": "1,4,9,1",
- "style": {
- "navigationBarTitleText": "cancelAnimationFrame | 取消已加入的帧动画队列"
+ "navigationBarTitleText": "AnimationFrame | 帧动画"
}
},
{
@@ -2740,4 +2733,4 @@
]
}
]
-}
\ No newline at end of file
+}
diff --git a/pages/API/cancel-animation-frame/cancel-animation-frame.test.js b/pages/API/animation-frame/animation-frame.test.js
similarity index 86%
rename from pages/API/cancel-animation-frame/cancel-animation-frame.test.js
rename to pages/API/animation-frame/animation-frame.test.js
index 4c8f184fbbe58d5e90060d4d1c5a3f2ebc3c6f1c..6e96a0a1fd712301143ff8ccb3b13f86259d7c6a 100644
--- a/pages/API/cancel-animation-frame/cancel-animation-frame.test.js
+++ b/pages/API/animation-frame/animation-frame.test.js
@@ -1,4 +1,4 @@
-const PAGE_PATH = '/pages/API/cancel-animation-frame/cancel-animation-frame'
+const PAGE_PATH = '/pages/API/animation-frame/animation-frame'
describe('API-cancelAnimationFrame', () => {
let page
diff --git a/pages/API/cancel-animation-frame/cancel-animation-frame.uvue b/pages/API/animation-frame/animation-frame.uvue
similarity index 100%
rename from pages/API/cancel-animation-frame/cancel-animation-frame.uvue
rename to pages/API/animation-frame/animation-frame.uvue
diff --git a/pages/API/request-animation-frame/request-animation-frame.test.js b/pages/API/request-animation-frame/request-animation-frame.test.js
deleted file mode 100644
index 82dbcca626b6eb19d46b2b8c65f88ec1a4acf03b..0000000000000000000000000000000000000000
--- a/pages/API/request-animation-frame/request-animation-frame.test.js
+++ /dev/null
@@ -1,16 +0,0 @@
-const PAGE_PATH = '/pages/API/request-animation-frame/request-animation-frame'
-
-describe('API-requestAnimationFrame', () => {
- let page
- beforeAll(async () => {
- page = await program.reLaunch(PAGE_PATH)
- await page.waitFor(600);
- });
-
- it('requestAnimationFrame', async () => {
- await page.callMethod('startRequestAnimationFrame')
- await page.waitFor(100)
- const data = await page.data()
- expect(data.testFrameCount > 0).toBe(true)
- });
-});
diff --git a/pages/API/request-animation-frame/request-animation-frame.uvue b/pages/API/request-animation-frame/request-animation-frame.uvue
deleted file mode 100644
index 825804034ff713058c26f1c917a625e0c1a0bce3..0000000000000000000000000000000000000000
--- a/pages/API/request-animation-frame/request-animation-frame.uvue
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
- {{testFrameCount}}
-
-
-
-
-
-