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

Issue 8503003: Seed test for SyncUI: sign in successfully with mocks. (Closed)

Created:
9 years, 1 month ago by Sheridan Rawlins
Modified:
9 years, 1 month ago
Reviewers:
James Hawkins, binji
CC:
chromium-reviews, Paweł Hajdan Jr., David Tseng, Dan Beam, wyck
Visibility:
Public.

Description

Seed test for SyncUI: sign in successfully with mocks. R=binji@chromium.org BUG=102750 TEST=browser_tests --gtest_filter=SyncSetupWebUITest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110006

Patch Set 1 #

Total comments: 11

Patch Set 2 : Addressed James' review comments. #

Patch Set 3 : Made some utility methods to make mockHandler and mockGlobals generation simpler. #

Total comments: 22

Patch Set 4 : Added comments and moved gaia login to test. #

Total comments: 14

Patch Set 5 : Address James' comments. #

Patch Set 6 : A few more places to remove var mock* #

Patch Set 7 : Don't use local var for this.mockHandler or this.mockGlobals. #

Patch Set 8 : Rebase. #

Patch Set 9 : Use makeAndRegisterMockHandler in new ChromeSendWebUITest. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -143 lines) Patch
M chrome/browser/resources/options/personal_options.js View 1 2 3 4 5 6 7 5 chunks +15 lines, -5 lines 0 comments Download
M chrome/browser/resources/sync_setup_overlay.js View 1 2 3 4 2 chunks +41 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/options_browsertest.js View 1 2 3 4 5 6 1 chunk +19 lines, -31 lines 0 comments Download
A chrome/browser/ui/webui/sync_setup_browsertest.js View 1 2 3 4 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/async_gen.js View 1 2 3 4 5 6 5 chunks +11 lines, -45 lines 0 comments Download
M chrome/test/data/webui/chrome_send_browsertest.js View 1 2 3 4 5 6 7 8 1 chunk +1 line, -7 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 3 chunks +25 lines, -54 lines 0 comments Download
M chrome/test/data/webui/test_api.js View 1 2 3 4 5 6 7 3 chunks +46 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Sheridan Rawlins
http://codereview.chromium.org/8503003/diff/1/chrome/browser/ui/webui/sync_setup_browsertest.js File chrome/browser/ui/webui/sync_setup_browsertest.js (right): http://codereview.chromium.org/8503003/diff/1/chrome/browser/ui/webui/sync_setup_browsertest.js#newcode5 chrome/browser/ui/webui/sync_setup_browsertest.js:5: // TODO(scr) remove this debugging tool. I plan on ...
9 years, 1 month ago (2011-11-08 06:58:14 UTC) #1
James Hawkins
http://codereview.chromium.org/8503003/diff/1/chrome/browser/ui/webui/sync_setup_browsertest.js File chrome/browser/ui/webui/sync_setup_browsertest.js (right): http://codereview.chromium.org/8503003/diff/1/chrome/browser/ui/webui/sync_setup_browsertest.js#newcode27 chrome/browser/ui/webui/sync_setup_browsertest.js:27: Inconsistency: Blank line at beginning of method but not ...
9 years, 1 month ago (2011-11-08 17:08:37 UTC) #2
Sheridan Rawlins
http://codereview.chromium.org/8503003/diff/1/chrome/browser/ui/webui/sync_setup_browsertest.js File chrome/browser/ui/webui/sync_setup_browsertest.js (right): http://codereview.chromium.org/8503003/diff/1/chrome/browser/ui/webui/sync_setup_browsertest.js#newcode27 chrome/browser/ui/webui/sync_setup_browsertest.js:27: On 2011/11/08 17:08:37, James Hawkins wrote: > Inconsistency: Blank ...
9 years, 1 month ago (2011-11-08 21:32:03 UTC) #3
Dan Beam
Sorry for the drive by, it's more a feature request for the framework (but depends ...
9 years, 1 month ago (2011-11-08 21:54:47 UTC) #4
Sheridan Rawlins
Thanks, Dan. Incorporated that change too, and altered places that can use it. http://codereview.chromium.org/8503003/diff/1/chrome/browser/ui/webui/sync_setup_browsertest.js File ...
9 years, 1 month ago (2011-11-09 02:44:21 UTC) #5
James Hawkins
http://codereview.chromium.org/8503003/diff/2004/chrome/browser/resources/sync_setup_overlay.js File chrome/browser/resources/sync_setup_overlay.js (right): http://codereview.chromium.org/8503003/diff/2004/chrome/browser/resources/sync_setup_overlay.js#newcode564 chrome/browser/resources/sync_setup_overlay.js:564: getLoginEmail_: function() { Document these methods. http://codereview.chromium.org/8503003/diff/2004/chrome/browser/resources/sync_setup_overlay.js#newcode565 chrome/browser/resources/sync_setup_overlay.js:565: return ...
9 years, 1 month ago (2011-11-09 17:15:56 UTC) #6
Sheridan Rawlins
http://codereview.chromium.org/8503003/diff/2004/chrome/browser/resources/sync_setup_overlay.js File chrome/browser/resources/sync_setup_overlay.js (right): http://codereview.chromium.org/8503003/diff/2004/chrome/browser/resources/sync_setup_overlay.js#newcode564 chrome/browser/resources/sync_setup_overlay.js:564: getLoginEmail_: function() { On 2011/11/09 17:15:56, James Hawkins wrote: ...
9 years, 1 month ago (2011-11-09 23:50:59 UTC) #7
James Hawkins
http://codereview.chromium.org/8503003/diff/2004/chrome/test/data/webui/async_gen.js File chrome/test/data/webui/async_gen.js (right): http://codereview.chromium.org/8503003/diff/2004/chrome/test/data/webui/async_gen.js#newcode273 chrome/test/data/webui/async_gen.js:273: var mockGlobals = this.mockGlobals; On 2011/11/09 17:15:56, James Hawkins ...
9 years, 1 month ago (2011-11-10 00:24:43 UTC) #8
Sheridan Rawlins
No intention to ignore comments/questions. http://codereview.chromium.org/8503003/diff/2004/chrome/test/data/webui/async_gen.js File chrome/test/data/webui/async_gen.js (right): http://codereview.chromium.org/8503003/diff/2004/chrome/test/data/webui/async_gen.js#newcode273 chrome/test/data/webui/async_gen.js:273: var mockGlobals = this.mockGlobals; ...
9 years, 1 month ago (2011-11-10 02:02:12 UTC) #9
Sheridan Rawlins
After gchat with James, removed ALL instances of var mockGlobals and mockHandler (used this.mockGlobals & ...
9 years, 1 month ago (2011-11-12 00:48:26 UTC) #10
James Hawkins
Much cleaner, LGTM.
9 years, 1 month ago (2011-11-14 20:23:12 UTC) #11
binji
On 2011/11/14 20:23:12, James Hawkins wrote: > Much cleaner, LGTM. LGTM as well. Though I ...
9 years, 1 month ago (2011-11-14 22:26:08 UTC) #12
James Hawkins
On 2011/11/14 22:26:08, binji wrote: > On 2011/11/14 20:23:12, James Hawkins wrote: > > Much ...
9 years, 1 month ago (2011-11-14 23:24:52 UTC) #13
Sheridan Rawlins
Because the chrome.send is mocked in JS, the click _is_ synchronous. On 2011/11/14 22:26:08, binji ...
9 years, 1 month ago (2011-11-14 23:30:54 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scr@chromium.org/8503003/19001
9 years, 1 month ago (2011-11-15 00:02:25 UTC) #15
commit-bot: I haz the power
9 years, 1 month ago (2011-11-15 01:32:37 UTC) #16
Change committed as 110006

Powered by Google App Engine
This is Rietveld 408576698