Skip to content

Commit eb993c5

Browse files
test: update WPT for urlpattern to 11a459a2b1
1 parent e3cdb14 commit eb993c5

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<script src="/resources/testharness.js"></script>
3+
<script src="/resources/testharnessreport.js"></script>
4+
<script>
5+
test(() => {
6+
assert_throws_js(TypeError, () => { new URLPattern({ pathname: '()' }); });
7+
}, `URLPattern rejects an empty regexp group '()' with a TypeError`);
8+
9+
test(() => {
10+
new URLPattern({ pathname: '(a)' });
11+
}, `URLPattern accepts a non-empty regexp group '(a)'`);
12+
</script>

test/fixtures/wpt/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"path": "url"
7777
},
7878
"urlpattern": {
79-
"commit": "23aac9278460a73394585ff5a15b6a04dfcd5ec8",
79+
"commit": "11a459a2b1d411506d9230edf9f2ef32babfeb0b",
8080
"path": "urlpattern"
8181
},
8282
"user-timing": {

0 commit comments

Comments
 (0)