aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js')
-rw-r--r--tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js b/tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js
index 971e82ed81d..fdea1d8d93c 100644
--- a/tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js
+++ b/tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js
@@ -28,7 +28,8 @@ function assert_frames_equal(a, b, name) {
assert_equals(Object.keys(a).sort().toString(),
Object.keys(b).sort().toString(),
`properties on ${name} should match`);
- for (const p in a) {
+ // Iterates sorted keys to ensure stable failures.
+ for (const p of Object.keys(a).sort()) {
assert_equals(a[p], b[p], `value for '${p}' on ${name}`);
}
}