Commit 49da459
test: improve pummel/test-timers.js
* use Date.now() instead of new Date() because only the timestamp is
ever used, so we don't need the full Date object
* use separate start times recorded for the two different test cases
* improve assertion messages
PR-URL: #35175
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>1 parent 066148d commit 49da459Copy full SHA for 49da459
File tree
Expand file treeCollapse file tree
1 file changed
+8
-5
lines changedOpen diff view settings
Filter options
- test/pummel
Expand file treeCollapse file tree
1 file changed
+8
-5
lines changedOpen diff view settings
Collapse file
+8-5Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
26 | 26 | |
27 | 27 | |
28 | 28 | |
29 | | - |
30 | 29 | |
| 30 | + |
| 31 | + |
31 | 32 | |
32 | | - |
| 33 | + |
33 | 34 | |
34 | 35 | |
35 | 36 | |
| ||
46 | 47 | |
47 | 48 | |
48 | 49 | |
| 50 | + |
| 51 | + |
49 | 52 | |
50 | 53 | |
51 | 54 | |
52 | 55 | |
53 | | - |
| 56 | + |
54 | 57 | |
55 | 58 | |
56 | 59 | |
57 | 60 | |
58 | 61 | |
59 | 62 | |
60 | 63 | |
61 | | - |
| 64 | + |
62 | 65 | |
63 | | - |
| 66 | + |
64 | 67 | |
65 | 68 | |
66 | 69 | |
|
0 commit comments