Added test for #745
This commit is contained in:
parent
d4849a0d35
commit
de4e28e1ba
2 changed files with 3 additions and 2 deletions
3
src/jquery/coreTest.js
vendored
3
src/jquery/coreTest.js
vendored
|
@ -74,7 +74,7 @@ test("index(Object)", function() {
|
|||
});
|
||||
|
||||
test("attr(String)", function() {
|
||||
expect(12);
|
||||
expect(13);
|
||||
ok( $('#text1').attr('value') == "Test", 'Check for value attribute' );
|
||||
ok( $('#text1').attr('type') == "text", 'Check for type attribute' );
|
||||
ok( $('#radio1').attr('type') == "radio", 'Check for type attribute' );
|
||||
|
@ -87,6 +87,7 @@ test("attr(String)", function() {
|
|||
ok( $('#name').attr('name') == "name", 'Check for name attribute' );
|
||||
ok( $('#text1').attr('name') == "action", 'Check for name attribute' );
|
||||
ok( $('#form').attr('action').indexOf("formaction") >= 0, 'Check for action attribute' );
|
||||
ok( $('#anchor2').attr('href') == "#2", 'Check for non-absolute href (an anchor)' );
|
||||
});
|
||||
|
||||
test("attr(String, Function)", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue