-
Notifications
You must be signed in to change notification settings - Fork 439
test(wtr): enable custom elements registry tests @W-19097891 #5509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 73 commits
8c7ed79
e2f88d5
81275d0
39533d3
33e58c8
d0b8003
976c002
8d39505
c66afad
f1c50b0
7a73bf0
9b7b21b
9deaca2
1cf1275
7fc137c
ae937cc
9250dd5
d4280e8
bbffbf3
1ef88ed
02f8ed1
7a5260a
1a08a62
f14c829
289deeb
b97f783
3cdb65c
7009a26
19c1090
5e75329
497bfa8
8ff59c5
885ce57
aa47c49
6185811
ec0186f
3463450
7c0eb0a
d91c8aa
371032d
c47a44d
639f754
c21a895
d041a23
cb6213c
76efacb
e86cbc4
136f47b
6e31af9
9805b58
67f727b
370da4c
22822f7
654aef7
bc09749
99d6b27
c494abe
02ca871
85610ff
96fa673
bcba665
b79d66b
3437c71
23491ec
947612f
9fa8504
97ee6e9
159d046
2e8abcf
d9eda1d
43818d5
ec5293d
225da98
3d51c59
076b8ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -262,3 +262,14 @@ export function expectEquivalentDOM(element, html) { | |
|
|
||
| expectEquivalent(element, fragment.body.firstChild); | ||
| } | ||
|
|
||
| export const resolvePathOutsideRoot = (file) => { | ||
| return file.replace(/^(\.\.\/)+?(.+?)$/, (_, outside, filepath) => { | ||
| // To serve files from outside the web root (e.g. from the monorepo root | ||
| // node_modules, @web/dev-server provides this "magic" path. It's hacky | ||
| // of us to use it it directly. | ||
| // '../'.repeat(depth) becomes `/__wds-outside-root__/${depth}/` | ||
| const depth = outside.length / 3; | ||
| return `/__wds-outside-root__/${depth}/${filepath}`; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @wjhsf does this mean that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When we serve pages with code like That's fine and dandy for regular imports, but sometimes we do weird hacky nonsense that needs the same transformation, but |
||
| }); | ||
| }; | ||
Uh oh!
There was an error while loading. Please reload this page.