mirror of
https://github.com/tweenjs/tween.js.git
synced 2025-12-08 20:16:12 +00:00
parent
e99549bef1
commit
aa2cb879ec
@ -80,7 +80,7 @@ The one that happens more frequently is the first one, but the second one has ha
|
||||
|
||||
### Unit tests
|
||||
|
||||
Tests are in the `test/unit/tests.js` file.
|
||||
Tests are in the `src/tests.ts` file.
|
||||
|
||||
The tests are executed using [nodeunit](https://www.npmjs.com/package/nodeunit).
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ npm test
|
||||
|
||||
### 单元测试
|
||||
|
||||
测试用例在`test/unit/tests.js`文件中.
|
||||
测试用例在`src/tests.ts`文件中.
|
||||
|
||||
测试使用[nodeunit](https://www.npmjs.com/package/nodeunit)执行.
|
||||
|
||||
|
||||
@ -117,7 +117,7 @@ var currentTime = player.currentTime
|
||||
TWEEN.update(currentTime)
|
||||
```
|
||||
|
||||
We use explicit time values for the unit tests. You can have a look at [tests.js](../test/unit/tests.js) to see how we call TWEEN.update() with different values in order to simulate time passing.
|
||||
We use explicit time values for the unit tests. You can have a look at [tests.ts](../src/tests.ts) to see how we call TWEEN.update() with different values in order to simulate time passing.
|
||||
|
||||
## Controlling a tween
|
||||
|
||||
|
||||
@ -117,7 +117,7 @@ var currentTime = player.currentTime
|
||||
TWEEN.update(currentTime)
|
||||
```
|
||||
|
||||
我们使用明确的时间值进行单元测试。你可以看下 [tests.js](https://github.com/tweenjs/tween.js/blob/master/test/unit/tests.js) 这个例子,看看我们如何用不同的值调用`TWEEN.update()` 来模拟时间传递。
|
||||
我们使用明确的时间值进行单元测试。你可以看下 [tests.ts](../src/tests.ts) 这个例子,看看我们如何用不同的值调用`TWEEN.update()` 来模拟时间传递。
|
||||
|
||||
## 控制一个补间
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user