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

Unified Diff: chrome/test/data/webui/chrome_send_browsertest.js

Issue 8503003: Seed test for SyncUI: sign in successfully with mocks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use makeAndRegisterMockHandler in new ChromeSendWebUITest. Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/webui/async_gen.js ('k') | chrome/test/data/webui/print_preview.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/chrome_send_browsertest.js
diff --git a/chrome/test/data/webui/chrome_send_browsertest.js b/chrome/test/data/webui/chrome_send_browsertest.js
index a20eb5ff6d5e517ed9a08d3e028058a91dc1547c..c1e89339bf51987651b3e4a7b19b91c90eb36654 100644
--- a/chrome/test/data/webui/chrome_send_browsertest.js
+++ b/chrome/test/data/webui/chrome_send_browsertest.js
@@ -32,13 +32,7 @@ ChromeSendWebUITest.prototype = {
/** @inheritDoc */
setUp: function() {
- // Set up a mock handler class to catch the 'checkSend' message.
- function MockHandler() {}
- MockHandler.prototype = {
- checkSend: function() {},
- };
- this.mockHandler = mock(MockHandler);
- registerMockMessageCallbacks(this.mockHandler, MockHandler);
+ this.makeAndRegisterMockHandler(['checkSend']);
}
};
« no previous file with comments | « chrome/test/data/webui/async_gen.js ('k') | chrome/test/data/webui/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698