-
Notifications
You must be signed in to change notification settings - Fork 607
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e8c418
commit dda3fc0
Showing
22 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+646 KB
...tput/bitmaps_reference/backstop_default_BackstopJS_Banner_0_header_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.6 KB
.../bitmaps_reference/backstop_default_BackstopJS_Services_0_services_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+384 KB
...est/20170903-155340/backstop_default_BackstopJS_Homepage_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.23 MB
...st/20170903-155340/backstop_default_BackstopJS_Homepage_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+384 KB
...est/20170918-190513/backstop_default_BackstopJS_Homepage_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.23 MB
...st/20170918-190513/backstop_default_BackstopJS_Homepage_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+460 KB
...-190513/failed_diff_backstop_default_BackstopJS_Homepage_0_document_0_phone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.55 MB
...190513/failed_diff_backstop_default_BackstopJS_Homepage_0_document_1_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+807 KB
...s_test/20170924-181714/backstop_default_BackstopJS_Banner_0_header_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75.6 KB
...st/20170924-181714/backstop_default_BackstopJS_Services_0_services_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68 Bytes
...924-181714/failed_diff_backstop_default_BackstopJS_Banner_0_header_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68 Bytes
...181714/failed_diff_backstop_default_BackstopJS_Services_0_services_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+807 KB
...s_test/20170924-181742/backstop_default_BackstopJS_Banner_0_header_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.9 KB
...st/20170924-181742/backstop_default_BackstopJS_Services_0_services_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.94 KB
...924-181742/failed_diff_backstop_default_BackstopJS_Banner_0_header_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.39 KB
...181742/failed_diff_backstop_default_BackstopJS_Services_0_services_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+807 KB
...s_test/20170924-181906/backstop_default_BackstopJS_Banner_0_header_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75.1 KB
...st/20170924-181906/backstop_default_BackstopJS_Services_0_services_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 KB
...924-181906/failed_diff_backstop_default_BackstopJS_Banner_0_header_0_tablet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
import { colors, fonts } from '../../styles'; | ||
|
||
const Image = styled.img` | ||
width: auto; | ||
max-height: 150px; | ||
`; | ||
|
||
const Wrapper = styled.div` | ||
flex: 1 1 auto; | ||
padding: 0 25px; | ||
text-align: center; | ||
`; | ||
|
||
const Label = styled.span` | ||
text-align: center; | ||
font-family: ${fonts.latoRegular}; | ||
color: ${colors.secondaryText}; | ||
display: block; | ||
margin: 0 auto; | ||
text-transform: uppercase; | ||
padding: 5px 0; | ||
padding-bottom: 15px; | ||
font-size: 12px; | ||
`; | ||
|
||
export default class ImagePreview extends React.Component { | ||
|
||
render () { | ||
let { hidden } = this.props; | ||
|
||
return ( | ||
<Wrapper hidden={hidden} > | ||
<Label>{this.props.label}</Label> | ||
<Image {...this.props} /> | ||
</Wrapper> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import { connect } from 'react-redux'; | ||
|
||
import { colors, shadows } from '../../styles'; | ||
|
||
// atoms | ||
import ImagePreview from '../atoms/ImagePreview'; | ||
|
||
const ImagesWrapper = styled.div` | ||
position: relative; | ||
display: flex; | ||
padding-top: 20px; | ||
`; | ||
|
||
class TestImages extends React.Component { | ||
|
||
constructor(props) { | ||
super(props); | ||
|
||
this.state = { | ||
images: [] | ||
}; | ||
} | ||
|
||
render () { | ||
let { reference, test } = this.props.info; | ||
let { status, settings } = this.props; | ||
|
||
this.state.images = [ | ||
{ | ||
id: "refImage", | ||
label: "Reference", | ||
src: reference, | ||
visible: settings.refImage | ||
}, | ||
{ | ||
id: "testImage", | ||
label: "Test", | ||
src: test, | ||
visible: settings.testImage | ||
} | ||
]; | ||
|
||
if(status !== 'pass') { | ||
this.state.images.push({ | ||
id: "diffImage", | ||
label: "Diff", | ||
src: this.props.info.diffImage, | ||
visible: settings.diffImage | ||
}) | ||
} | ||
|
||
return ( | ||
<ImagesWrapper> | ||
{this.state.images.map((img, i) => | ||
<ImagePreview src={img.src} id={img.id} label={img.label} key={i} hidden={!img.visible} /> | ||
)} | ||
</ImagesWrapper> | ||
); | ||
} | ||
} | ||
|
||
const mapStateToProps = state => { | ||
return { | ||
settings: state.layoutSettings | ||
} | ||
}; | ||
|
||
const TestImagesContainer = connect(mapStateToProps)(TestImages); | ||
|
||
export default TestImagesContainer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters