Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/dom/new-harness.js

Issue 2477133002: Import wpt@306326cfe973b6c7019c50879ad03b02825c7539 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // We override only the things we need to -- the rest we'll just inherit from 1 // We override only the things we need to -- the rest we'll just inherit from
2 // original-harness.js. Polymorphism, kind of. 2 // original-harness.js. Polymorphism, kind of.
3 ReflectionHarness.catchUnexpectedExceptions = false; 3 ReflectionHarness.conformanceTesting = true;
4 4
5 ReflectionHarness.test = function(expected, actual, description) { 5 ReflectionHarness.test = function(fun, description) {
6 test(function() {
7 assert_equals(expected, actual);
8 }, this.getTypeDescription() + ": " + description);
9 // This is the test suite that will rate conformance, so we don't want to
10 // bail out early if a test fails -- we want all tests to always run.
11 return true;
12 }
13
14 ReflectionHarness.run = function(fun, description) {
15 test(fun, this.getTypeDescription() + ": " + description); 6 test(fun, this.getTypeDescription() + ": " + description);
16 } 7 }
17 8
18 ReflectionHarness.testException = function(exceptionName, fn, description) { 9 ReflectionHarness.assertEquals = assert_equals;
19 test(function() { 10
20 assert_throws(exceptionName, fn); 11 ReflectionHarness.assertThrows = assert_throws;
21 }, this.getTypeDescription() + ": " + description);
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698