corrade-nucleus-nucleons – Blame information for rev 26
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | (function(){ |
2 | |||
3 | 'use strict'; |
||
4 | |||
5 | /**
|
||
6 | * Textarea elements test.
|
||
7 | */ |
||
8 | |||
9 | describe('An HTML form with a textarea element', function(){ |
||
10 | |||
11 | beforeEach(function () { |
||
12 | var html = '<form id="newForm">' + |
||
13 | '<textarea name="address">Place du Casino, 98000 Monaco</textarea>' + |
||
14 | '</form>'; |
||
15 | var $newForm = document.createElement('div'); |
||
16 | $newForm.id = 'fixtures'; |
||
17 | $newForm.innerHTML = html; |
||
18 | document.body.appendChild($newForm); |
||
19 | }); |
||
20 | |||
21 | afterEach(function () { |
||
22 | document.body.removeChild(document.getElementById('fixtures')); |
||
23 | }); |
||
24 | |||
25 | it('should return an object', function(){ |
||
26 | expect(formToObject('newForm')).toEqual({'address':'Place du Casino, 98000 Monaco'}); |
||
27 | }); |
||
28 | |||
29 | }); |
||
30 | |||
31 | })(); |