Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLOutputElement/htmloutputelement-reset-event.html

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script src="script-tests/htmloutputelement-reset-event.js"></script> 7 <script>
8 description('A Test for sending a reset event to output elements.');
9
10 var form = document.createElement('form');
11 var output = document.createElement('output');
12 output.defaultValue = 'defaultValue';
13 form.appendChild(output);
14
15 debug('- Sets the value attribute of the output element.');
16 output.value = 'aValue';
17 shouldBeEqualToString('output.defaultValue', 'defaultValue');
18 shouldBeEqualToString('output.value', 'aValue');
19 shouldBeEqualToString('output.innerText', 'aValue');
20 shouldBeEqualToString('output.innerHTML', 'aValue');
21
22 debug('- Sends a reset event to reset the value to the default value.');
23 form.reset();
24 shouldBeEqualToString('output.defaultValue', 'defaultValue');
25 shouldBeEqualToString('output.value', 'defaultValue');
26 shouldBeEqualToString('output.innerText', 'defaultValue');
27 shouldBeEqualToString('output.innerHTML', 'defaultValue');
28
29 debug('- Ensures that the value mode flags is in mode "default".');
30 output.defaultValue = 'another defaultValue';
31 shouldBeEqualToString('output.defaultValue', 'another defaultValue');
32 shouldBeEqualToString('output.value', 'another defaultValue');
33 shouldBeEqualToString('output.innerText', 'another defaultValue');
34 shouldBeEqualToString('output.innerHTML', 'another defaultValue');
35 </script>
8 </body> 36 </body>
9 </html> 37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698