These are transcribed from notes a while back:
PhantomCanvas - Promise (ew) based system for using phantomjs as a canvas or maybe provide array of commands that we serialize
Can we do the image diff in phantomjs? Removes 1 dependency.
Screenshot infra:
- screenshot.js, bin/lib for screenshotting a website via phantomjs
- might exist as a node module already
- will need that JS + --page-loaded eval
- might exist as a node module already
- lib that screenshots a given URL using screenshot.js?
- bin/lib that generates a diff of 2 images even at diff sizes or null
Screenshot infra cont:
- lib that takes an array of params for screenshots, orig file dir, new file dir, diff file dir, and calls back with
arrayobjectarray of objects of files (same as input)- passing/not passing
{
result: [{
url:
viewport:
origFile:
newFile:
diffFile:
matchDiff:
}]
}
-
test framework renders YAML/JS files for this
-
v2 will use different low level modules for multiple browsers