Changeset 24063 in webkit


Ignore:
Timestamp:
Jul 6, 2007 10:08:50 AM (17 years ago)
Author:
andersca
Message:

Reviewed by Alexey.

<rdar://problem/5313512> fast/frames/frame-set-same-{location,src}.html sometimes hang on Leopard


Make these tests more robust against frames loading in a different order. Also, turn the tests
into text tests and remove them from the Leopard skipped list.


  • fast/frames/frame-set-same-location-expected.checksum: Removed.
  • fast/frames/frame-set-same-location-expected.png: Removed.
  • fast/frames/frame-set-same-location-expected.txt:
  • fast/frames/frame-set-same-location.html:
  • fast/frames/frame-set-same-src-expected.checksum: Removed.
  • fast/frames/frame-set-same-src-expected.png: Removed.
  • fast/frames/frame-set-same-src-expected.txt:
  • fast/frames/frame-set-same-src.html:
  • mac/leopard/Skipped:
Location:
trunk/LayoutTests
Files:
4 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r24056 r24063  
     12007-07-06  Anders Carlsson  <andersca@apple.com>
     2
     3        Reviewed by Alexey.
     4
     5        <rdar://problem/5313512> fast/frames/frame-set-same-{location,src}.html sometimes hang on Leopard
     6       
     7        Make these tests more robust against frames loading in a different order. Also, turn the tests
     8        into text tests and remove them from the Leopard skipped list.
     9       
     10        * fast/frames/frame-set-same-location-expected.checksum: Removed.
     11        * fast/frames/frame-set-same-location-expected.png: Removed.
     12        * fast/frames/frame-set-same-location-expected.txt:
     13        * fast/frames/frame-set-same-location.html:
     14        * fast/frames/frame-set-same-src-expected.checksum: Removed.
     15        * fast/frames/frame-set-same-src-expected.png: Removed.
     16        * fast/frames/frame-set-same-src-expected.txt:
     17        * fast/frames/frame-set-same-src.html:
     18        * mac/leopard/Skipped:
     19
    1202007-07-06  Mark Rowe  <mrowe@apple.com>
    221
  • trunk/LayoutTests/fast/frames/frame-set-same-location-expected.txt

    r20271 r24063  
    1 layer at (0,0) size 800x600
    2   RenderView at (0,0) size 800x600
    3 layer at (0,0) size 800x600
    4   RenderBlock {HTML} at (0,0) size 800x600
    5     RenderFrameSet {FRAMESET} at (0,0) size 800x600
    6       RenderFrame {FRAME} at (0,0) size 397x600
    7         layer at (0,0) size 397x600
    8           RenderView at (0,0) size 397x600
    9         layer at (0,0) size 397x600
    10           RenderBlock {HTML} at (0,0) size 397x600
    11             RenderBody {BODY} at (8,8) size 381x576
    12               RenderBlock {P} at (0,0) size 381x36
    13                 RenderText {#text} at (0,0) size 53x18
    14                   text run at (0,0) width 53: "Test for "
    15                 RenderInline {A} at (0,0) size 60x18 [color=#0000EE]
    16                   RenderText {#text} at (53,0) size 60x18
    17                     text run at (53,0) width 60: "bug 3400"
    18                 RenderText {#text} at (113,0) size 366x36
    19                   text run at (113,0) width 253: ": setting the .src of an iframe to the same"
    20                   text run at (0,18) width 172: "value does not reload page."
    21               RenderBlock {P} at (0,52) size 381x36
    22                 RenderText {#text} at (0,0) size 375x36
    23                   text run at (0,0) width 375: "Testing that setting contentWindow.location.href of a frame"
    24                   text run at (0,18) width 152: "to the same value works"
    25               RenderBlock {P} at (0,104) size 381x18
    26                 RenderText {#text} at (0,0) size 71x18
    27                   text run at (0,0) width 71: "SUCCESS"
    28       RenderFrame {FRAME} at (403,0) size 397x600
    29         layer at (0,0) size 397x600
    30           RenderView at (0,0) size 397x600
    31         layer at (0,0) size 397x600
    32           RenderBlock {HTML} at (0,0) size 397x600
    33             RenderBody {BODY} at (8,8) size 381x584 [bgcolor=#800080]
     1Test for bug 3400: setting the .src of an iframe to the same value does not reload page.
     2
     3Testing that setting contentWindow.location.href of a frame to the same value works
     4
     5SUCCESS
  • trunk/LayoutTests/fast/frames/frame-set-same-location.html

    r12753 r24063  
    88        layoutTestController.waitUntilDone();
    99
    10     function reportSuccess() {
    11                 console = document.getElementById("left_frame").contentWindow.document.getElementById("console");
    12                 if (console.firstChild.nodeValue == "FAILURE") {
     10    function rightFrameLoaded() {
     11        rightFrameLoadCount++;
     12        if (rightFrameLoadCount == 2) {
     13            // Console is set by runTest
     14            console.firstChild.nodeValue = "SUCCESS";
     15           
     16            if (window.layoutTestController) {
     17                // Put the test result in the main document so we can dump as text
     18                var text = console.ownerDocument.documentElement.innerHTML;
     19                document.open();
     20                document.write(text);
     21                document.close();
     22               
     23                layoutTestController.dumpAsText();
     24                layoutTestController.notifyDone();
     25            }
     26        }
     27    }
     28   
     29    function runTest() {
     30        console = document.getElementById("left_frame").contentWindow.document.getElementById("console");
     31        if (console.firstChild.nodeValue == "FAILURE") {
    1332            console.firstChild.nodeValue = "PROCESSING...";
    1433            document.getElementById("right_frame").contentWindow.location.href = "resources/purple.html";
    1534        } else {
    16             console.firstChild.nodeValue = "SUCCESS";
    17             if (window.layoutTestController)
    18                 layoutTestController.notifyDone();
     35            alert('TEST FAILURE: Unexpected onload call')
    1936        }
    2037    }
    2138   
     39    rightFrameLoadCount = 0;
    2240</script>
    2341</head>
    24 <frameset cols="50%,*">
     42<frameset onload="runTest()" cols="50%,*">
    2543<frame id="left_frame" src="data:text/html,<body><p>Test for <a href='http://bugzilla.opendarwin.org/show_bug.cgi?id=3400'>bug 3400</a>: setting the .src of an iframe to the same value does not reload page.</p><p>Testing that setting contentWindow.location.href of a frame to the same value works</p><p id=console>FAILURE</p></body>">
    26 <frame id="right_frame" onload="javascript:reportSuccess()" src="resources/purple.html"></iframe>
     44<frame id="right_frame" onload="javascript:rightFrameLoaded()" src="resources/purple.html"></frame>
    2745</frameset>
    2846</html>
  • trunk/LayoutTests/fast/frames/frame-set-same-src-expected.txt

    r20271 r24063  
    1 layer at (0,0) size 800x600
    2   RenderView at (0,0) size 800x600
    3 layer at (0,0) size 800x600
    4   RenderBlock {HTML} at (0,0) size 800x600
    5     RenderFrameSet {FRAMESET} at (0,0) size 800x600
    6       RenderFrame {FRAME} at (0,0) size 397x600
    7         layer at (0,0) size 397x600
    8           RenderView at (0,0) size 397x600
    9         layer at (0,0) size 397x600
    10           RenderBlock {HTML} at (0,0) size 397x600
    11             RenderBody {BODY} at (8,8) size 381x576
    12               RenderBlock {P} at (0,0) size 381x36
    13                 RenderText {#text} at (0,0) size 53x18
    14                   text run at (0,0) width 53: "Test for "
    15                 RenderInline {A} at (0,0) size 60x18 [color=#0000EE]
    16                   RenderText {#text} at (53,0) size 60x18
    17                     text run at (53,0) width 60: "bug 3400"
    18                 RenderText {#text} at (113,0) size 366x36
    19                   text run at (113,0) width 253: ": setting the .src of an iframe to the same"
    20                   text run at (0,18) width 172: "value does not reload page."
    21               RenderBlock {P} at (0,52) size 381x36
    22                 RenderText {#text} at (0,0) size 341x36
    23                   text run at (0,0) width 341: "Testing that setting an src of a frame to the same value"
    24                   text run at (0,18) width 39: "works"
    25               RenderBlock {P} at (0,104) size 381x18
    26                 RenderText {#text} at (0,0) size 71x18
    27                   text run at (0,0) width 71: "SUCCESS"
    28       RenderFrame {FRAME} at (403,0) size 397x600
    29         layer at (0,0) size 397x600
    30           RenderView at (0,0) size 397x600
    31         layer at (0,0) size 397x600
    32           RenderBlock {HTML} at (0,0) size 397x600
    33             RenderBody {BODY} at (8,8) size 381x584 [bgcolor=#800080]
     1Test for bug 3400: setting the .src of an iframe to the same value does not reload page.
     2
     3Testing that setting an src of a frame to the same value works
     4
     5SUCCESS
  • trunk/LayoutTests/fast/frames/frame-set-same-src.html

    r12753 r24063  
    88        layoutTestController.waitUntilDone();
    99
    10     function reportSuccess() {
    11                 console = document.getElementById("left_frame").contentWindow.document.getElementById("console");
    12                 if (console.firstChild.nodeValue == "FAILURE") {
     10    function rightFrameLoaded() {
     11        rightFrameLoadCount++;
     12        if (rightFrameLoadCount == 2) {
     13            // Console is set by runTest
     14            console.firstChild.nodeValue = "SUCCESS";
     15
     16            if (window.layoutTestController) {
     17                // Put the test result in the main document so we can dump as text
     18                var text = console.ownerDocument.documentElement.innerHTML;
     19                document.open();
     20                document.write(text);
     21                document.close();
     22
     23                layoutTestController.dumpAsText();
     24                layoutTestController.notifyDone();
     25            }
     26        }
     27    }
     28
     29    function runTest() {
     30        console = document.getElementById("left_frame").contentWindow.document.getElementById("console");
     31        if (console.firstChild.nodeValue == "FAILURE") {
    1332            console.firstChild.nodeValue = "PROCESSING...";
    1433            document.getElementById("right_frame").src = "resources/purple.html";
    1534        } else {
    16             console.firstChild.nodeValue = "SUCCESS";
    17             if (window.layoutTestController)
    18                 layoutTestController.notifyDone();
     35            alert('TEST FAILURE: Unexpected onload call')
    1936        }
    2037    }
    2138   
     39    rightFrameLoadCount = 0;
    2240</script>
    2341</head>
    24 <frameset cols="50%,*">
     42<frameset onload="runTest()" cols="50%,*">
    2543<frame id="left_frame" src="data:text/html,<body><p>Test for <a href='http://bugzilla.opendarwin.org/show_bug.cgi?id=3400'>bug 3400</a>: setting the .src of an iframe to the same value does not reload page.</p><p>Testing that setting an src of a frame to the same value works</p><p id=console>FAILURE</p></body>">
    26 <frame id="right_frame" onload="javascript:reportSuccess()" src="resources/purple.html"></iframe>
     44<frame id="right_frame" onload="javascript:rightFrameLoaded()" src="resources/purple.html"></frame>
    2745</frameset>
    2846</html>
  • trunk/LayoutTests/mac/leopard/Skipped

    r24036 r24063  
    6262http/tests/xmlhttprequest/basic-auth.html
    6363
    64 # <rdar://problem/5313512> fast/frames/frame-set-same-{location,src}.html sometimes hangs on Leopard
    65 fast/frames/frame-set-same-location.html
    66 fast/frames/frame-set-same-src.html
    67 
    6864# <rdar://problem/5313531> editing/pasteboard/copy-in-password-field.html sometimes fails on Leopard
    6965editing/pasteboard/copy-in-password-field.html
Note: See TracChangeset for help on using the changeset viewer.