Skip to content
Browse files

add test for possibly failing get element by attribute

  • Loading branch information...
1 parent 69bcd97 commit 4453beca277801bfe4c91e3113a6808023270068 @fat fat committed Mar 24, 2011
Showing with 7 additions and 0 deletions.
  1. +1 −0 tests/index.html
  2. +6 −0 tests/tests.js
View
1 tests/index.html
@@ -18,6 +18,7 @@
</head>
<body>
<h1>Qwery Tests</h1>
+ <div foo="bar"></div>
<div class="a"></div>
<div id="boosh">
<div class="a b">
View
6 tests/tests.js
@@ -13,6 +13,12 @@ sink('Contexts', function (test, ok) {
});
+sink('jdalton trolls', function (test, ok) {
+ test('getting selectors by attribute shouldnt throw an error', 1, function () {
+ ok($('[foo^="bar"]').length === 1, 'found 1 element')
+ });
+});
+
sink('CSS 1', function (test, ok) {
test('get element by id', 2, function () {
var result = $('#boosh');

0 comments on commit 4453bec

Please sign in to comment.
Something went wrong with that request. Please try again.