Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This notably includes webidl2js's new major release which fixes #2158. A test is included. It also requires fixing our one old-style mixin.
- Loading branch information
Showing
6 changed files
with
98 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// https://svgwg.org/svg2-draft/types.html#InterfaceSVGTests | ||
[NoInterfaceObject] | ||
interface SVGTests { | ||
interface mixin SVGTests { | ||
[SameObject] readonly attribute SVGStringList requiredExtensions; | ||
[SameObject] readonly attribute SVGStringList systemLanguage; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
test/web-platform-tests/to-upstream/html/dom/reflection-overridden-methods.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>Reflection isn't impacted by overridden (get|set)Attribute(NS) methods</title> | ||
<script src="/resources/testharness.js"></script> | ||
<script src="/resources/testharnessreport.js"></script> | ||
|
||
<script> | ||
"use strict"; | ||
test(() => { | ||
const div = document.createElement("div"); | ||
const calls = []; | ||
|
||
div.getAttribute = () => { | ||
calls.push("getAttribute"); | ||
}; | ||
div.getAttributeNS = () => { | ||
calls.push("getAttributeNS"); | ||
}; | ||
div.setAttribute = () => { | ||
calls.push("setAttribute"); | ||
}; | ||
div.setAttributeNS = () => { | ||
calls.push("setAttributeNS"); | ||
}; | ||
|
||
// eslint-disable-next-line no-unused-expressions | ||
div.title; | ||
div.title = "foo"; | ||
|
||
assert_array_equals(calls, []); | ||
}); | ||
</script> |
Oops, something went wrong.