aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-06-09 23:51:15 -0400
committerGitHub <noreply@github.com>2020-06-09 23:51:15 -0400
commit1a561242cfca27b51d31bf63509cbc95044b69d4 (patch)
treed90b9d6b03ca1b4c218b3aa1163fad84ee311cad /tests/wpt/web-platform-tests/web-animations/resources/keyframe-utils.js
parent0b0ea17dca72d867b56ddf518240e25f30d93f3e (diff)
parent4c6f01b60a3093071a9b39cb92db303d280d28dc (diff)
downloadservo-1a561242cfca27b51d31bf63509cbc95044b69d4.tar.gz
servo-1a561242cfca27b51d31bf63509cbc95044b69d4.zip
Auto merge of #26831 - servo-wpt-sync:wpt_update_09-06-2020, r=jdm
Sync WPT with upstream (09-06-2020) Automated downstream sync of changes from upstream as of 09-06-2020. [no-wpt-sync] r? @servo-wpt-sync
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}`);
}
}