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

Issue 7237053: Add simple test for dragend workaround.

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by bac
Modified:
11 years, 2 months ago
Reviewers:
mp+145400
Visibility:
Public.

Description

Add simple test for dragend workaround. The work-around added to the build relation 'dragend' event handler to prevent the serviceClick handler from processing and doing the wrong thing is now tested. An integration test using simulated drags and a click on the service didn't prove feasible so this unit test is used. https://code.launchpad.net/~bac/juju-gui/dragend-workaround-test/+merge/145400 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add simple test for dragend workaround. #

Total comments: 1

Patch Set 3 : Add simple test for dragend workaround. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -5 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/topology/service.js View 1 chunk +3 lines, -3 lines 0 comments Download
M test/test_service_module.js View 1 2 2 chunks +21 lines, -2 lines 0 comments Download

Messages

Total messages: 6
bac
Please take a look.
11 years, 2 months ago (2013-01-29 15:28:14 UTC) #1
benji
Looks good. I added a couple of comments. https://codereview.appspot.com/7237053/diff/1/test/test_service_module.js File test/test_service_module.js (right): https://codereview.appspot.com/7237053/diff/1/test/test_service_module.js#newcode81 test/test_service_module.js:81: it('should ...
11 years, 2 months ago (2013-01-29 17:45:50 UTC) #2
bac
Please take a look.
11 years, 2 months ago (2013-01-29 17:50:35 UTC) #3
gary.poster
Land as is, or with trivial changes. Thank you! Gary https://codereview.appspot.com/7237053/diff/6/test/test_service_module.js File test/test_service_module.js (right): https://codereview.appspot.com/7237053/diff/6/test/test_service_module.js#newcode239 ...
11 years, 2 months ago (2013-01-29 18:55:54 UTC) #4
bac
Thanks for the improvements.
11 years, 2 months ago (2013-01-29 19:00:24 UTC) #5
bac
11 years, 2 months ago (2013-01-29 19:13:27 UTC) #6
*** Submitted:

Add simple test for dragend workaround.

The work-around added to the build relation 'dragend' event handler to prevent
the serviceClick handler from processing and doing the wrong thing is now
tested.  An integration test using simulated drags and a click on the service
didn't prove feasible so this unit test is used.

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

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