Skip to content

Commit 58e5774

Browse files
committed
updated docs
1 parent a3fc25a commit 58e5774

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

README.md

+1-20
Original file line numberDiff line numberDiff line change
@@ -352,25 +352,6 @@ There may also be elements which need to be completely removed during testing. F
352352
"#someUnpredictableSizedDomSelector"
353353
]
354354
```
355-
#### Normalization using custom CasperJS scripts
356-
If static content stubs are not an option you could opt for the normalization of dynamic content using custom scripts. See example `onReady.js` (replacing images with a placeholder):
357-
358-
```js
359-
module.exports = function (casper) {
360-
casper.then(function() {
361-
this.evaluate(function() {
362-
var imagesNodeList = document.querySelectorAll('img.dynamic');
363-
var imagesArray = Array.prototype.slice.call(images);
364-
images.forEach(function(img) {
365-
if (imgDim.width === 0 && imgDim.height === 0) {
366-
return true;
367-
}
368-
img.src = '/dummyImg?width=' + img.width + 'height=' + img.height;
369-
});
370-
});
371-
});
372-
};
373-
```
374355

375356
### Grabbing screens from different environments
376357
Comparing against different environments is easy. (e.g. compare a production environment against a staging environment).
@@ -397,7 +378,7 @@ From your project root, place your scripts in...
397378
```sh
398379
./backstop_data/casper_scripts
399380
```
400-
381+
401382
at the root of your config or in your scenario...
402383

403384
```js

0 commit comments

Comments
 (0)