commit | be6f32da46f262a5781413ec5d4e25909113ef65 | [log] [tgz] |
---|---|---|
author | Mingyu Lei <leimy@chromium.org> | Fri May 26 04:15:54 2023 |
committer | Blink WPT Bot <blink-w3c-test-autoroller@chromium.org> | Fri May 26 04:46:36 2023 |
tree | e5098b54895600a398989229b9407079401c895c | |
parent | cb06cee910e1807ceec5ed392888952b21fc30c9 [diff] |
Fix size check for not restored reason set in WPT A wrong property `length` was used for comparing the size of the set, this CL fixes that by changing `length` to `size`. Bug: 1446619 Change-Id: Icb003734b620e717337d5d785cee8f24342bf2e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4568467 Reviewed-by: Yuzu Saijo <yuzus@chromium.org> Commit-Queue: Mingyu Lei <leimy@chromium.org> Cr-Commit-Position: refs/heads/main@{#1149530}
diff --git a/html/browsers/browsing-the-web/back-forward-cache/resources/rc-helper.js b/html/browsers/browsing-the-web/back-forward-cache/resources/rc-helper.js index 53bcdcc..cb73f52 100644 --- a/html/browsers/browsing-the-web/back-forward-cache/resources/rc-helper.js +++ b/html/browsers/browsing-the-web/back-forward-cache/resources/rc-helper.js
@@ -75,8 +75,8 @@ } collectReason(result); - assert_equals(notRestoredReasonsSet.length, - expectedNotRestoredReasonsSet.length); + assert_equals(notRestoredReasonsSet.size, + expectedNotRestoredReasonsSet.size); for (let reason of expectedNotRestoredReasonsSet) { assert_true(notRestoredReasonsSet.has(reason));