Support Namespace const in webidl (#30492)

* Add TestNS with const

* Implement namespace const in codegen
This commit is contained in:
Samson 2023-10-04 13:29:54 +02:00 committed by GitHub
parent a31e2ea576
commit 8436002383
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 74 additions and 8 deletions

View file

@ -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]

View file

@ -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",
[

View file

@ -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]

View file

@ -0,0 +1,6 @@
// META: title=Namespace bindings
test(function () {
assert_equals(TestNS.ONE, 1);
assert_equals(TestNS.TWO, 2);
}, "Namespace constants");