Skip to content

goosetav/true_type_bug

Repository files navigation

Simple Rails App to reproduce jonleighton/poltergeist#44

Setup:

  1. cd /your/project/place && git clone git@github.com:goosetav/true_type_bug.git
  2. bundle install
  3. BYOWS - wire it up to serve locally (I use http://pow.cx)

Reproduce the bug via poltergeist

  1. run spec
  2. bundle exec rspec -- this should cause a crash (under Mac OSX Mountain Lion at least)

Do basically the same thing using PhantomJS directly

  1. update the URL in test-phantom.js to point at wherever the code is running
  2. (in root of the project) phantomjs test-phantom.js -- this will not crash and instead takes two screenshots

To prevent the bug via poltergeist

  1. goto apps/assets/application.css.scss
  2. comment out line #20 @import 'true_type_bug'
  3. bundle exec rspec -- this will not fail now

About

reproducing phantomjs crashes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published