Merge lp:~ic90/openlp/animated-alerts into lp:~openlp-dev/openlp/webengine-migrate
Status: | Superseded |
---|---|
Proposed branch: | lp:~ic90/openlp/animated-alerts |
Merge into: | lp:~openlp-dev/openlp/webengine-migrate |
Diff against target: |
426 lines (+339/-7) 4 files modified
openlp/core/display/html/display.html (+75/-0) openlp/core/display/html/display.js (+150/-5) openlp/core/display/window.py (+1/-1) tests/js/test_display.js (+113/-1) |
To merge this branch: | bzr merge lp:~ic90/openlp/animated-alerts |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Nico Opiyo | Needs Resubmitting | ||
Raoul Snyman | Needs Fixing | ||
Review via email: mp+362833@code.launchpad.net |
This proposal has been superseded by a proposal from 2019-02-12.
Commit message
Added transitions and animations to the alerts.
Description of the change
I have fixed the tests to test the various components added to the UI and also made some slight adjustments to the entrance transition and fixed a glitch when an alert is first displayed on opening the program.
JS Test Output is as below:
PhantomJS 2.1.1 (Windows 8.0.0) Display.
TypeError: undefined is not an object (evaluating 'dom.wrapper.
PhantomJS 2.1.1 (Windows 8.0.0): Executed 78 of 78 (1 FAILED) (0 secs / 0.087 secs)
PhantomJS 2.1.1 (Windows 8.0.0): Executed 78 of 78 (1 FAILED) (0.108 secs / 0.087 secs)
TOTAL: 1 FAILED, 77 SUCCESS
Unmerged revisions
- 2884. By Nico Opiyo
-
Changed variable names to camelCase and added parameter for Jenkins JS tests
- 2883. By Nico Opiyo
-
Pulled in latest changes from trunk
- 2882. By Nico Opiyo
-
Fixed unit tests for alerts branch
- 2881. By Nico Opiyo
-
Fixed scrolling bug display
- 2880. By Nico Opiyo
-
Pulled in changes from trunk
- 2879. By Nico Opiyo
-
Fixed alert positioning with CSS flexbox and also fixed non-scrolling alert display
- 2878. By Nico Opiyo
-
Fixed queue bug when showing alerts from the queue
- 2877. By Nico Opiyo
-
Fixed all tests and changed entrance transition to class based toggling
- 2876. By Nico Opiyo
-
Cleaned up Javascript and refactored the functions and tests plus optimized animation of text
- 2875. By Nico Opiyo
-
Fixed buggy alerts and refactored CSS
See the inline comments.
Also, in your tests you seem to be testing a single style every time, you should be able to combine those into a single test. For example:
it("should set the correct styles when the location is the top of the page", function(){
Display. doEntranceTrans ition(" 0");
expect( alertBackground .style. top).toEqual( '0px');
expect( alertBackground .style. transition) .toEqual( "2s linear");
expect( alertBackground .style. height) .toEqual( "25%");
});