1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../../resources/js-test.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
10 description('Ensures that assertion failures don\'t occur on updating the value of <output> elements.');
12 debug('- A test in the value is set twice.');
13 var output
= document
.createElement('output');
14 document
.body
.appendChild(output
);
17 testPassed('Not crashed');
18 document
.body
.removeChild(output
);
21 debug('- A test in the value is set to different values twice.');
22 output
= document
.createElement('output');
23 document
.body
.appendChild(output
);
26 testPassed('Not crashed');
27 document
.body
.removeChild(output
);
30 debug('- A test in reset events occur twice when there is no default value.');
31 var form
= document
.createElement('form');
32 document
.body
.appendChild(form
);
33 output
= document
.createElement('output');
34 form
.appendChild(output
);
37 testPassed('Not crashed');
38 document
.body
.removeChild(form
);
41 debug('- A test in reset events occur twice when the value is the same as the default value.');
42 form
= document
.createElement('form');
43 document
.body
.appendChild(form
);
44 output
= document
.createElement('output');
45 output
.defaultValue
= 'foo';
47 form
.appendChild(output
);
50 testPassed('Not crashed');
51 document
.body
.removeChild(form
);