Changeset 64953 in webkit


Ignore:
Timestamp:
Aug 8, 2010 10:56:08 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-08-08 Mihai Parparita <mihaip@chromium.org>

Reviewed by Adam Barth.

fast/events/onunload-back-to-page-cache.html does not pass with GTK DRT
https://bugs.webkit.org/show_bug.cgi?id=43692

Update onunload-back-to-page-cache.html to set the frame name later,
so that the onunload handler console message doesn't have it. Also
include a message about what exactly we're testing.

  • fast/events/onunload-back-to-page-cache-expected.txt:
  • fast/events/script-tests/onunload-back-to-page-cache.js: (onpageshow):
Location:
trunk/LayoutTests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r64945 r64953  
     12010-08-08  Mihai Parparita  <mihaip@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        fast/events/onunload-back-to-page-cache.html does not pass with GTK DRT
     6        https://bugs.webkit.org/show_bug.cgi?id=43692
     7       
     8        Update onunload-back-to-page-cache.html to set the frame name later,
     9        so that the onunload handler console message doesn't have it. Also
     10        include a message about what exactly we're testing.
     11
     12        * fast/events/onunload-back-to-page-cache-expected.txt:
     13        * fast/events/script-tests/onunload-back-to-page-cache.js:
     14        (onpageshow):
     15
    1162010-08-08  Adam Barth  <abarth@webkit.org>
    217
  • trunk/LayoutTests/fast/events/onunload-back-to-page-cache-expected.txt

    r64939 r64953  
    1 main frame "navigated" - has 1 onunload handler(s)
     1main frame - has 1 onunload handler(s)
    22Simulates flow from a page that's in the page cache to one that's not, and then back to the page cached page.
    33
     
    55
    66
     7PASS WebTiming asserts in FrameLoader.cpp did not fire
    78PASS successfullyParsed is true
    89
  • trunk/LayoutTests/fast/events/script-tests/onunload-back-to-page-cache.js

    r64939 r64953  
    33onpageshow = function(event) {
    44    if (window.name == 'navigated') {
     5        testPassed('WebTiming asserts in FrameLoader.cpp did not fire');
    56        finishJSTest();
    67    } else {
    78        if (window.layoutTestController)
    89            layoutTestController.overridePreference('WebKitUsesPageCachePreferenceKey', 1);
    9         window.name = 'navigated';
    10         setTimeout(function() {location.href = 'data:text/html,<script>onunload=function() {},onload=function(){history.back();}<' + '/script>';}, 0);
     10        setTimeout(function() {location.href = 'data:text/html,<script>onunload=function() {},onload=function(){window.name = \'navigated\';history.back();}<' + '/script>';}, 0);
    1111    }
    1212}
Note: See TracChangeset for help on using the changeset viewer.