goog.testing.ExpectedFailures
Provided By |
---|
Helper class for allowing some unit tests to fail, particularly designed to mark tests that should be fixed on a given browser.
var expectedFailures = new goog.testing.ExpectedFailures(); function tearDown() { expectedFailures.handleTearDown(); } function testSomethingThatBreaksInWebKit() { expectedFailures.expectFailureFor(goog.userAgent.WEBKIT); try { ... assert(somethingThatFailsInWebKit); ... } catch (e) { expectedFailures.handleException(e); } }
new ExpectedFailures()
Parameters | None. |
---|