Changeset 122758 in webkit


Ignore:
Timestamp:
Jul 16, 2012 1:48:40 PM (12 years ago)
Author:
scheib@chromium.org
Message:

Fix Layout Test pointer-lock/locked-element-removed-from-dom.html flakiness.
https://bugs.webkit.org/show_bug.cgi?id=91373

Reviewed by Adrienne Walker.

pointer-lock-test-harness corrected to no longer silently allow too many
asynchronous doNextStep calls in a test. The locked-element-removed-from-dom test
generated too many events and incorrectly exited the test early.

  • platform/chromium/TestExpectations:

Re-enabled locked-element-removed-from-dom test.html

  • pointer-lock/locked-element-removed-from-dom.html:

Absorb extra doNextStep.

  • pointer-lock/resources/pointer-lock-test-harness.js:

(doNextStep.setTimeout):

Fail tests that call doNextStep too many times.

Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r122755 r122758  
     12012-07-16  Vincent Scheib  <scheib@chromium.org>
     2
     3        Fix Layout Test pointer-lock/locked-element-removed-from-dom.html flakiness.
     4        https://bugs.webkit.org/show_bug.cgi?id=91373
     5
     6        Reviewed by Adrienne Walker.
     7
     8        pointer-lock-test-harness corrected to no longer silently allow too many
     9        asynchronous doNextStep calls in a test. The locked-element-removed-from-dom test
     10        generated too many events and incorrectly exited the test early.
     11
     12        * platform/chromium/TestExpectations:
     13            Re-enabled locked-element-removed-from-dom test.html
     14        * pointer-lock/locked-element-removed-from-dom.html:
     15            Absorb extra doNextStep.
     16        * pointer-lock/resources/pointer-lock-test-harness.js:
     17        (doNextStep.setTimeout):
     18            Fail tests that call doNextStep too many times.
     19
    1202012-07-16  Florin Malita  <fmalita@chromium.org>
    221
  • trunk/LayoutTests/platform/chromium/TestExpectations

    r122752 r122758  
    37293729BUGWK90980 WIN : fast/forms/textarea/textarea-state-restore.html = PASS TIMEOUT
    37303730
    3731 // Flaky since creation in 122626
    3732 BUGWK91373 WIN : pointer-lock/locked-element-removed-from-dom.html = PASS TEXT
    3733 
    37343731// Started crashing after 122286
    37353732BUGWK91133 WIN : storage/indexeddb/constants.html = PASS CRASH
  • trunk/LayoutTests/pointer-lock/locked-element-removed-from-dom.html

    r122626 r122758  
    4343            // doNextStep called by event handler.
    4444        },
     45        function () {
     46            // Absorb an extra doNextStep() from previous event handlers.
     47        },
    4548    ];
    4649    doNextStep();
  • trunk/LayoutTests/pointer-lock/resources/pointer-lock-test-harness.js

    r122158 r122758  
    1313        currentStep = 0;
    1414
    15     if (currentStep < todo.length)
    16         setTimeout(function () { todo[currentStep++](); }, 0);
    17     else if (currentStep++ == todo.length)
    18         setTimeout(function () { finishJSTest(); }, 0);
     15    setTimeout(function () {
     16        var thisStep = currentStep++;
     17        if (thisStep < todo.length)
     18            todo[thisStep]();
     19        else if (thisStep == todo.length)
     20            setTimeout(function () { finishJSTest(); }, 0); // Deferred so that excessive doNextStep calls will be observed.
     21        else
     22            testFailed("doNextStep called too many times.");
     23    }, 0);
    1924}
    2025
Note: See TracChangeset for help on using the changeset viewer.