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 var helpers = { |
| 6 helpAssertTrue: function(test) { |
| 7 assertTrue(test); |
| 8 }, |
| 9 helpAssertFalse: function(test) { |
| 10 assertFalse(test); |
| 11 } |
| 12 }; |
| 13 |
| 14 // Sample tests that exercise the test JS library and show how this framework |
| 15 // could be used to test the downloads page. |
| 16 function testAssertFalse() { |
| 17 assertFalse(false); |
| 18 } |
| 19 |
| 20 function testInitialFocus() { |
| 21 assertTrue(document.activeElement.id == 'term', ''); |
| 22 } |
| 23 |
| 24 function testHelpers() { |
| 25 helpers.helpAssertTrue(true); |
| 26 helpers.helpAssertFalse(false); |
| 27 } |
OLD | NEW |