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

Issue 12060044: Normalize window.flags in tests

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by matthew.scott
Modified:
10 years, 8 months ago
Reviewers:
rharding, mp+177470, gary.poster
Visibility:
Public.

Description

Normalize window.flags in tests window.flags now works just as it does in the app: it is set in test/index.html to an empty object (since the tests don't have the :flags: ns), and each test or each feature (usually divided up into suites, as they should be) deals solely with that feature flag only. If flags are set in a 'before', only those flags are unset in 'after', etc. This is as much a policy proposal as a branch, and I've created a weekly card to discuss. https://code.launchpad.net/~makyo/juju-gui/flags-cleanup/+merge/177470 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 17

Patch Set 2 : Normalize window.flags in tests #

Patch Set 3 : Normalize window.flags in tests #

Patch Set 4 : Normalize window.flags in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -58 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M test/index.html View 1 chunk +2 lines, -0 lines 0 comments Download
M test/test_app.js View 1 1 chunk +0 lines, -1 line 0 comments Download
M test/test_application_notifications.js View 1 1 chunk +0 lines, -1 line 0 comments Download
M test/test_browser_search_widget.js View 1 3 chunks +2 lines, -2 lines 0 comments Download
M test/test_environment_view.js View 1 1 chunk +0 lines, -1 line 0 comments Download
M test/test_fakebackend.js View 1 chunk +0 lines, -9 lines 0 comments Download
M test/test_inspector_charm.js View 1 2 chunks +5 lines, -4 lines 0 comments Download
M test/test_inspector_constraints.js View 1 3 chunks +2 lines, -5 lines 0 comments Download
M test/test_inspector_overview.js View 1 3 chunks +2 lines, -5 lines 0 comments Download
M test/test_inspector_settings.js View 1 3 chunks +2 lines, -5 lines 0 comments Download
M test/test_routing.js View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M test/test_sandbox_go.js View 2 chunks +0 lines, -6 lines 0 comments Download
M test/test_sandbox_python.js View 2 chunks +0 lines, -6 lines 0 comments Download
M test/test_service_module.js View 2 chunks +0 lines, -6 lines 0 comments Download
M test/test_service_view.js View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 6
matthew.scott
Please take a look.
10 years, 8 months ago (2013-07-29 20:44:46 UTC) #1
gary.poster
LGTM if you make the many changes I requested. I tried to clarify the ones ...
10 years, 8 months ago (2013-07-29 21:03:01 UTC) #2
matthew.scott
Please take a look. https://codereview.appspot.com/12060044/diff/1/test/test_browser_search_widget.js File test/test_browser_search_widget.js (right): https://codereview.appspot.com/12060044/diff/1/test/test_browser_search_widget.js#newcode40 test/test_browser_search_widget.js:40: window.flags.ac = true; On 2013/07/29 ...
10 years, 8 months ago (2013-07-29 21:26:11 UTC) #3
matthew.scott
flag handling now done in *Each methods. https://codereview.appspot.com/12060044/diff/1/test/test_browser_search_widget.js File test/test_browser_search_widget.js (right): https://codereview.appspot.com/12060044/diff/1/test/test_browser_search_widget.js#newcode40 test/test_browser_search_widget.js:40: window.flags.ac = ...
10 years, 8 months ago (2013-07-29 21:29:33 UTC) #4
rharding
LGTM thanks for the cleanup on most of that though I don't follow why the ...
10 years, 8 months ago (2013-07-30 15:40:32 UTC) #5
matthew.scott
10 years, 8 months ago (2013-07-30 16:20:43 UTC) #6
*** Submitted:

Normalize window.flags in tests

window.flags now works just as it does in the app: it is set in test/index.html
to an empty object (since the tests don't have the :flags: ns), and each test or
each feature (usually divided up into suites, as they should be) deals solely
with that feature flag only.  If flags are set in a 'before', only those flags
are unset in 'after', etc.  This is as much a policy proposal as a branch, and
I've created a weekly card to discuss.

R=gary.poster, rharding
CC=
https://codereview.appspot.com/12060044
Sign in to reply to this message.

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