diff options
author | Samson <16504129+sagudev@users.noreply.github.com> | 2023-10-04 13:29:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-04 11:29:54 +0000 |
commit | 8436002383fc17a0572e02aa5a1409505bb10e91 (patch) | |
tree | 4090d4eb0c7490d24a429475bd3807b2208978fb /tests/wpt/mozilla | |
parent | a31e2ea57627bf5cdf8de81c6646d4f2fe25092b (diff) | |
download | servo-8436002383fc17a0572e02aa5a1409505bb10e91.tar.gz servo-8436002383fc17a0572e02aa5a1409505bb10e91.zip |
Support Namespace const in webidl (#30492)
* Add TestNS with const
* Implement namespace const in codegen
Diffstat (limited to 'tests/wpt/mozilla')
-rw-r--r-- | tests/wpt/mozilla/meta-legacy-layout/mozilla/ns.any.js.ini | 7 | ||||
-rw-r--r-- | tests/wpt/mozilla/meta/MANIFEST.json | 25 | ||||
-rw-r--r-- | tests/wpt/mozilla/meta/mozilla/ns.any.js.ini | 7 | ||||
-rw-r--r-- | tests/wpt/mozilla/tests/mozilla/ns.any.js | 6 |
4 files changed, 45 insertions, 0 deletions
diff --git a/tests/wpt/mozilla/meta-legacy-layout/mozilla/ns.any.js.ini b/tests/wpt/mozilla/meta-legacy-layout/mozilla/ns.any.js.ini new file mode 100644 index 00000000000..1028c1162dd --- /dev/null +++ b/tests/wpt/mozilla/meta-legacy-layout/mozilla/ns.any.js.ini @@ -0,0 +1,7 @@ +[ns.any.html] + type: testharness + prefs: [dom.testbinding.enabled:true] + +[ns.any.worker.html] + type: testharness + prefs: [dom.testbinding.enabled:true] diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index db7900cf84b..348218ec20a 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -13639,6 +13639,31 @@ {} ] ], + "ns.any.js": [ + "05087872b02abdeeb48c21ee9ec037b3a1483c03", + [ + "mozilla/ns.any.html", + { + "script_metadata": [ + [ + "title", + "Namespace bindings" + ] + ] + } + ], + [ + "mozilla/ns.any.worker.html", + { + "script_metadata": [ + [ + "title", + "Namespace bindings" + ] + ] + } + ] + ], "out-of-order-stylesheet-loads-and-imports.html": [ "d22ae59c689daf77ccda9fa38979413658778dcb", [ diff --git a/tests/wpt/mozilla/meta/mozilla/ns.any.js.ini b/tests/wpt/mozilla/meta/mozilla/ns.any.js.ini new file mode 100644 index 00000000000..1028c1162dd --- /dev/null +++ b/tests/wpt/mozilla/meta/mozilla/ns.any.js.ini @@ -0,0 +1,7 @@ +[ns.any.html] + type: testharness + prefs: [dom.testbinding.enabled:true] + +[ns.any.worker.html] + type: testharness + prefs: [dom.testbinding.enabled:true] diff --git a/tests/wpt/mozilla/tests/mozilla/ns.any.js b/tests/wpt/mozilla/tests/mozilla/ns.any.js new file mode 100644 index 00000000000..05087872b02 --- /dev/null +++ b/tests/wpt/mozilla/tests/mozilla/ns.any.js @@ -0,0 +1,6 @@ +// META: title=Namespace bindings + +test(function () { + assert_equals(TestNS.ONE, 1); + assert_equals(TestNS.TWO, 2); +}, "Namespace constants"); |