Changeset 90604 in webkit


Ignore:
Timestamp:
Jul 7, 2011 5:49:40 PM (13 years ago)
Author:
yutak@chromium.org
Message:

WebSocket: Use jsTestIsAsync and finishJSTest() in httponly-cookie.pl
https://bugs.webkit.org/show_bug.cgi?id=64087

Reviewed by Kent Tamura.

  • http/tests/websocket/tests/hixie76/httponly-cookie.pl:
Location:
trunk/LayoutTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r90597 r90604  
     12011-07-07  Yuta Kitamura  <yutak@chromium.org>
     2
     3        WebSocket: Use jsTestIsAsync and finishJSTest() in httponly-cookie.pl
     4        https://bugs.webkit.org/show_bug.cgi?id=64087
     5
     6        Reviewed by Kent Tamura.
     7
     8        * http/tests/websocket/tests/hixie76/httponly-cookie.pl:
     9
    1102011-07-07  James Robinson  <jamesr@chromium.org>
    211
  • trunk/LayoutTests/http/tests/websocket/tests/hixie76/httponly-cookie.pl

    r90445 r90604  
    1010<head>
    1111<script src="../../../../js-test-resources/js-test-pre.js"></script>
    12 <script src="../../../../js-test-resources/js-test-post-function.js"></script>
    1312</head>
    1413<body>
     
    1716<div id="console"></div>
    1817<script>
    19 if (window.layoutTestController) {
    20     layoutTestController.dumpAsText();
    21     layoutTestController.waitUntilDone();
    22 }
     18window.jsTestIsAsync = true;
    2319
    2420var cookie;
     
    2925    // Split the cookie string, sort it and then put it back together.
    3026    return cookie.split('; ').sort().join('; ');
    31 }
    32 
    33 function endTest()
    34 {
    35     cookie = normalizeCookie(cookie);
    36     shouldBe("cookie", '"WK-websocket-test-httponly=1; WK-websocket-test=1"');
    37     isSuccessfullyParsed();
    38     if (window.layoutTestController)
    39        layoutTestController.notifyDone();
    4027}
    4128
     
    5037ws.onclose = function() {
    5138    debug("WebSocket closed");
    52     endTest();
     39    cookie = normalizeCookie(cookie);
     40    shouldBe("cookie", '"WK-websocket-test-httponly=1; WK-websocket-test=1"');
     41    finishJSTest();
    5342};
    5443
    5544var successfullyParsed = true;
    5645</script>
     46<script src="../../../../js-test-resources/js-test-post.js"></script>
    5747</body>
    5848</html>
Note: See TracChangeset for help on using the changeset viewer.