Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Unified Diff: Source/bindings/tests/idls/TestInterfaceConstructor2.idl

Issue 112303003: IDL compiler: [Constructor] overloading (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Better test case Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/idls/TestInterfaceConstructor2.idl
diff --git a/Source/core/css/CSSFontFaceLoadEvent.idl b/Source/bindings/tests/idls/TestInterfaceConstructor2.idl
similarity index 83%
copy from Source/core/css/CSSFontFaceLoadEvent.idl
copy to Source/bindings/tests/idls/TestInterfaceConstructor2.idl
index b77706c4ec6cca3b62562ed99a48e6cfb7e7441f..7a4006646f9999eb499e4935d9b26fa25edab7dd 100644
--- a/Source/core/css/CSSFontFaceLoadEvent.idl
+++ b/Source/bindings/tests/idls/TestInterfaceConstructor2.idl
@@ -28,10 +28,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-// FIXME: Make this constructable from Javascript
+// Need separate tests for constructors with interface_length == 0 and
+// interface_length > 0.
+// Includes overloading to test the overload resolution callback.
[
- NoInterfaceObject,
- RuntimeEnabled=FontLoadEvents,
-] interface CSSFontFaceLoadEvent : Event {
- readonly attribute FontFace[] fontfaces;
+ Constructor(DOMString stringArg),
+ Constructor(TestInterfaceEmpty testInterfaceEmptyArg),
+] interface TestInterfaceConstructor2 {
};

Powered by Google App Engine
This is Rietveld 408576698