Sha256: 12004ed602c1d2f13ef3ba3ced0b0aeecae0f5edd3fa0955a60cec0f86725389
Contents?: true
Size: 624 Bytes
Versions: 7
Compression:
Stored size: 624 Bytes
Contents
/* --- name: Elements.From Tests requires: [More/Elements.From] provides: [Elements.From.Tests] ... */ describe('Elements.From', { 'should return a group of elements': function(){ var str = '<p><b>foo</b></p><i>bar</i>'; var div = new Element('div'); expect(div.adopt(Elements.from(str)).get('html').toLowerCase().trim()).toEqual(str); }, 'should return a group of table elements': function(){ var str = '<tr><td>foo</td></tr>'; var tbody = new Element('tbody').inject(new Element('table')).adopt(Elements.from(str)); expect(tbody.get('html').toLowerCase().replace(/\s+/g, '').trim()).toEqual(str); } });
Version data entries
7 entries across 7 versions & 1 rubygems