Supervised user import: Listen for profile creation/deletion
[chromium-blink-merge.git] / chrome / test / data / unit / framework_unittest.js
blob3eee034ba22262a79f7cd6e68e4d1eebc0e09b3c
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /**
6 * Class for testing the unit_test framework.
7 * @constructor
8 */
9 function FrameworkUnitTest() {}
11 FrameworkUnitTest.prototype = {
12 __proto__: testing.Test.prototype,
15 TEST_F('FrameworkUnitTest', 'testExpectTrueOk', function() {
16 expectTrue(true);
17 });
19 TEST_F('FrameworkUnitTest', 'testAssertTrueOk', function() {
20 assertTrue(true);
21 });
23 /**
24 * Failing version of FrameworkUnitTest.
25 * @constructor
27 function FrameworkUnitTestFail() {}
29 FrameworkUnitTestFail.prototype = {
30 __proto__: FrameworkUnitTest.prototype,
32 /** inheritDoc */
33 testShouldFail: true,
36 TEST_F('FrameworkUnitTestFail', 'testExpectFailFails', function() {
37 expectNotReached();
38 });
40 TEST_F('FrameworkUnitTestFail', 'testAssertFailFails', function() {
41 assertNotReached();
42 });