Commit 755477ed 755477edf7dd23cc63076acae836a9442233d4b0 by Nicolas Perriault

fixed upload file paths, again

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