Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / output-reset-assertion-failed.html
blob4c3a2a6c53b813475625daf604153f4deb57e486
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
10 description('Ensures that assertion failures don\'t occur on updating the value of &lt;output&gt; elements.');
12 debug('- A test in the value is set twice.');
13 var output = document.createElement('output');
14 document.body.appendChild(output);
15 output.value = '';
16 output.value = '';
17 testPassed('Not crashed');
18 document.body.removeChild(output);
20 debug('');
21 debug('- A test in the value is set to different values twice.');
22 output = document.createElement('output');
23 document.body.appendChild(output);
24 output.value = '';
25 output.value = 'foo';
26 testPassed('Not crashed');
27 document.body.removeChild(output);
29 debug('');
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);
35 form.reset();
36 form.reset();
37 testPassed('Not crashed');
38 document.body.removeChild(form);
40 debug('');
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';
46 output.value = 'foo';
47 form.appendChild(output);
48 form.reset();
49 form.reset();
50 testPassed('Not crashed');
51 document.body.removeChild(form);
52 </script>
53 </body>
54 </html>