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

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

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
(Empty)
1 description('A Test for sending a reset event to output elements.');
2
3 var form = document.createElement('form');
4 var output = document.createElement('output');
5 output.defaultValue = 'defaultValue';
6 form.appendChild(output);
7
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');
14
15 debug('- Sends a reset event to reset the value to the default value.');
16 form.reset();
17 shouldBeEqualToString('output.defaultValue', 'defaultValue');
18 shouldBeEqualToString('output.value', 'defaultValue');
19 shouldBeEqualToString('output.innerText', 'defaultValue');
20 shouldBeEqualToString('output.innerHTML', 'defaultValue');
21
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');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698