blob: bc47bc465f07d2fa8ab64146d92b1e5f5fc3eff8 [file] [log] [blame]
// Copyright 2011 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Class for testing the unit_test framework.
* @constructor
* @extends {testing.Test}
*/
function FrameworkUnitTest() {}
FrameworkUnitTest.prototype = {
__proto__: testing.Test.prototype,
};
TEST_F('FrameworkUnitTest', 'AssertTrueOk', function() {
assertTrue(true);
});
/**
* Failing version of FrameworkUnitTest.
* @constructor
* @extends {FrameworkUnitTest}
*/
function FrameworkUnitTestFail() {}
FrameworkUnitTestFail.prototype = {
__proto__: FrameworkUnitTest.prototype,
/** inheritDoc */
testShouldFail: true,
};
TEST_F('FrameworkUnitTestFail', 'AssertFailFails', function() {
assertNotReached();
});