| Index: third_party/WebKit/LayoutTests/imported/wpt/html/dom/new-harness.js
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/new-harness.js b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/new-harness.js
|
| index 11bf7623251113c06e95f2a176318b9f630fca26..f7481996e12d8cfd60c62304e74e1a5c7584a779 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/html/dom/new-harness.js
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/dom/new-harness.js
|
| @@ -1,11 +1,22 @@
|
| // We override only the things we need to -- the rest we'll just inherit from
|
| // original-harness.js. Polymorphism, kind of.
|
| -ReflectionHarness.conformanceTesting = true;
|
| +ReflectionHarness.catchUnexpectedExceptions = false;
|
|
|
| -ReflectionHarness.test = function(fun, description) {
|
| +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) {
|
| test(fun, this.getTypeDescription() + ": " + description);
|
| }
|
|
|
| -ReflectionHarness.assertEquals = assert_equals;
|
| -
|
| -ReflectionHarness.assertThrows = assert_throws;
|
| +ReflectionHarness.testException = function(exceptionName, fn, description) {
|
| + test(function() {
|
| + assert_throws(exceptionName, fn);
|
| + }, this.getTypeDescription() + ": " + description);
|
| +}
|
|
|