OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Sample tests that exercise the test JS library and show how this framework | 5 // Sample tests that exercise the test JS library and show how this framework |
6 // could be used to test the downloads page. | 6 // could be used to test the downloads page. |
7 function testAssertFalse() { | 7 function testAssertFalse() { |
8 assertFalse(false); | 8 assertFalse(false); |
9 } | 9 } |
10 | 10 |
11 function FAILS_testAssertFalse() { | 11 function DISABLED_testAssertFalse() { |
12 assertFalse(true); | 12 assertFalse(true); |
13 assertFalse(false); | 13 assertFalse(false); |
14 } | 14 } |
15 | 15 |
16 function testInitialFocus() { | 16 function testInitialFocus() { |
17 assertTrue(document.activeElement.id == 'term', ''); | 17 assertTrue(document.activeElement.id == 'term', ''); |
18 } | 18 } |
19 | 19 |
20 function testConsoleError() { | 20 function testConsoleError() { |
21 console.error('checking console.error call causes failure.'); | 21 console.error('checking console.error call causes failure.'); |
22 } | 22 } |
OLD | NEW |