Skip to content

Commit 9204a0f

Browse files
author
Jonathan Felchlin
committed
Adding a test to cover the textarea issue
1 parent 7b64e64 commit 9204a0f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/form.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,28 @@ <h1>Form element test for diffDOM</h1>
199199
console.log(theDiff);
200200
}
201201

202+
reportDiv();
203+
204+
second.innerText = 'Some text';
205+
third.innerText = 'Some other text';
206+
207+
reportDivDescription(first, second);
208+
209+
theDiff = dd.diff(first, second);
210+
211+
dd.apply(first, theDiff);
212+
213+
theDiff = dd.diff(first, third);
214+
215+
dd.apply(first, theDiff);
216+
217+
if (first.value === third.value) {
218+
success(theDiff);
219+
} else {
220+
testFailure();
221+
console.log(theDiff);
222+
}
223+
202224
// Input type = text
203225

204226
setSection('Input type = text');

0 commit comments

Comments
 (0)