Commit 755477ed 755477edf7dd23cc63076acae836a9442233d4b0 by Nicolas Perriault

fixed upload file paths, again

1 parent 55b648e8
......@@ -3,6 +3,8 @@
var fs = require('fs');
casper.test.begin('fill() tests', 15, function(test) {
var fpath = fs.pathJoin(phantom.casperPath, 'README.md');
casper.start('tests/site/form.html', function() {
this.fill('form[action="result.html"]', {
email: 'chuck@norris.com',
......@@ -11,7 +13,7 @@ casper.test.begin('fill() tests', 15, function(test) {
check: true,
choice: 'no',
topic: 'bar',
file: phantom.casperPath + '/README.md',
file: fpath,
'checklist[]': ['1', '3']
});
test.assertEvalEquals(function() {
......