summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/mozilla/tests/webgpu/common/internal/query/compare.js
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/mozilla/tests/webgpu/common/internal/query/compare.js')
-rw-r--r--testing/web-platform/mozilla/tests/webgpu/common/internal/query/compare.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/web-platform/mozilla/tests/webgpu/common/internal/query/compare.js b/testing/web-platform/mozilla/tests/webgpu/common/internal/query/compare.js
index 8af64919a2..f2bb1b62f3 100644
--- a/testing/web-platform/mozilla/tests/webgpu/common/internal/query/compare.js
+++ b/testing/web-platform/mozilla/tests/webgpu/common/internal/query/compare.js
@@ -58,7 +58,10 @@ function compareOneLevel(ordering, aIsBig, bIsBig) {
return Ordering.Unordered;
}
-function comparePaths(a, b) {
+/**
+ * Compare two file paths, or file-local test paths, returning an Ordering between the two.
+ */
+export function comparePaths(a, b) {
const shorter = Math.min(a.length, b.length);
for (let i = 0; i < shorter; ++i) {