| OLD | NEW |
| (Empty) | |
| 1 // Sample test file, not for checkin. |
| 2 |
| 3 function FooBarBrowserTest() {} |
| 4 |
| 5 FooBarBrowserTest.prototype = { |
| 6 __proto__: testing.Test.prototype, |
| 7 |
| 8 browsePreload: 'chrome://web-component-test/', |
| 9 |
| 10 isAsync: true, |
| 11 }; |
| 12 |
| 13 // Run tests against FooBar. Batch them into one TEST_F to save time. |
| 14 TEST_F('FooBarBrowserTest', 'FooBarTest', function() { |
| 15 suite('FooBarTest', function() { |
| 16 suite('Foo Behavior', function() { |
| 17 test('Behaves as expected', function() { |
| 18 assertTrue(true, 'should have been true'); |
| 19 assertFalse(false, 'should have been false'); |
| 20 }); |
| 21 |
| 22 test('Does not behave unexpectedly', function() { |
| 23 assertEquals(1, 2, 'two should equal one'); |
| 24 assertEquals(2, 1, 'one should equal two'); |
| 25 }); |
| 26 }); |
| 27 |
| 28 suite('Bar Behavior', function() { |
| 29 test('Works well with others', function() {}); |
| 30 }); |
| 31 }); |
| 32 |
| 33 // Kick off the tests. |
| 34 mocha.run(); |
| 35 }); |
| OLD | NEW |