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

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

Issue 7146024: Use ExecuteJavascriptInWebFrameNotifyResult to return results even in error condition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't check against |this| in the destructor, which doesn't compile on Win. Created 9 years, 6 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
« no previous file with comments | « chrome/browser/ui/webui/web_ui_test_handler.cc ('k') | chrome/test/data/webui/test_api.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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() {
12 assertFalse(true);
13 assertFalse(false);
14 }
15
11 function testInitialFocus() { 16 function testInitialFocus() {
12 assertTrue(document.activeElement.id == 'term', ''); 17 assertTrue(document.activeElement.id == 'term', '');
13 } 18 }
14 19
15 function testConsoleError() { 20 function testConsoleError() {
16 console.error('checking console.error call causes failure.'); 21 console.error('checking console.error call causes failure.');
17 } 22 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/web_ui_test_handler.cc ('k') | chrome/test/data/webui/test_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698