Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: chrome/test/data/webui/foo_bar_browsertest.js

Issue 1124873002: Mocha adapter for Polymer browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Split out non-mocha stuff Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698