mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
This directory now contains third_party software that is vendored into the Servo source tree. The idea is that it would eventually hold webrender and other crates from mozilla-central as well with a standard patch management approach for each.
64 lines
1.3 KiB
Python
64 lines
1.3 KiB
Python
def WebIDLTest(parser, harness):
|
|
threw = False
|
|
try:
|
|
parser.parse(
|
|
"""
|
|
interface DuplicateQualifiers1 {
|
|
getter getter byte foo(unsigned long index);
|
|
};
|
|
"""
|
|
)
|
|
|
|
results = parser.finish()
|
|
except:
|
|
threw = True
|
|
|
|
harness.ok(threw, "Should have thrown.")
|
|
|
|
threw = False
|
|
try:
|
|
parser.parse(
|
|
"""
|
|
interface DuplicateQualifiers2 {
|
|
setter setter byte foo(unsigned long index, byte value);
|
|
};
|
|
"""
|
|
)
|
|
|
|
results = parser.finish()
|
|
except:
|
|
threw = True
|
|
|
|
harness.ok(threw, "Should have thrown.")
|
|
|
|
threw = False
|
|
try:
|
|
parser.parse(
|
|
"""
|
|
interface DuplicateQualifiers4 {
|
|
deleter deleter byte foo(unsigned long index);
|
|
};
|
|
"""
|
|
)
|
|
|
|
results = parser.finish()
|
|
except:
|
|
threw = True
|
|
|
|
harness.ok(threw, "Should have thrown.")
|
|
|
|
threw = False
|
|
try:
|
|
parser.parse(
|
|
"""
|
|
interface DuplicateQualifiers5 {
|
|
getter deleter getter byte foo(unsigned long index);
|
|
};
|
|
"""
|
|
)
|
|
|
|
results = parser.finish()
|
|
except:
|
|
threw = True
|
|
|
|
harness.ok(threw, "Should have thrown.")
|