mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
Update web-platform-tests to revision 6856483bcc86322198f10e0c42385a7f9127eb66
This commit is contained in:
parent
b1a2b6b5bf
commit
ff06f1d031
265 changed files with 7539 additions and 988 deletions
|
@ -14,8 +14,9 @@
|
|||
if ('MojoInterfaceInterceptor' in self) {
|
||||
let prefix = '/resources/chromium';
|
||||
if ('window' in self) {
|
||||
if (window.location.pathname.includes('/LayoutTests/')) {
|
||||
let root = window.location.pathname.match(/.*LayoutTests/);
|
||||
const pathname = window.location.pathname;
|
||||
if (pathname.includes('/LayoutTests/') || pathname.includes('/web_tests/')) {
|
||||
let root = pathname.match(/.*(?:LayoutTests|web_tests)/);
|
||||
prefix = `${root}/external/wpt/resources/chromium`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue