Commit 032f503
committed
Replace SimplePromise with native Promises
This PR replaces usage of SimplePromise with native Promises. The API shape
is slightly different, requiring some logic changes.
The biggest change is that `Stage.initialize()` is now async, which
lets us remove `waitUntilRead()`, and `_runBenchmarkAndRecordResults()`
is also async.
modified: MotionMark/resources/debug-runner/debug-runner.js: Fix a bug that broke clicking some controls.
modified: MotionMark/resources/extensions.js
modified: MotionMark/resources/runner/benchmark-runner.js
modified: MotionMark/resources/runner/motionmark.js
modified: MotionMark/tests/3d/resources/webgl.js
modified: MotionMark/tests/3d/resources/webgpu.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-canvas-images.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-canvas-particles.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-canvas-shapes.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-css-images.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-css-shapes.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-particles.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-svg-images.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-svg-shapes.js
modified: MotionMark/tests/bouncing-particles/resources/bouncing-tagged-images.js
modified: MotionMark/tests/core/resources/canvas-stage.js
modified: MotionMark/tests/core/resources/canvas-tests.js
modified: MotionMark/tests/core/resources/design.js
modified: MotionMark/tests/core/resources/focus.js
modified: MotionMark/tests/core/resources/image-data.js
modified: MotionMark/tests/core/resources/leaves.js
modified: MotionMark/tests/core/resources/multiply.js
modified: MotionMark/tests/core/resources/suits.js
modified: MotionMark/tests/dom/resources/compositing-transforms.js
modified: MotionMark/tests/dom/resources/dom-particles.js
modified: MotionMark/tests/dom/resources/focus.js
modified: MotionMark/tests/resources/main.js
modified: MotionMark/tests/simple/resources/simple-canvas-paths.js
modified: MotionMark/tests/simple/resources/tiled-canvas-image.js
modified: MotionMark/tests/template/resources/template-canvas.js
modified: MotionMark/tests/template/resources/template-css.js
modified: MotionMark/tests/template/resources/template-svg.js1 parent 75efd9e commit 032f503
File tree
31 files changed
+256
-401
lines changed- MotionMark
- resources
- runner
- tests
- 3d/resources
- bouncing-particles/resources
- core/resources
- dom/resources
- resources
- simple/resources
- template/resources
31 files changed
+256
-401
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | 437 | | |
476 | 438 | | |
477 | 439 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
| 108 | + | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
115 | | - | |
| 113 | + | |
116 | 114 | | |
117 | | - | |
| 115 | + | |
118 | 116 | | |
119 | 117 | | |
120 | 118 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
136 | 134 | | |
137 | | - | |
| 135 | + | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
| 138 | + | |
141 | 139 | | |
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
147 | | - | |
| 145 | + | |
148 | 146 | | |
149 | 147 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 148 | + | |
153 | 149 | | |
154 | 150 | | |
155 | | - | |
| 151 | + | |
156 | 152 | | |
157 | | - | |
158 | 153 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
162 | 157 | | |
163 | 158 | | |
164 | 159 | | |
165 | 160 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
170 | 165 | | |
171 | 166 | | |
172 | 167 | | |
173 | 168 | | |
174 | 169 | | |
175 | | - | |
176 | | - | |
| 170 | + | |
177 | 171 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
182 | 176 | | |
183 | | - | |
184 | | - | |
| 177 | + | |
| 178 | + | |
185 | 179 | | |
186 | 180 | | |
187 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | | - | |
30 | | - | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
0 commit comments