OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 // Sample tests that exercise the test JS library and show how this framework |
| 6 // could be used to test the downloads page. |
| 7 var helper = { |
| 8 helpFunc: function helpFunc() { |
| 9 assertTrue(true); |
| 10 } |
| 11 }; |
| 12 |
| 13 function testAssertFalse() { |
| 14 assertFalse(false); |
| 15 } |
| 16 |
| 17 function testHelper() { |
| 18 helper.helpFunc(false); |
| 19 } |
| 20 |
| 21 function testAssertTrue() { |
| 22 assertTrue(true); |
| 23 } |
| 24 |
| 25 function testAssertEquals() { |
| 26 assertEquals(5, 5, "fives"); |
| 27 } |
OLD | NEW |