Bug 1439090 [wpt PR 9563] - Fix selection{Start,End} test, a=testonly

Automatic update from web-platform-testsFix selection{Start,End} test

Likely due to a copy and paste error, one of the tests that was
meant to cover both selectionStart and selectionEnd only covered
the former. Fix so that it covers both, as it should have from the
start.

wpt-commits: 08dd5d8de9c165badabf9f18b5be21a561d8213a
wpt-pr: 9563
wpt-commits: 08dd5d8de9c165badabf9f18b5be21a561d8213a
wpt-pr: 9563
This commit is contained in:
Esteban Manchado Velázquez 2018-03-26 12:24:38 +00:00 committed by James Graham
parent f374bf4f57
commit 3059b9136d
2 changed files with 2 additions and 2 deletions

View File

@ -562084,7 +562084,7 @@
"testharness"
],
"html/semantics/forms/textfieldselection/selection-start-end.html": [
"0fd9c420f831943f0d992076a7828eac066b6596",
"6bef6943accb6677e9f466df6cc5ad267b01680f",
"testharness"
],
"html/semantics/forms/textfieldselection/selection-value-interactions.html": [

View File

@ -62,7 +62,7 @@
for (let prop of ["selectionStart", "selectionEnd"]) {
for (let el of createTestElements(testValue)) {
test(function() {
assert_equals(el.selectionStart, testValue.length);
assert_equals(el[prop], testValue.length);
}, `Initial .value set on ${el.id} should set ${prop} to end of value`);
}
}