Skip to content

Commit

Permalink
LH#69: added a failing test to help debug the problem with Prototype'…
Browse files Browse the repository at this point in the history
…s "Element.down()" method.
  • Loading branch information
Larry Karnowski committed May 22, 2009
1 parent 87c8d20 commit 759a76f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/unit/prototypecompat.js
Expand Up @@ -10,5 +10,13 @@ test("$ method", function(){

test("$$ method", function(){
expect(1);
ok($$(".chain").length == 10, "$$ found correct number of elements")
ok($$(".chain").length == 10, "$$ found correct number of elements");
});

// When this failing test passes, ticket #69 can be closed.
// (http://envjs.lighthouseapp.com/projects/21590-envjs/tickets/69-prototypes-down-method-is-unavailable)
//
// test("down method", function(){
// expect(1);
// ok($('main').down('#foo') != undefined, "$('main').down('#foo') successfully found an element");
// });

0 comments on commit 759a76f

Please sign in to comment.