| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index e9924031defc0d5b15614b1367dc9b26e53b37ff..21b6ce7db02b19141bf2b530d3e7b270a44b70a2 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1044,6 +1044,21 @@ void Internals::setSuggestedValue(Element* element, const String& value, Excepti
|
| toHTMLSelectElement(*element).setSuggestedValue(value);
|
| }
|
|
|
| +void Internals::setValueAfterUserGesture(Element* element, const String& value, ExceptionState& exceptionState)
|
| +{
|
| + if (!element) {
|
| + exceptionState.throwDOMException(InvalidAccessError, ExceptionMessages::argumentNullOrIncorrectType(1, "Element"));
|
| + return;
|
| + }
|
| +
|
| + if (!isHTMLInputElement(*element)) {
|
| + exceptionState.throwDOMException(InvalidNodeTypeError, "The element provided is not a input element.");
|
| + return;
|
| + }
|
| +
|
| + toHTMLInputElement(*element).setValueAfterUserGesture(value);
|
| +}
|
| +
|
| void Internals::setEditingValue(Element* element, const String& value, ExceptionState& exceptionState)
|
| {
|
| if (!element) {
|
|
|