Skip to content

Commit

Permalink
Added test to make sure placeholder is being added to TextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Jurman committed Mar 4, 2012
1 parent 84e4a6b commit 5f009bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class TestInputField(WidgetTest):

class TestTextField(WidgetTest):
widget = TextField
attrs = {'css_class':'something', 'size':'60'}
attrs = {'css_class':'something', 'size':'60', 'placeholder': "Search..."}
params = {'value':6}
expected = '<input type="text" class="something" value="6" size="60"/>'
expected = '<input type="text" class="something" placeholder="Search..." value="6" size="60"/>'

class TestTextArea(WidgetTest):
widget = TextArea
Expand Down

0 comments on commit 5f009bd

Please sign in to comment.