[blinkpy] Find manifest items for tests by URL
When running WPT in web_tests, test names are more like URLs instead of file paths (to be precise, the part of a test name after external/wpt is a WPT URL), because WPT can generate multiple tests (variations) for a single test file (e.g. .any.js, ?run_type). Therefore, when asking questions like "is a test slow?", we need to find the manifest item for that test by URL instead of by file path; whereas if we want to know if a file in external/wpt is a test file, we find the manifest item(s) for that file by file path. This CL separates the two types of manifest queries, and chooses the correct one for each call site. Besides, unit tests are improved to cover the WPT variations (.any.js & ?run_type). Bug: 831975, 800570 Change-Id: I230d5ec7df06b7df1387da1b93788d6cae55d153 Reviewed-on: https://chromium-review.googlesource.com/1043160 Commit-Queue: Robert Ma <robertma@chromium.org> Reviewed-by:Quinten Yearsley <qyearsley@chromium.org> Cr-Commit-Position: refs/heads/master@{#556043}
Showing
Please register or sign in to comment