Defining the sections that will be analyzed by the test
@ -53,8 +53,7 @@
|
|||||||
"node-sass": "^3.7.0",
|
"node-sass": "^3.7.0",
|
||||||
"npm-run-all": "^2.1.1",
|
"npm-run-all": "^2.1.1",
|
||||||
"onchange": "^2.4.0",
|
"onchange": "^2.4.0",
|
||||||
"postcss-cli": "^2.5.2",
|
"postcss-cli": "^2.5.2"
|
||||||
"slimerjs": "^0.906.2"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^6.0.0"
|
"node": "^6.0.0"
|
||||||
|
@ -1,32 +1,118 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
viewports: [
|
viewports: [
|
||||||
{ name: 'phone_v', width: 320, height: 480 },
|
{ name: 'phone', width: 320, height: 480 },
|
||||||
{ name: 'phone_h', width: 480, height: 320 },
|
{ name: 'tablet', width: 768, height: 1024 },
|
||||||
{ name: 'tablet_v', width: 768, height: 1024 },
|
|
||||||
{ name: 'tablet_h', width: 1024, height: 768 },
|
|
||||||
{ name: 'laptop', width: 1280, height: 800 },
|
{ name: 'laptop', width: 1280, height: 800 },
|
||||||
{ name: 'desktop', width: 1920, height: 1080 }
|
{ name: 'desktop', width: 1920, height: 1080 }
|
||||||
],
|
],
|
||||||
scenarios: [{
|
scenarios: [{
|
||||||
label: 'Milligram | A minimalist CSS framework.',
|
label: 'Typography',
|
||||||
url: 'http://localhost:3000',
|
url: 'http://localhost:3000',
|
||||||
hideSelectors: [],
|
hideSelectors: [],
|
||||||
removeSelectors: ['#__bs_notify__'],
|
removeSelectors: ['#__bs_notify__'],
|
||||||
selectors: ['body'],
|
selectors: ['#typography'],
|
||||||
readyEvent: null,
|
readyEvent: null,
|
||||||
delay: 500,
|
delay: 500,
|
||||||
misMatchThreshold: 0.1,
|
misMatchThreshold: 0.1,
|
||||||
onBeforeScript: 'onBefore.js',
|
onBeforeScript: 'onBefore.js',
|
||||||
onReadyScript: 'onReady.js'
|
onReadyScript: 'onReady.js'
|
||||||
}],
|
},{
|
||||||
|
label: 'Blockquotes',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#blockquotes'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}, {
|
||||||
|
label: 'Buttons',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#buttons'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}, {
|
||||||
|
label: 'Lists',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#lists'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}, {
|
||||||
|
label: 'Forms',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#forms'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}, {
|
||||||
|
label: 'Tables',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#tables'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}, {
|
||||||
|
label: 'Grids',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#grids'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}, {
|
||||||
|
label: 'Codes',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#codes'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}, {
|
||||||
|
label: 'Utilities',
|
||||||
|
url: 'http://localhost:3000',
|
||||||
|
hideSelectors: [],
|
||||||
|
removeSelectors: ['#__bs_notify__'],
|
||||||
|
selectors: ['#utilities'],
|
||||||
|
readyEvent: null,
|
||||||
|
delay: 500,
|
||||||
|
misMatchThreshold: 0.1,
|
||||||
|
onBeforeScript: 'onBefore.js',
|
||||||
|
onReadyScript: 'onReady.js'
|
||||||
|
}],
|
||||||
paths: {
|
paths: {
|
||||||
bitmaps_reference: '../../test/visual/reference',
|
bitmaps_reference: '../../test/visual/reference',
|
||||||
bitmaps_test: '.tmp',
|
bitmaps_test: '.tmp',
|
||||||
casper_scripts: '../../test/visual/fixtures',
|
casper_scripts: '../../test/visual/fixtures',
|
||||||
compare_data: '.tmp/compare.json'
|
compare_data: '.tmp/compare.json'
|
||||||
},
|
},
|
||||||
engine: 'slimerjs',
|
engine: 'phantomjs',
|
||||||
report: ['browser'],
|
report: ['browser', 'CLI'],
|
||||||
casperFlags: [],
|
casperFlags: [],
|
||||||
debug: false,
|
debug: false,
|
||||||
port: 3002
|
port: 3002
|
||||||
|
Before Width: | Height: | Size: 380 KiB |
Before Width: | Height: | Size: 400 KiB |
Before Width: | Height: | Size: 347 KiB |
Before Width: | Height: | Size: 353 KiB |
Before Width: | Height: | Size: 362 KiB |
Before Width: | Height: | Size: 389 KiB |
BIN
test/visual/reference/0_0_typography_0_phone.png
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
test/visual/reference/0_0_typography_1_tablet.png
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
test/visual/reference/0_0_typography_2_laptop.png
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
test/visual/reference/0_0_typography_3_desktop.png
Normal file
After Width: | Height: | Size: 95 KiB |
BIN
test/visual/reference/1_0_blockquotes_0_phone.png
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
test/visual/reference/1_0_blockquotes_1_tablet.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test/visual/reference/1_0_blockquotes_2_laptop.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test/visual/reference/1_0_blockquotes_3_desktop.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
test/visual/reference/2_0_buttons_0_phone.png
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
test/visual/reference/2_0_buttons_1_tablet.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
test/visual/reference/2_0_buttons_2_laptop.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
test/visual/reference/2_0_buttons_3_desktop.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
test/visual/reference/3_0_lists_0_phone.png
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
test/visual/reference/3_0_lists_1_tablet.png
Normal file
After Width: | Height: | Size: 85 KiB |
BIN
test/visual/reference/3_0_lists_2_laptop.png
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
test/visual/reference/3_0_lists_3_desktop.png
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
test/visual/reference/4_0_forms_0_phone.png
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
test/visual/reference/4_0_forms_1_tablet.png
Normal file
After Width: | Height: | Size: 68 KiB |
BIN
test/visual/reference/4_0_forms_2_laptop.png
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
test/visual/reference/4_0_forms_3_desktop.png
Normal file
After Width: | Height: | Size: 69 KiB |
BIN
test/visual/reference/5_0_tables_0_phone.png
Normal file
After Width: | Height: | Size: 47 KiB |
BIN
test/visual/reference/5_0_tables_1_tablet.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
test/visual/reference/5_0_tables_2_laptop.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
test/visual/reference/5_0_tables_3_desktop.png
Normal file
After Width: | Height: | Size: 52 KiB |
BIN
test/visual/reference/6_0_grids_0_phone.png
Normal file
After Width: | Height: | Size: 127 KiB |
BIN
test/visual/reference/6_0_grids_1_tablet.png
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
test/visual/reference/6_0_grids_2_laptop.png
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
test/visual/reference/6_0_grids_3_desktop.png
Normal file
After Width: | Height: | Size: 146 KiB |
BIN
test/visual/reference/7_0_codes_0_phone.png
Normal file
After Width: | Height: | Size: 7.2 KiB |
BIN
test/visual/reference/7_0_codes_1_tablet.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
test/visual/reference/7_0_codes_2_laptop.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
test/visual/reference/7_0_codes_3_desktop.png
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
test/visual/reference/8_0_utilities_0_phone.png
Normal file
After Width: | Height: | Size: 6.5 KiB |
BIN
test/visual/reference/8_0_utilities_1_tablet.png
Normal file
After Width: | Height: | Size: 6.7 KiB |
BIN
test/visual/reference/8_0_utilities_2_laptop.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
test/visual/reference/8_0_utilities_3_desktop.png
Normal file
After Width: | Height: | Size: 6.8 KiB |