-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression tests for CSS: - backstop.js added to devDependencies - will diff screenshots when npm run test - stylesheets are automatically retrieved from dist folder - you can test different scenarios with the engine of your choice (chrome, phantom.js, slimmer.js) - tests pagination/scroll, reading modes, and user settings
- Loading branch information
Showing
42 changed files
with
2,981 additions
and
1,285 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
package-lock.json | ||
*.css.map | ||
*.css.map | ||
tests/backstop_data/ |
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,192 @@ | ||
{ | ||
"id": "ReadiumCSS", | ||
"viewports": [ | ||
{ | ||
"label": "phone", | ||
"width": 375, | ||
"height": 667 | ||
}, | ||
{ | ||
"label": "tablet", | ||
"width": 1024, | ||
"height": 768 | ||
} | ||
], | ||
"scenarios": [ | ||
{ | ||
"label": "Paged", | ||
"url": "tests/base.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Paged rtl", | ||
"url": "tests/base-rtl.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Paged vertical", | ||
"url": "tests/base-vertical.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "1 column pref", | ||
"url": "tests/cols-1.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "2 columns pref", | ||
"url": "tests/cols-2.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Page margins pref", | ||
"url": "tests/margins.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Scroll pref", | ||
"url": "tests/scroll.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Scroll vertical pref", | ||
"url": "tests/scroll-vertical.html", | ||
"delay": 0, | ||
"selectors": ["viewport"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Day mode pref", | ||
"url": "tests/day.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Sepia mode pref", | ||
"url": "tests/sepia.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Night mode pref", | ||
"url": "tests/night.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Font family pref", | ||
"url": "tests/font-family.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Font size pref", | ||
"url": "tests/font-size.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Type scale pref", | ||
"url": "tests/type-scale.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Text align pref", | ||
"url": "tests/text-align.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Hyphens pref", | ||
"url": "tests/hyphens.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Line height pref", | ||
"url": "tests/line-height.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Para spacing pref", | ||
"url": "tests/para-spacing.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Para spacing vertical pref", | ||
"url": "tests/para-spacing-vertical.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Wordspacing pref", | ||
"url": "tests/word-spacing.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Letterspacing pref", | ||
"url": "tests/letter-spacing.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Ligatures pref", | ||
"url": "tests/arabic-ligatures.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
}, | ||
{ | ||
"label": "Accessibility normalize pref", | ||
"url": "tests/a11y-normalize.html", | ||
"delay": 0, | ||
"selectors": ["document"], | ||
"misMatchThreshold" : 0.1 | ||
} | ||
], | ||
"paths": { | ||
"bitmaps_reference": "tests/backstop_data/bitmaps_reference", | ||
"bitmaps_test": "tests/backstop_data/bitmaps_test", | ||
"engine_scripts": "tests/backstop_data/engine_scripts", | ||
"html_report": "tests/backstop_data/html_report", | ||
"ci_report": "tests/backstop_data/ci_report" | ||
}, | ||
"report": ["browser"], | ||
"engine": "chrome", | ||
"engineFlags": [], | ||
"asyncCaptureLimit": 5, | ||
"asyncCompareLimit": 50, | ||
"debug": false, | ||
"debugWindow": false | ||
} |
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
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
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
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
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
Binary file not shown.
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
Oops, something went wrong.