1 description('A Test for sending a reset event to output elements.');
3 var form = document.createElement('form');
4 var output = document.createElement('output');
5 output.defaultValue = 'defaultValue';
6 form.appendChild(output);
8 debug('- Sets the value attribute of the output element.');
9 output.value = 'aValue';
10 shouldBeEqualToString('output.defaultValue', 'defaultValue');
11 shouldBeEqualToString('output.value', 'aValue');
12 shouldBeEqualToString('output.innerText', 'aValue');
13 shouldBeEqualToString('output.innerHTML', 'aValue');
15 debug('- Sends a reset event to reset the value to the default value.');
17 shouldBeEqualToString('output.defaultValue', 'defaultValue');
18 shouldBeEqualToString('output.value', 'defaultValue');
19 shouldBeEqualToString('output.innerText', 'defaultValue');
20 shouldBeEqualToString('output.innerHTML', 'defaultValue');
22 debug('- Ensures that the value mode flags is in mode "default".');
23 output.defaultValue = 'another defaultValue';
24 shouldBeEqualToString('output.defaultValue', 'another defaultValue');
25 shouldBeEqualToString('output.value', 'another defaultValue');
26 shouldBeEqualToString('output.innerText', 'another defaultValue');
27 shouldBeEqualToString('output.innerHTML', 'another defaultValue');