Sha256: 6dbd9d22a5d7bea703c7465ad3e754a395b6d64ecc146310b277ddf512cee0e1

Contents?: true

Size: 649 Bytes

Versions: 24

Compression:

Stored size: 649 Bytes

Contents

//FYI: shipped with Rails 2.2.2
load("test/vendor/prototype-1.6.0.3.js");

module("prototypecompat");

test("$ method", function(){
  expect(1);
  equals($("header"), document.getElementById("header"));
});

test("$$ method", function(){
  expect(1);
  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");
});

Version data entries

24 entries across 24 versions & 4 rubygems

Version Path
envjs19-0.3.8.20101029121421 test/unit/prototypecompat.js
envjs-0.3.8 test/unit/prototypecompat.js
envjs-0.3.7 test/unit/prototypecompat.js
envjs-0.3.6 test/unit/prototypecompat.js
envjs-0.3.5 test/unit/prototypecompat.js
envjs-0.3.4 test/unit/prototypecompat.js
envjs-0.3.3 test/unit/prototypecompat.js
envjs-0.3.2 test/unit/prototypecompat.js
envjs-0.3.1 test/unit/prototypecompat.js
envjs-0.3.0 test/unit/prototypecompat.js
envjs-0.2.0 test/unit/prototypecompat.js
envjs-0.1.7 test/unit/prototypecompat.js
envjs-0.1.6 test/unit/prototypecompat.js
envjs-0.1.5 test/unit/prototypecompat.js
envjs-0.1.4 test/unit/prototypecompat.js
envjs-0.1.3 test/unit/prototypecompat.js
harmony-0.5.1 vendor/envjs/test/unit/prototypecompat.js
harmony-0.5 vendor/envjs/test/unit/prototypecompat.js
envjs-0.1.2 test/unit/prototypecompat.js
envjs-0.1.1 test/unit/prototypecompat.js