expectedfailures.js
No description.

File Location

/goog/testing/expectedfailures.js

Classes

goog.testing.ExpectedFailures
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);
  }
}

Public Protected Private

Global Functions

goog.testing.ExpectedFailures.setUpConsole_()
Sets up the debug console, if it isn't already set up.
code »

Directory testing

File Reference