Commit d4765c95 d4765c953abc70b027446cf7981f81f901c6945c by Nicolas Perriault

closes #267 - added test case as a PoC

1 parent 2e6cf773
......@@ -67,10 +67,19 @@ casper.thenOpen('tests/site/multiple-forms.html', function() {
this.fill('form[name="f2"]', {
yo: "ok"
}, true);
}).then(function() {
this.test.assertUrlMatch(/\?f=f2&yo=ok$/, 'Casper.fill() handles multiple forms');
});
casper.then(function() {
this.test.assertUrlMatch(/\?f=f2&yo=ok$/, 'Casper.fill() handles multiple forms');
// issue #267: array syntax field names
casper.thenOpen('tests/site/field-array.html', function() {
this.test.comment('Field arrays');
this.fill('form', {
'foo[bar]': "bar",
'foo[baz]': "baz"
}, true);
}).then(function() {
this.test.assertUrlMatch('?foo[bar]=bar&foo[baz]=baz', 'Casper.fill() handles array syntax field names');
});
casper.run(function() {
......