Skip to content
  • yosin@chromium.org's avatar
    [Tests] We should have test for clicking spin button in iframe. · 14d043a2
    yosin@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=96612
    
    Reviewed by Kent Tamura.
    
    This patch adds two tests for clicking spin button in iframe for
    input type "number" and input type "time" with multiple fields UI.
    
    These tests are added for catching regression caused by r127876.
    
    * fast/forms/number/number-spinbutton-click-in-iframe-expected.txt: Added.
    * fast/forms/number/number-spinbutton-click-in-iframe.html: Added.
    * fast/forms/resources/common-spinbutton-click-in-iframe.js: Added.
    (getSpinButton): Extracts spin button in shadow DOM tree.
    (mouseClick): Simulates mouse click.
    (mouseMoveTo): Simulates mouse pointer move.
    (runIFrameLoaded): Checking spin button clicked.
    (testClickSpinButtonInIFrame): Creates and populates iframe.
    * fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-click-in-iframe-expected.txt: Added.
    * fast/forms/time-multiple-fields/time-multiple-fields-spinbutton-click-in-iframe.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@128423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    14d043a2