Commit 87de6509 87de6509cacabab65e3d8f01d5347c99152017a4 by Nicolas Perriault

fixed upload file path test values

1 parent f086cb4a
......@@ -126,7 +126,7 @@ casper.test.begin('getFormValues() tests', 2, function(test) {
"choice": "no",
"content": "Am watching thou",
"email": "chuck@norris.com",
"file": fpath,
"file": "C:\\fakepath\\README.md", // phantomjs/webkit sets that
"password": "chuck",
"submit": "submit",
"topic": "bar"
......@@ -151,7 +151,7 @@ casper.test.begin('getFormValues() tests', 2, function(test) {
"choice": "yes",
"content": "Am watching thou",
"email": "chuck@norris.com",
"file": fpath,
"file": "C:\\fakepath\\README.md", // phantomjs/webkit sets that
"password": "chuck",
"submit": "submit",
"topic": "bar"
......
......@@ -107,7 +107,8 @@ casper.test.begin('Tester.assertField(): unfilled inputs', 7, function(test) {
test.assertField('check', true, 'Tester.assertField() works as expected with checkboxes');
test.assertField('choice', 'no', 'Tester.assertField() works as expected with radios');
test.assertField('topic', 'bar', 'Tester.assertField() works as expected with selects');
test.assertField('file', fpath, 'Tester.assertField() works as expected with file inputs');
test.assertField('file', "C:\\fakepath\\README.md", // phantomjs/webkit sets that
'Tester.assertField() works as expected with file inputs');
test.assertField('checklist[]', ['1', '3'], 'Tester.assertField() works as expected with check lists');
}).run(function() {
test.done();
......