When running tests in debug mode, a ton of resource errors are logged. These resource errors don't seem to adversely affect the test run, but they add a lot of noise to the debug output.
To reproduce, using PhantomFlow v1.0.0 run:
node test/test.js debug
In the output you'll see a ton of resource errors around 'empty.html' and 'resemblejscontainer.html':
These resource errors are not present in PhantomFlow v0.5.14, but they are present in PhantomFlow v1.0.0. Further investigation shows that the errors are triggered by the switch to PhantomJS v2.
It seems that PhantomJS 2 requires that URLs have a protocol - see this SO answer.
So while this worked in PhantomJS v1:
casper.thenOpen( 'C:/test.htm' );
PhantomJS v2 requires us to prefix the file path with 'file:///':
casper.thenOpen( 'file:///C:/test.htm' );
I'll submit some pull requests shortly to fix the 2 spots that are causing the resource errors. One is in PhantomFlow and one is in PhantomCSS.
When running tests in debug mode, a ton of resource errors are logged. These resource errors don't seem to adversely affect the test run, but they add a lot of noise to the debug output.
To reproduce, using PhantomFlow v1.0.0 run:
In the output you'll see a ton of resource errors around 'empty.html' and 'resemblejscontainer.html':
Screenshot:
These resource errors are not present in PhantomFlow v0.5.14, but they are present in PhantomFlow v1.0.0. Further investigation shows that the errors are triggered by the switch to PhantomJS v2.
It seems that PhantomJS 2 requires that URLs have a protocol - see this SO answer.
So while this worked in PhantomJS v1:
PhantomJS v2 requires us to prefix the file path with 'file:///':
I'll submit some pull requests shortly to fix the 2 spots that are causing the resource errors. One is in PhantomFlow and one is in PhantomCSS.