Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(68)

Issue 12272043: Remove use of showView to control view display.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by rharding
Modified:
10 years, 9 months ago
Reviewers:
mp+178140, jeff.pihach, j.c.sackett
Visibility:
Public.

Description

Remove use of showView to control view display. - minimized, sidebar, and fullscreen were using showView, remove that. - Make sure they all destroy themselves cleanly - Make sure that their destructor method is called when going from one view to another. - Update tests to work with these changes. Note: The test file was indented as it was wrapped in a closure to enable all suites to share the addBrowserCotnainer function. Tests were updated for additional cleanup and the "browser subapp display tree" test beforeEach/after to adjust how we track if the main views were indeed called during dispatching. https://code.launchpad.net/~rharding/juju-gui/view-cleanup/+merge/178140 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Remove use of showView to control view display. #

Total comments: 5

Patch Set 3 : Remove use of showView to control view display. #

Patch Set 4 : Remove use of showView to control view display. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1253 lines, -1198 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/subapps/browser/browser.js View 1 2 11 chunks +53 lines, -23 lines 0 comments Download
M app/subapps/browser/views/charmresults.js View 2 chunks +3 lines, -2 lines 0 comments Download
M app/subapps/browser/views/minimized.js View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M test/test_browser_app.js View 1 2 1 chunk +1185 lines, -1173 lines 0 comments Download

Messages

Total messages: 7
rharding
Please take a look.
10 years, 9 months ago (2013-08-01 18:01:09 UTC) #1
jeff.pihach
LGTM - with the changes below. will QA. https://codereview.appspot.com/12272043/diff/3001/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/12272043/diff/3001/app/subapps/browser/browser.js#newcode423 app/subapps/browser/browser.js:423: this._sidebar.destroy(); ...
10 years, 9 months ago (2013-08-01 18:16:25 UTC) #2
j.c.sackett
LGTM, one note on view management. https://codereview.appspot.com/12272043/diff/3001/app/subapps/browser/browser.js File app/subapps/browser/browser.js (right): https://codereview.appspot.com/12272043/diff/3001/app/subapps/browser/browser.js#newcode421 app/subapps/browser/browser.js:421: // If we've ...
10 years, 9 months ago (2013-08-01 18:21:09 UTC) #3
jeff.pihach
QA Failed visit root path w/o flag, click the icon to close the sidebar, open ...
10 years, 9 months ago (2013-08-01 18:23:10 UTC) #4
rharding
Please take a look.
10 years, 9 months ago (2013-08-02 15:37:55 UTC) #5
rharding
Thanks for the reviews. A couple of notes below and an updated branch to add ...
10 years, 9 months ago (2013-08-02 15:43:29 UTC) #6
rharding
10 years, 9 months ago (2013-08-02 15:48:31 UTC) #7
*** Submitted:

Remove use of showView to control view display.

- minimized, sidebar, and fullscreen were using showView, remove that.
- Make sure they all destroy themselves cleanly
- Make sure that their destructor method is called when going from one view to
another.
- Update tests to work with these changes.

Note:
The test file was indented as it was wrapped in a closure to enable all suites
to share the addBrowserCotnainer function.

Tests were updated for additional cleanup and the "browser subapp display
tree" test beforeEach/after to adjust how we track if the main views were
indeed called during dispatching.

R=jeff.pihach, j.c.sackett
CC=
https://codereview.appspot.com/12272043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b