mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make console a namespace (fixes #13010)
This commit is contained in:
parent
0b689a8a31
commit
2bc0862f47
9 changed files with 30 additions and 73 deletions
|
@ -27,7 +27,6 @@ test_interfaces([
|
|||
"DOMRect",
|
||||
"DOMRectReadOnly",
|
||||
"Comment",
|
||||
"Console",
|
||||
"CustomEvent",
|
||||
"Document",
|
||||
"DocumentFragment",
|
||||
|
@ -183,5 +182,6 @@ test_interfaces([
|
|||
"XMLHttpRequest",
|
||||
"XMLHttpRequestEventTarget",
|
||||
"XMLHttpRequestUpload",
|
||||
"console",
|
||||
]);
|
||||
</script>
|
||||
|
|
|
@ -65,7 +65,7 @@ function test_interfaces(interfaceNamesInGlobalScope) {
|
|||
}
|
||||
|
||||
for (var name of Object.getOwnPropertyNames(self)) {
|
||||
if (!/^[A-Z]/.test(name)) {
|
||||
if (!/^[A-Z]/.test(name) && name != 'console') {
|
||||
continue;
|
||||
}
|
||||
assert_true(name in interfaceMap,
|
||||
|
|
|
@ -23,7 +23,6 @@ test_interfaces([
|
|||
"DOMRect",
|
||||
"DOMRectReadOnly",
|
||||
"Comment",
|
||||
"Console",
|
||||
"CustomEvent",
|
||||
"DedicatedWorkerGlobalScope",
|
||||
"Document",
|
||||
|
@ -128,6 +127,7 @@ test_interfaces([
|
|||
"XMLHttpRequest",
|
||||
"XMLHttpRequestEventTarget",
|
||||
"XMLHttpRequestUpload",
|
||||
"console",
|
||||
]);
|
||||
|
||||
done();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue