| Index: chrome/test/data/webui/foo_bar_browsertest.js
|
| diff --git a/chrome/test/data/webui/foo_bar_browsertest.js b/chrome/test/data/webui/foo_bar_browsertest.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..53e46625486ef53188cb356d0b3854686715c7e3
|
| --- /dev/null
|
| +++ b/chrome/test/data/webui/foo_bar_browsertest.js
|
| @@ -0,0 +1,35 @@
|
| +// Sample test file, not for checkin.
|
| +
|
| +function FooBarBrowserTest() {}
|
| +
|
| +FooBarBrowserTest.prototype = {
|
| + __proto__: testing.Test.prototype,
|
| +
|
| + browsePreload: 'chrome://web-component-test/',
|
| +
|
| + isAsync: true,
|
| +};
|
| +
|
| +// Run tests against FooBar. Batch them into one TEST_F to save time.
|
| +TEST_F('FooBarBrowserTest', 'FooBarTest', function() {
|
| + suite('FooBarTest', function() {
|
| + suite('Foo Behavior', function() {
|
| + test('Behaves as expected', function() {
|
| + assertTrue(true, 'should have been true');
|
| + assertFalse(false, 'should have been false');
|
| + });
|
| +
|
| + test('Does not behave unexpectedly', function() {
|
| + assertEquals(1, 2, 'two should equal one');
|
| + assertEquals(2, 1, 'one should equal two');
|
| + });
|
| + });
|
| +
|
| + suite('Bar Behavior', function() {
|
| + test('Works well with others', function() {});
|
| + });
|
| + });
|
| +
|
| + // Kick off the tests.
|
| + mocha.run();
|
| +});
|
|
|