diff --git a/package.json b/package.json index 9ba3006..450bc46 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,7 @@ "node-sass": "^3.7.0", "npm-run-all": "^2.1.1", "onchange": "^2.4.0", - "postcss-cli": "^2.5.2", - "slimerjs": "^0.906.2" + "postcss-cli": "^2.5.2" }, "engines": { "node": "^6.0.0" diff --git a/test/visual/backstop.config.js b/test/visual/backstop.config.js index 15727ed..26d024c 100644 --- a/test/visual/backstop.config.js +++ b/test/visual/backstop.config.js @@ -1,32 +1,118 @@ module.exports = { viewports: [ - { name: 'phone_v', width: 320, height: 480 }, - { name: 'phone_h', width: 480, height: 320 }, - { name: 'tablet_v', width: 768, height: 1024 }, - { name: 'tablet_h', width: 1024, height: 768 }, + { name: 'phone', width: 320, height: 480 }, + { name: 'tablet', width: 768, height: 1024 }, { name: 'laptop', width: 1280, height: 800 }, { name: 'desktop', width: 1920, height: 1080 } ], scenarios: [{ - label: 'Milligram | A minimalist CSS framework.', - url: 'http://localhost:3000', - hideSelectors: [], - removeSelectors: ['#__bs_notify__'], - selectors: ['body'], - readyEvent: null, - delay: 500, - misMatchThreshold: 0.1, - onBeforeScript: 'onBefore.js', - onReadyScript: 'onReady.js' - }], + label: 'Typography', + url: 'http://localhost:3000', + hideSelectors: [], + removeSelectors: ['#__bs_notify__'], + selectors: ['#typography'], + readyEvent: null, + delay: 500, + misMatchThreshold: 0.1, + onBeforeScript: 'onBefore.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: { bitmaps_reference: '../../test/visual/reference', bitmaps_test: '.tmp', casper_scripts: '../../test/visual/fixtures', compare_data: '.tmp/compare.json' }, - engine: 'slimerjs', - report: ['browser'], + engine: 'phantomjs', + report: ['browser', 'CLI'], casperFlags: [], debug: false, port: 3002 diff --git a/test/visual/reference/0_0_body_0_phone_v.png b/test/visual/reference/0_0_body_0_phone_v.png deleted file mode 100644 index 669ccf9..0000000 Binary files a/test/visual/reference/0_0_body_0_phone_v.png and /dev/null differ diff --git a/test/visual/reference/0_0_body_1_phone_h.png b/test/visual/reference/0_0_body_1_phone_h.png deleted file mode 100644 index bbfec29..0000000 Binary files a/test/visual/reference/0_0_body_1_phone_h.png and /dev/null differ diff --git a/test/visual/reference/0_0_body_2_tablet_v.png b/test/visual/reference/0_0_body_2_tablet_v.png deleted file mode 100644 index 6f362ea..0000000 Binary files a/test/visual/reference/0_0_body_2_tablet_v.png and /dev/null differ diff --git a/test/visual/reference/0_0_body_3_tablet_h.png b/test/visual/reference/0_0_body_3_tablet_h.png deleted file mode 100644 index cb411ed..0000000 Binary files a/test/visual/reference/0_0_body_3_tablet_h.png and /dev/null differ diff --git a/test/visual/reference/0_0_body_4_laptop.png b/test/visual/reference/0_0_body_4_laptop.png deleted file mode 100644 index db8ee4d..0000000 Binary files a/test/visual/reference/0_0_body_4_laptop.png and /dev/null differ diff --git a/test/visual/reference/0_0_body_5_desktop.png b/test/visual/reference/0_0_body_5_desktop.png deleted file mode 100644 index 3159012..0000000 Binary files a/test/visual/reference/0_0_body_5_desktop.png and /dev/null differ diff --git a/test/visual/reference/0_0_typography_0_phone.png b/test/visual/reference/0_0_typography_0_phone.png new file mode 100644 index 0000000..f2119a2 Binary files /dev/null and b/test/visual/reference/0_0_typography_0_phone.png differ diff --git a/test/visual/reference/0_0_typography_1_tablet.png b/test/visual/reference/0_0_typography_1_tablet.png new file mode 100644 index 0000000..aa784a6 Binary files /dev/null and b/test/visual/reference/0_0_typography_1_tablet.png differ diff --git a/test/visual/reference/0_0_typography_2_laptop.png b/test/visual/reference/0_0_typography_2_laptop.png new file mode 100644 index 0000000..b54267c Binary files /dev/null and b/test/visual/reference/0_0_typography_2_laptop.png differ diff --git a/test/visual/reference/0_0_typography_3_desktop.png b/test/visual/reference/0_0_typography_3_desktop.png new file mode 100644 index 0000000..b54267c Binary files /dev/null and b/test/visual/reference/0_0_typography_3_desktop.png differ diff --git a/test/visual/reference/1_0_blockquotes_0_phone.png b/test/visual/reference/1_0_blockquotes_0_phone.png new file mode 100644 index 0000000..393a793 Binary files /dev/null and b/test/visual/reference/1_0_blockquotes_0_phone.png differ diff --git a/test/visual/reference/1_0_blockquotes_1_tablet.png b/test/visual/reference/1_0_blockquotes_1_tablet.png new file mode 100644 index 0000000..4d8bfb4 Binary files /dev/null and b/test/visual/reference/1_0_blockquotes_1_tablet.png differ diff --git a/test/visual/reference/1_0_blockquotes_2_laptop.png b/test/visual/reference/1_0_blockquotes_2_laptop.png new file mode 100644 index 0000000..165f18f Binary files /dev/null and b/test/visual/reference/1_0_blockquotes_2_laptop.png differ diff --git a/test/visual/reference/1_0_blockquotes_3_desktop.png b/test/visual/reference/1_0_blockquotes_3_desktop.png new file mode 100644 index 0000000..165f18f Binary files /dev/null and b/test/visual/reference/1_0_blockquotes_3_desktop.png differ diff --git a/test/visual/reference/2_0_buttons_0_phone.png b/test/visual/reference/2_0_buttons_0_phone.png new file mode 100644 index 0000000..8bce393 Binary files /dev/null and b/test/visual/reference/2_0_buttons_0_phone.png differ diff --git a/test/visual/reference/2_0_buttons_1_tablet.png b/test/visual/reference/2_0_buttons_1_tablet.png new file mode 100644 index 0000000..8d9b2e3 Binary files /dev/null and b/test/visual/reference/2_0_buttons_1_tablet.png differ diff --git a/test/visual/reference/2_0_buttons_2_laptop.png b/test/visual/reference/2_0_buttons_2_laptop.png new file mode 100644 index 0000000..67cedba Binary files /dev/null and b/test/visual/reference/2_0_buttons_2_laptop.png differ diff --git a/test/visual/reference/2_0_buttons_3_desktop.png b/test/visual/reference/2_0_buttons_3_desktop.png new file mode 100644 index 0000000..67cedba Binary files /dev/null and b/test/visual/reference/2_0_buttons_3_desktop.png differ diff --git a/test/visual/reference/3_0_lists_0_phone.png b/test/visual/reference/3_0_lists_0_phone.png new file mode 100644 index 0000000..f5b63a5 Binary files /dev/null and b/test/visual/reference/3_0_lists_0_phone.png differ diff --git a/test/visual/reference/3_0_lists_1_tablet.png b/test/visual/reference/3_0_lists_1_tablet.png new file mode 100644 index 0000000..49ad581 Binary files /dev/null and b/test/visual/reference/3_0_lists_1_tablet.png differ diff --git a/test/visual/reference/3_0_lists_2_laptop.png b/test/visual/reference/3_0_lists_2_laptop.png new file mode 100644 index 0000000..f986a2b Binary files /dev/null and b/test/visual/reference/3_0_lists_2_laptop.png differ diff --git a/test/visual/reference/3_0_lists_3_desktop.png b/test/visual/reference/3_0_lists_3_desktop.png new file mode 100644 index 0000000..f986a2b Binary files /dev/null and b/test/visual/reference/3_0_lists_3_desktop.png differ diff --git a/test/visual/reference/4_0_forms_0_phone.png b/test/visual/reference/4_0_forms_0_phone.png new file mode 100644 index 0000000..b3b943c Binary files /dev/null and b/test/visual/reference/4_0_forms_0_phone.png differ diff --git a/test/visual/reference/4_0_forms_1_tablet.png b/test/visual/reference/4_0_forms_1_tablet.png new file mode 100644 index 0000000..6655f47 Binary files /dev/null and b/test/visual/reference/4_0_forms_1_tablet.png differ diff --git a/test/visual/reference/4_0_forms_2_laptop.png b/test/visual/reference/4_0_forms_2_laptop.png new file mode 100644 index 0000000..9a0f4ed Binary files /dev/null and b/test/visual/reference/4_0_forms_2_laptop.png differ diff --git a/test/visual/reference/4_0_forms_3_desktop.png b/test/visual/reference/4_0_forms_3_desktop.png new file mode 100644 index 0000000..9a0f4ed Binary files /dev/null and b/test/visual/reference/4_0_forms_3_desktop.png differ diff --git a/test/visual/reference/5_0_tables_0_phone.png b/test/visual/reference/5_0_tables_0_phone.png new file mode 100644 index 0000000..5d585da Binary files /dev/null and b/test/visual/reference/5_0_tables_0_phone.png differ diff --git a/test/visual/reference/5_0_tables_1_tablet.png b/test/visual/reference/5_0_tables_1_tablet.png new file mode 100644 index 0000000..c1916a0 Binary files /dev/null and b/test/visual/reference/5_0_tables_1_tablet.png differ diff --git a/test/visual/reference/5_0_tables_2_laptop.png b/test/visual/reference/5_0_tables_2_laptop.png new file mode 100644 index 0000000..bf10688 Binary files /dev/null and b/test/visual/reference/5_0_tables_2_laptop.png differ diff --git a/test/visual/reference/5_0_tables_3_desktop.png b/test/visual/reference/5_0_tables_3_desktop.png new file mode 100644 index 0000000..bf10688 Binary files /dev/null and b/test/visual/reference/5_0_tables_3_desktop.png differ diff --git a/test/visual/reference/6_0_grids_0_phone.png b/test/visual/reference/6_0_grids_0_phone.png new file mode 100644 index 0000000..ae2804e Binary files /dev/null and b/test/visual/reference/6_0_grids_0_phone.png differ diff --git a/test/visual/reference/6_0_grids_1_tablet.png b/test/visual/reference/6_0_grids_1_tablet.png new file mode 100644 index 0000000..27c1ece Binary files /dev/null and b/test/visual/reference/6_0_grids_1_tablet.png differ diff --git a/test/visual/reference/6_0_grids_2_laptop.png b/test/visual/reference/6_0_grids_2_laptop.png new file mode 100644 index 0000000..edf6518 Binary files /dev/null and b/test/visual/reference/6_0_grids_2_laptop.png differ diff --git a/test/visual/reference/6_0_grids_3_desktop.png b/test/visual/reference/6_0_grids_3_desktop.png new file mode 100644 index 0000000..edf6518 Binary files /dev/null and b/test/visual/reference/6_0_grids_3_desktop.png differ diff --git a/test/visual/reference/7_0_codes_0_phone.png b/test/visual/reference/7_0_codes_0_phone.png new file mode 100644 index 0000000..932233b Binary files /dev/null and b/test/visual/reference/7_0_codes_0_phone.png differ diff --git a/test/visual/reference/7_0_codes_1_tablet.png b/test/visual/reference/7_0_codes_1_tablet.png new file mode 100644 index 0000000..fd82b02 Binary files /dev/null and b/test/visual/reference/7_0_codes_1_tablet.png differ diff --git a/test/visual/reference/7_0_codes_2_laptop.png b/test/visual/reference/7_0_codes_2_laptop.png new file mode 100644 index 0000000..9626e1a Binary files /dev/null and b/test/visual/reference/7_0_codes_2_laptop.png differ diff --git a/test/visual/reference/7_0_codes_3_desktop.png b/test/visual/reference/7_0_codes_3_desktop.png new file mode 100644 index 0000000..9626e1a Binary files /dev/null and b/test/visual/reference/7_0_codes_3_desktop.png differ diff --git a/test/visual/reference/8_0_utilities_0_phone.png b/test/visual/reference/8_0_utilities_0_phone.png new file mode 100644 index 0000000..c40e3b1 Binary files /dev/null and b/test/visual/reference/8_0_utilities_0_phone.png differ diff --git a/test/visual/reference/8_0_utilities_1_tablet.png b/test/visual/reference/8_0_utilities_1_tablet.png new file mode 100644 index 0000000..82e388c Binary files /dev/null and b/test/visual/reference/8_0_utilities_1_tablet.png differ diff --git a/test/visual/reference/8_0_utilities_2_laptop.png b/test/visual/reference/8_0_utilities_2_laptop.png new file mode 100644 index 0000000..59519b2 Binary files /dev/null and b/test/visual/reference/8_0_utilities_2_laptop.png differ diff --git a/test/visual/reference/8_0_utilities_3_desktop.png b/test/visual/reference/8_0_utilities_3_desktop.png new file mode 100644 index 0000000..59519b2 Binary files /dev/null and b/test/visual/reference/8_0_utilities_3_desktop.png differ