From bb76c02463e922072b600bdfe9c3e0dab5cf9c32 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 3 Oct 2019 22:56:40 +0000 Subject: [PATCH] Bug 1523562 [wpt PR 15016] - Add assert descriptions to Web Locks test to aid debugging, a=testonly Automatic update from web-platform-tests Add assert descriptions to Web Locks test to aid debugging (#15016) For https://github.com/web-platform-tests/wpt/issues/15015. -- wpt-commits: 4ac3172e8d86ade4a9ded497bd10a1124fc6e231 wpt-pr: 15016 UltraBlame original commit: d6f60b92b7532559e81938730896ed4e1c266534 --- .../tests/web-locks/signal.tentative.https.any.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/testing/web-platform/tests/web-locks/signal.tentative.https.any.js b/testing/web-platform/tests/web-locks/signal.tentative.https.any.js index f5662e91cc794..1081be68d35c5 100644 --- a/testing/web-platform/tests/web-locks/signal.tentative.https.any.js +++ b/testing/web-platform/tests/web-locks/signal.tentative.https.any.js @@ -50,8 +50,10 @@ promise_test(async t => { const state = await navigator.locks.query(); - assert_equals(state.held.filter(lock => lock.name === res).length, 1); - assert_equals(state.pending.filter(lock => lock.name === res).length, 1); + assert_equals(state.held.filter(lock => lock.name === res).length, 1, + 'Number of held locks'); + assert_equals(state.pending.filter(lock => lock.name === res).length, 1, + 'Number of pending locks'); const rejected = promise_rejects( t, 'AbortError', promise, 'Request should reject with AbortError'); @@ -76,8 +78,10 @@ promise_test(async t => { const state = await navigator.locks.query(); - assert_equals(state.held.filter(lock => lock.name === res).length, 1); - assert_equals(state.pending.filter(lock => lock.name === res).length, 1); + assert_equals(state.held.filter(lock => lock.name === res).length, 1, + 'Number of held locks'); + assert_equals(state.pending.filter(lock => lock.name === res).length, 1, + 'Number of pending locks'); const rejected = promise_rejects( t, 'AbortError', promise, 'Request should reject with AbortError');