Skip to content

Commit

Permalink
Merge pull request #26 from oleg-andreyev/improving-testSetValueChang…
Browse files Browse the repository at this point in the history
…eEvent

Fixing test error, when detecting change in <input type=file/> using plain text (instead of actual files)
  • Loading branch information
aik099 authored Mar 25, 2019
2 parents 7abcb42 + ee46a85 commit d208035
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Js/ChangeEventTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ public function testSetValueChangeEvent($elementId, $valueForEmpty, $valueForFil

public function setValueChangeEventDataProvider()
{
$file1 = __DIR__ . '/../../web-fixtures/file1.txt';
$file2 = __DIR__ . '/../../web-fixtures/file2.txt';

return array(
'input default' => array('the-input-default', 'from empty', 'from existing'),
'input text' => array('the-input-text', 'from empty', 'from existing'),
'input email' => array('the-email', 'from empty', 'from existing'),
'textarea' => array('the-textarea', 'from empty', 'from existing'),
'file' => array('the-file', 'from empty', 'from existing'),
'file' => array('the-file', $file1, $file2),
'select' => array('the-select', '30'),
'radio' => array('the-radio-m', 'm'),
);
Expand Down
Empty file added web-fixtures/file1.txt
Empty file.
Empty file added web-fixtures/file2.txt
Empty file.

0 comments on commit d208035

Please sign in to comment.