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) { ...@@ -126,7 +126,7 @@ casper.test.begin('getFormValues() tests', 2, function(test) {
126 "choice": "no", 126 "choice": "no",
127 "content": "Am watching thou", 127 "content": "Am watching thou",
128 "email": "chuck@norris.com", 128 "email": "chuck@norris.com",
129 "file": fpath, 129 "file": "C:\\fakepath\\README.md", // phantomjs/webkit sets that
130 "password": "chuck", 130 "password": "chuck",
131 "submit": "submit", 131 "submit": "submit",
132 "topic": "bar" 132 "topic": "bar"
...@@ -151,7 +151,7 @@ casper.test.begin('getFormValues() tests', 2, function(test) { ...@@ -151,7 +151,7 @@ casper.test.begin('getFormValues() tests', 2, function(test) {
151 "choice": "yes", 151 "choice": "yes",
152 "content": "Am watching thou", 152 "content": "Am watching thou",
153 "email": "chuck@norris.com", 153 "email": "chuck@norris.com",
154 "file": fpath, 154 "file": "C:\\fakepath\\README.md", // phantomjs/webkit sets that
155 "password": "chuck", 155 "password": "chuck",
156 "submit": "submit", 156 "submit": "submit",
157 "topic": "bar" 157 "topic": "bar"
......
...@@ -107,7 +107,8 @@ casper.test.begin('Tester.assertField(): unfilled inputs', 7, function(test) { ...@@ -107,7 +107,8 @@ casper.test.begin('Tester.assertField(): unfilled inputs', 7, function(test) {
107 test.assertField('check', true, 'Tester.assertField() works as expected with checkboxes'); 107 test.assertField('check', true, 'Tester.assertField() works as expected with checkboxes');
108 test.assertField('choice', 'no', 'Tester.assertField() works as expected with radios'); 108 test.assertField('choice', 'no', 'Tester.assertField() works as expected with radios');
109 test.assertField('topic', 'bar', 'Tester.assertField() works as expected with selects'); 109 test.assertField('topic', 'bar', 'Tester.assertField() works as expected with selects');
110 test.assertField('file', fpath, 'Tester.assertField() works as expected with file inputs'); 110 test.assertField('file', "C:\\fakepath\\README.md", // phantomjs/webkit sets that
111 'Tester.assertField() works as expected with file inputs');
111 test.assertField('checklist[]', ['1', '3'], 'Tester.assertField() works as expected with check lists'); 112 test.assertField('checklist[]', ['1', '3'], 'Tester.assertField() works as expected with check lists');
112 }).run(function() { 113 }).run(function() {
113 test.done(); 114 test.done();
......