• rniwa@webkit.org's avatar
    Add a test for lastChangeWasUserEdit in HTMLInputElement and HTMLTextAreaElement · b3eabcbb
    rniwa@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=67173
    
    Reviewed by Darin Adler.
    
    Source/WebCore: 
    
    Exposed HTMLInputElement::lastChangeWasUserEdit and HTMLTextAreaElement::lastChangeWasUserEdit
    via internals.wasLastChangeUserEdit(Element*, ExceptionCode&). The first argument must be
    an input element or a textarea element lastChangeWasUserEdit is called upon.
    
    Test: fast/forms/textfield-lastchange-was-useredit.html
    
    * testing/Internals.cpp:
    (WebCore::Internals::wasLastChangeUserEdit):
    * testing/Internals.h:
    * testing/Internals.idl:
    
    LayoutTests: 
    
    Added some basic test for HTMLInputElement::lastChangeWasUserEdit and
    HTMLTextAreaElement::lastChangeWasUserEdit.
    
    * fast/forms/textfield-lastchange-was-useredit-expected.txt: Added.
    * fast/forms/textfield-lastchange-was-useredit.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b3eabcbb
Internals.idl 2.93 KB