mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
@@ -136,10 +136,10 @@ def WebIDLTest(parser, harness):
|
||||
"""
|
||||
for (i, type) in enumerate(validUnionTypes):
|
||||
interface += string.Template("""
|
||||
void method${i}(${type} arg);
|
||||
undefined method${i}(${type} arg);
|
||||
${type} returnMethod${i}();
|
||||
attribute ${type} attr${i};
|
||||
void optionalMethod${i}(${type}? arg);
|
||||
undefined optionalMethod${i}(${type}? arg);
|
||||
""").substitute(i=i, type=type)
|
||||
interface += """
|
||||
};
|
||||
@@ -152,7 +152,7 @@ def WebIDLTest(parser, harness):
|
||||
for invalid in invalidUnionTypes:
|
||||
interface = testPre + string.Template("""
|
||||
interface TestUnion {
|
||||
void method(${type} arg);
|
||||
undefined method(${type} arg);
|
||||
};
|
||||
""").substitute(type=invalid)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user