Changeset 55742 in webkit


Ignore:
Timestamp:
Mar 9, 2010 1:25:15 PM (14 years ago)
Author:
beidson@apple.com
Message:

Fix my layouttest failures by resetting cookies before and after these new tests.
https://bugs.webkit.org/show_bug.cgi?id=26391

Reviewed by Alexey Proskuryakov.

  • http/tests/cookies/third-party-cookie-relaxing.html:
  • http/tests/plugins/resources/third-party-cookie-accept-policy-iframe.html:
  • http/tests/plugins/third-party-cookie-accept-policy.html:
Location:
trunk/LayoutTests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r55738 r55742  
     12010-03-09  Brady Eidson  <beidson@apple.com>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        Fix my layouttest failures by resetting cookies before and after these new tests.   
     6        https://bugs.webkit.org/show_bug.cgi?id=26391
     7
     8        * http/tests/cookies/third-party-cookie-relaxing.html:
     9        * http/tests/plugins/resources/third-party-cookie-accept-policy-iframe.html:
     10        * http/tests/plugins/third-party-cookie-accept-policy.html:
     11
    1122010-03-09  Brady Eidson  <beidson@apple.com>
    213
  • trunk/LayoutTests/http/tests/cookies/third-party-cookie-relaxing.html

    r55672 r55742  
    11<html>
    22<head>
     3<script src="resources/cookies-test-pre.js"></script>
    34<script>
    45
     
    67    layoutTestController.dumpAsText();
    78    layoutTestController.waitUntilDone();
     9    layoutTestController.setAlwaysAcceptCookies(true);
     10    clearCookies();
     11    layoutTestController.setAlwaysAcceptCookies(false);
    812}
    913
     
    7680{
    7781    if (currentFunction >= functions.length) {
    78         if (window.layoutTestController)
     82        if (window.layoutTestController) {
    7983            layoutTestController.notifyDone();
     84            layoutTestController.setAlwaysAcceptCookies(true);
     85            clearCookies();
     86            layoutTestController.setAlwaysAcceptCookies(false);
     87        }
    8088        return;
    8189    }
  • trunk/LayoutTests/http/tests/plugins/resources/third-party-cookie-accept-policy-iframe.html

    r55738 r55742  
    3131{
    3232   alert("Cookies should still be clear, and are: '" + document.cookie + "'");
    33    if (window.layoutTestController)
     33   if (window.layoutTestController) {
    3434       layoutTestController.notifyDone();
     35       layoutTestController.setAlwaysAcceptCookies(true);
     36       clearCookies();
     37       layoutTestController.setAlwaysAcceptCookies(false);   
     38   }
    3539}
    3640
  • trunk/LayoutTests/http/tests/plugins/third-party-cookie-accept-policy.html

    r55738 r55742  
    11<html>
    22<head>
     3<script src="../cookies/resources/cookies-test-pre.js"></script>   
    34<script>
    45
     
    67    layoutTestController.dumpAsText();
    78    layoutTestController.waitUntilDone();
     9    layoutTestController.setAlwaysAcceptCookies(true);
     10    clearCookies();
     11    layoutTestController.setAlwaysAcceptCookies(false);
    812}
    913
Note: See TracChangeset for help on using the changeset viewer.