mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
|
@ -1,22 +1,11 @@
|
|||
// We override only the things we need to -- the rest we'll just inherit from
|
||||
// original-harness.js. Polymorphism, kind of.
|
||||
ReflectionHarness.catchUnexpectedExceptions = false;
|
||||
ReflectionHarness.conformanceTesting = true;
|
||||
|
||||
ReflectionHarness.test = function(expected, actual, description) {
|
||||
test(function() {
|
||||
assert_equals(expected, actual);
|
||||
}, this.getTypeDescription() + ": " + description);
|
||||
// This is the test suite that will rate conformance, so we don't want to
|
||||
// bail out early if a test fails -- we want all tests to always run.
|
||||
return true;
|
||||
}
|
||||
|
||||
ReflectionHarness.run = function(fun, description) {
|
||||
ReflectionHarness.test = function(fun, description) {
|
||||
test(fun, this.getTypeDescription() + ": " + description);
|
||||
}
|
||||
|
||||
ReflectionHarness.testException = function(exceptionName, fn, description) {
|
||||
test(function() {
|
||||
assert_throws(exceptionName, fn);
|
||||
}, this.getTypeDescription() + ": " + description);
|
||||
}
|
||||
ReflectionHarness.assertEquals = assert_equals;
|
||||
|
||||
ReflectionHarness.assertThrows = assert_throws;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue