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

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

Issue 7087014: Support automatic javascript test registry in gtest when creating WebUI tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added example of helper functions which aren't included as tests. Created 9 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 | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« chrome/browser/ui/webui/web_ui_browsertest.cc ('K') | « chrome/test/data/webui/sample_failing.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698