Changeset 49819 in webkit


Ignore:
Timestamp:
Oct 19, 2009 3:44:21 PM (15 years ago)
Author:
eric@webkit.org
Message:

2009-10-19 Jason Yan <tailofthesun@gmail.com>

Reviewed by Eric Seidel.

Fixed issue with LayoutTests/fast/cookies/local-file-can-set-cookies.html
which can fail when the system under test has local file cookies set already.
https://bugs.webkit.org/show_bug.cgi?id=30281

  • fast/cookies/local-file-can-set-cookies-expected.txt: Modified. Updated expected results.
  • fast/cookies/local-file-can-set-cookies.html: Modified. Check for existing cookie and set non-persistent cookie.
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r49818 r49819  
     12009-10-19  Jason Yan  <tailofthesun@gmail.com>
     2 
     3         Reviewed by Eric Seidel.
     4 
     5         Fixed issue with LayoutTests/fast/cookies/local-file-can-set-cookies.html
     6         which can fail when the system under test has local file cookies set already.
     7         https://bugs.webkit.org/show_bug.cgi?id=30281
     8 
     9         * fast/cookies/local-file-can-set-cookies-expected.txt: Modified. Updated expected results.
     10         * fast/cookies/local-file-can-set-cookies.html: Modified. Check for existing cookie and set non-persistent cookie.
     11
    1122009-10-19  Shu Chang  <Chang.Shu@nokia.com>
    213
  • trunk/LayoutTests/fast/cookies/local-file-can-set-cookies-expected.txt

    r30635 r49819  
    44
    55
    6 PASS document.cookie is 'ppkcookie1=testcookie'
     6PASS document.cookie.indexOf('ppkcookie1=testcookie') is -1
     7PASS document.cookie.indexOf('ppkcookie1=testcookie') >= 0 is true
    78PASS successfullyParsed is true
    89
  • trunk/LayoutTests/fast/cookies/local-file-can-set-cookies.html

    r35534 r49819  
    1212    description('This test checks that a local file can set cookies.  See: rdar://problem/5379090 REGRESSION: Cannot set cookies for local files');
    1313
    14     var date = new Date();
    15     date.setTime(date.getTime() + (60*1000));
    16     document.cookie = 'ppkcookie1=testcookie; expires=' + date.toGMTString();
    17     shouldBe("document.cookie", "'ppkcookie1=testcookie'");
     14    shouldBe("document.cookie.indexOf('ppkcookie1=testcookie')", "-1");
     15    document.cookie = 'ppkcookie1=testcookie';
     16    shouldBeTrue("document.cookie.indexOf('ppkcookie1=testcookie') >= 0");
    1817
    1918    var successfullyParsed = true;
Note: See TracChangeset for help on using the changeset viewer.