mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Support Namespace const in webidl (#30492)
* Add TestNS with const * Implement namespace const in codegen
This commit is contained in:
parent
a31e2ea576
commit
8436002383
9 changed files with 74 additions and 8 deletions
|
@ -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]
|
|
@ -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",
|
||||
[
|
||||
|
|
7
tests/wpt/mozilla/meta/mozilla/ns.any.js.ini
Normal file
7
tests/wpt/mozilla/meta/mozilla/ns.any.js.ini
Normal 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]
|
6
tests/wpt/mozilla/tests/mozilla/ns.any.js
Normal file
6
tests/wpt/mozilla/tests/mozilla/ns.any.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
// META: title=Namespace bindings
|
||||
|
||||
test(function () {
|
||||
assert_equals(TestNS.ONE, 1);
|
||||
assert_equals(TestNS.TWO, 2);
|
||||
}, "Namespace constants");
|
Loading…
Add table
Add a link
Reference in a new issue