Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
87de6509
...
87de6509cacabab65e3d8f01d5347c99152017a4
authored
2013-02-25 01:42:32 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed upload file path test values
1 parent
f086cb4a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
tests/suites/casper/formfill.js
tests/suites/tester/assert.js
tests/suites/casper/formfill.js
View file @
87de650
...
...
@@ -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"
...
...
tests/suites/tester/assert.js
View file @
87de650
...
...
@@ -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
();
...
...
Please
register
or
sign in
to post a comment