mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Sync WebIDL.py with gecko
This commit is contained in:
@@ -133,7 +133,7 @@ def WebIDLTest(parser, harness):
|
||||
};
|
||||
""")
|
||||
results = parser.finish()
|
||||
except Exception, x:
|
||||
except Exception as x:
|
||||
threw = True
|
||||
harness.ok(threw, "Should not allow [SetterThrows] on readonly attributes")
|
||||
|
||||
@@ -146,7 +146,7 @@ def WebIDLTest(parser, harness):
|
||||
};
|
||||
""")
|
||||
results = parser.finish()
|
||||
except Exception, x:
|
||||
except Exception as x:
|
||||
threw = True
|
||||
harness.ok(threw, "Should spell [Throws] correctly")
|
||||
|
||||
@@ -159,7 +159,7 @@ def WebIDLTest(parser, harness):
|
||||
};
|
||||
""")
|
||||
results = parser.finish()
|
||||
except Exception, x:
|
||||
except Exception as x:
|
||||
threw = True
|
||||
harness.ok(threw, "Should not allow [SameObject] on attributes not of interface type")
|
||||
|
||||
@@ -172,6 +172,6 @@ def WebIDLTest(parser, harness):
|
||||
};
|
||||
""")
|
||||
results = parser.finish()
|
||||
except Exception, x:
|
||||
except Exception as x:
|
||||
threw = True
|
||||
harness.ok(not threw, "Should allow [SameObject] on attributes of interface type")
|
||||
|
||||
Reference in New Issue
Block a user