Closed
Bug 915661
Opened 11 years ago
Closed 11 years ago
[Gallery] Add Marionette tests
Categories
(Firefox OS Graveyard :: Gaia::Gallery, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: heroldtom, Assigned: heroldtom)
References
Details
Attachments
(3 files, 1 obsolete file)
No description provided.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → therold
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 803702 [details]
Link to Github pull request
This is work in progress and should be used for review/advice at this moment only.
Assignee | ||
Updated•11 years ago
|
Attachment #803702 -
Attachment mime type: text/plain → text/html
Assignee | ||
Comment 3•11 years ago
|
||
So far I have tests covering the following interactions:
- click on an image goes to fullscreen and click on the back button goes back to the overview
- in fullscreen mode one can swipe to the next image
- clicking on an image in the overview highlights it
- an image can be deleted
- a test for the test suite setup
- with regards to the image editor:
- once can switch between the different editing modes/tabs
- a test for adjusting exporsue
- a test to apply an effect
- a test to add an border
- a test crop an image
@djf: Do you want me to cover anything else?
Flags: needinfo?(dflanagan)
Assignee | ||
Updated•11 years ago
|
Attachment #803702 -
Flags: review?(jlal)
Attachment #803702 -
Flags: review?(dmarcos)
Comment 4•11 years ago
|
||
(In reply to Tom Herold from comment #3)
> So far I have tests covering the following interactions:
>
> - click on an image goes to fullscreen and click on the back button goes
> back to the overview
> - in fullscreen mode one can swipe to the next image
> - clicking on an image in the overview highlights it
> - an image can be deleted
> - a test for the test suite setup
> - with regards to the image editor:
> - once can switch between the different editing modes/tabs
> - a test for adjusting exporsue
> - a test to apply an effect
> - a test to add an border
> - a test crop an image
>
> @djf: Do you want me to cover anything else?
I haven't thought about what can be tested here now that we have a way to do integration tests...
IIRC, the pick activity code uses the cropping code in a way that fixes the aspect ratio. You might check that that part of the code behaves correctly and that cropping always returns an image of the right relative dimensions. But that isn't something I feel strongly about.
Thanks for working on this!
Flags: needinfo?(dflanagan)
Comment 5•11 years ago
|
||
Comment on attachment 803702 [details]
Link to Github pull request
Redirecting review to :squib my bandwidth is limited right now and I am not being very responsive... I am going to do a quick pass to give my comments but I think :squib as a media team member is a better review fit.
Attachment #803702 -
Flags: review?(jlal) → review?(squibblyflabbetydoo)
Comment 6•11 years ago
|
||
Can you please attach the right pull request to the bug?
Flags: needinfo?(therold)
Assignee | ||
Comment 7•11 years ago
|
||
Comment on attachment 803702 [details]
Link to Github pull request
>https://github.com/mozilla-b2g/gaia/pull/12169
><html>
> <head>
> <meta http-equiv="Refresh" content="2; url=https://github.com/mozilla-b2g/gaia/pull/12169">
> </head>
> <body>
> Redirect to pull request 12169
> </body>
></html>
Assignee | ||
Comment 8•11 years ago
|
||
Comment on attachment 803702 [details]
Link to Github pull request
<html>
<head>
<meta http-equiv="Refresh" content="2; url=https://github.com/mozilla-b2g/gaia/pull/12169">
</head>
<body>
Redirect to pull request 12169
</body>
</html>
Assignee | ||
Comment 9•11 years ago
|
||
Flags: needinfo?(therold)
Assignee | ||
Updated•11 years ago
|
Attachment #809405 -
Attachment mime type: text/plain → text/html
Comment 10•11 years ago
|
||
Comment on attachment 803702 [details]
Link to Github pull request
This looks good; r=me. I have a few minor changes I requested over on Github, though.
Attachment #803702 -
Flags: review?(squibblyflabbetydoo) → review+
Assignee | ||
Comment 11•11 years ago
|
||
Comment on attachment 803702 [details]
Link to Github pull request
It finally passes travis. https://travis-ci.org/mozilla-b2g/gaia/builds/13287881
Attachment #803702 -
Flags: review?(dmarcos) → review?(pdahiya)
Comment 12•11 years ago
|
||
Hi Tom,
I tried running gallery marionette test after rebasing with latest master and downloading latest b2g. bin/gaia-marionette apps/gallery/test/marionette/delete_image_test.js,
bin/gaia-marionette apps/gallery/test/marionette/fullscreen_image_test.js works perfect and passes everytime.
bin/gaia-marionette apps/gallery/test/marionette/edit_image_test.js passes first time and rerunning the test crashes b2g
doing make clean and running bin/gaia-marionette apps/gallery/test/marionette, fails it on edit_image_test with attached errors.
please try with latest b2g and see if you get the same issue.
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Attachment #825463 -
Attachment is obsolete: true
Comment 15•11 years ago
|
||
Comment on attachment 803702 [details]
Link to Github pull request
Overall tests look good, however bin/gaia-marionette apps/gallery/test/marionette is either failing on edit_image_test with the error log attached to the bug or b2g crashes.
I have downloaded latest b2g and re-run test after make clean. The tests are passing on travis. https://travis-ci.org/mozilla-b2g/gaia/builds/13374427
Tom, I am de-assigning myself from the review, and will suggest to get the PR looked at and reviewed by jugglinmike or lightsofapollo. Thanks
Attachment #803702 -
Flags: review?(pdahiya)
Assignee | ||
Updated•11 years ago
|
Attachment #809405 -
Flags: review?(jlal)
Assignee | ||
Comment 16•11 years ago
|
||
Assignee | ||
Comment 17•11 years ago
|
||
(In reply to Tom Herold from comment #16)
> Merged:
> https://github.com/mozilla-b2g/gaia/commit/
> a6a0438df14ecf92a587793ed2dbf073e5131d15
Ups, wrong bug. Disregard this.
Comment 18•11 years ago
|
||
Comment on attachment 809405 [details]
Correct link to Pull Request
https://github.com/mozilla-b2g/gaia/commit/07deb840f3ca027606cff919c6628bc2a80fd812
:D
Attachment #809405 -
Flags: review?(jlal) → review+
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•