diff options
Diffstat (limited to 'testing/web-platform/tests/performance-timeline/not-restored-reasons/test-helper.js')
-rw-r--r-- | testing/web-platform/tests/performance-timeline/not-restored-reasons/test-helper.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testing/web-platform/tests/performance-timeline/not-restored-reasons/test-helper.js b/testing/web-platform/tests/performance-timeline/not-restored-reasons/test-helper.js index 97695cd0ac..826b0ccb2b 100644 --- a/testing/web-platform/tests/performance-timeline/not-restored-reasons/test-helper.js +++ b/testing/web-platform/tests/performance-timeline/not-restored-reasons/test-helper.js @@ -34,6 +34,15 @@ function assertReasonsStructEquals( } } +function ReasonsInclude(reasons, targetReason) { + for (const reason of reasons) { + if (reason.reason == targetReason) { + return true; + } + } + return false; +} + // Requires: // - /websockets/constants.sub.js in the test file and pass the domainPort // constant here. |