Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d

This commit is contained in:
Ms2ger 2016-11-14 11:07:09 +01:00
parent 65dd6d4340
commit ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions

View file

@ -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;