Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Textarea height test
Browse files Browse the repository at this point in the history
  • Loading branch information
itumoraes committed Mar 17, 2016
1 parent 4ff4907 commit 414a4c5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 17 additions & 10 deletions spec/javascripts/fixtures/forms_fixture.html
@@ -1,13 +1,20 @@
<div id="mypassword">
<input type="password" maxlength="20" id="password_field" name="password" value="locastyle é da hora né?" >
<a class="ls-toggle-pass" data-target="#password_field" href="#">alterar</a>
</div>
<form class="ls-form" data-ls-module="form">
<div id="mypassword">
<input type="password" maxlength="20" id="password_field" name="password" value="locastyle é da hora né?" >
<a class="ls-toggle-pass" data-target="#password_field" href="#">alterar</a>
</div>

<div id="mytypetext">
<input type="text" maxlength="20" id="password_field2" name="password" value="locastyle é da hora né?" >
<a class="ls-toggle-pass" data-target="#password_field2" href="#">alterar</a>
</div>
<div id="mytypetext">
<input type="text" maxlength="20" id="password_field2" name="password" value="locastyle é da hora né?" >
<a class="ls-toggle-pass" data-target="#password_field2" href="#">alterar</a>
</div>

<a id="changeClass" class="ls-toggle-pass" data-toggle-class="my-new-class, my-old-class" data-target="#password_field2" href="#">alterar</a>
<a id="changeClass" class="ls-toggle-pass" data-toggle-class="my-new-class, my-old-class" data-target="#password_field2" href="#">alterar</a>

<textarea name="" id="" cols="30" rows="1">com Fulano de Tal no telefone: 11 5555-5555. </textarea>
<label class="ls-label">
<textarea class="ls-textarea-autoresize" name="" id="" cols="30" rows="1">
Com Fulano de Tal,
no telefone: 11 5555-5555.
</textarea>
</label>
</form>
2 changes: 1 addition & 1 deletion spec/javascripts/form_spec.js
Expand Up @@ -24,7 +24,7 @@ describe("Forms: ", function() {

describe("When exist textarea", function(){
it("textarea has atribute height", function(){
expect($("textarea")).toHaveCss({ height: "18px" });
expect($("textarea")).toHaveCss({ height: "54px" });
});
});

Expand Down

0 comments on commit 414a4c5

Please sign in to comment.