Changeset 160875 in webkit


Ignore:
Timestamp:
Dec 19, 2013 4:39:14 PM (10 years ago)
Author:
ap@apple.com
Message:

Layout Test plugins/destroy-during-npp-new.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=126027

  • plugins/destroy-during-npp-new.html: Streamlined the test a little bit to see

what changes, if anything. There should be no effect on what is tested.

Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r160865 r160875  
     12013-12-19  Alexey Proskuryakov  <ap@apple.com>
     2
     3        Layout Test plugins/destroy-during-npp-new.html is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=126027
     5
     6        * plugins/destroy-during-npp-new.html: Streamlined the test a little bit to see
     7        what changes, if anything. There should be no effect on what is tested.
     8
    192013-12-19  Myles C. Maxfield  <mmaxfield@apple.com>
    210
  • trunk/LayoutTests/plugins/destroy-during-npp-new.html

    r120417 r160875  
    99
    1010    var newWindow = window.open("data:text/html,Hello world!")
     11    if (!newWindow)
     12        alert("Please disable pop-up blocker");
    1113
    12     function tryCloseWindow(w) {
    13         if (!w)
     14    function finishWhenClosed() {
     15        if (newWindow.closed) {
     16            if (window.testRunner)
     17                testRunner.notifyDone();
    1418            return;
    15 
    16         w.close();
    17 
    18         function doneIfClosed() {
    19             if (w.closed) {
    20                 if (window.testRunner)
    21                     testRunner.notifyDone();
    22                 return;
    23             }
    24             setTimeout(doneIfClosed, 1);
    25         };
    26         doneIfClosed();
    27     }
     19        }
     20        setTimeout(finishWhenClosed, 1);
     21    };
    2822
    2923    window.onload = function() {
    30         tryCloseWindow(newWindow);
     24        newWindow.close();
    3125
    3226        var testPlugin = document.getElementById('testPlugin');
    3327        if (!testPlugin || !testPlugin.parentNode)
    3428            document.documentElement.appendChild(document.createTextNode("SUCCESS"));
     29
     30        finishWhenClosed();
    3531    }
    3632    </script>
Note: See TracChangeset for help on using the changeset viewer.