Changeset 80456 in webkit


Ignore:
Timestamp:
Mar 7, 2011 12:19:58 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-03-07 Xianzhu Wang <wangxianzhu@google.com>

Reviewed by Tony Gentilcore.

In layout tests, iframe's onload handler should not use script function
defined after the iframe.
https://bugs.webkit.org/show_bug.cgi?id=54942

Found and fixed more tests in addition to the first patch to bug 54942.
Tried best to avoid expectation changes.

  • editing/execCommand/find-after-replace.html:
  • editing/input/option-page-up-down.html:
  • editing/input/scroll-viewport-page-up-down.html:
  • editing/pasteboard/copy-standalone-image.html:
  • editing/pasteboard/drag-image-to-contenteditable-in-iframe.html:
  • editing/pasteboard/paste-noscript-xhtml.xhtml:
  • editing/selection/drag-in-iframe.html:
  • editing/undo/undo-iframe-location-change.html:
  • fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt:
  • fast/dom/DOMImplementation/createDocument-with-used-doctype.html:
  • fast/dom/Window/window-postmessage-clone-frames.html:
  • fast/dynamic/paused-event-dispatch.html:
  • fast/events/keydown-remove-frame.html:
  • fast/events/mousedown-in-subframe-scrollbar.html:
  • fast/frames/content-opacity-2.html:
  • fast/frames/viewsource-plain-text-tags.html:
  • fast/frames/viewsource-unfinished-tags.html:
  • fast/history/form-submit-in-frame-via-onclick.html:
  • fast/history/form-submit-in-frame.html:
  • fast/xsl/xslt-text-expected.txt:
  • fast/xsl/xslt-text.html:
  • http/tests/messaging/cross-domain-message-send.html:
  • http/tests/misc/cached-scripts-expected.txt:
  • http/tests/misc/cached-scripts.html:
  • http/tests/plugins/post-url-file-expected.txt:
  • http/tests/plugins/post-url-file.html:
  • http/tests/security/listener/xss-inactive-closure-expected.html:
  • http/tests/security/listener/xss-inactive-closure.html:
  • http/tests/security/postMessage/delivery-order.html:
  • http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt:
  • http/tests/security/postMessage/invalid-origin-throws-exception.html:
  • http/tests/security/postMessage/origin-unaffected-by-base-tag.html:
  • http/tests/security/postMessage/target-origin.html:
  • http/tests/security/xss-DENIED-getSVGDocument-iframe.html:
  • http/tests/xmlhttprequest/detaching-frame-2.html:
  • media/media-document-audio-repaint.html:
  • media/media-document-audio-size.html:
  • platform/mac/fast/dom/wrapper-classes-objc.html:
  • platform/mac/fast/loader/non-html-load-event-expected.txt:
  • platform/mac/fast/loader/non-html-load-event.html:
  • scrollbars/hidden-iframe-scrollbar-crash2.html:
  • storage/close-during-stress-test.html:
  • svg/custom/js-update-transform-changes.svg:
Location:
trunk/LayoutTests
Files:
44 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r80455 r80456  
     12011-03-07  Xianzhu Wang  <wangxianzhu@google.com>
     2
     3        Reviewed by Tony Gentilcore.
     4
     5        In layout tests, iframe's onload handler should not use script function
     6        defined after the iframe.
     7        https://bugs.webkit.org/show_bug.cgi?id=54942
     8
     9        Found and fixed more tests in addition to the first patch to bug 54942.
     10        Tried best to avoid expectation changes.
     11
     12        * editing/execCommand/find-after-replace.html:
     13        * editing/input/option-page-up-down.html:
     14        * editing/input/scroll-viewport-page-up-down.html:
     15        * editing/pasteboard/copy-standalone-image.html:
     16        * editing/pasteboard/drag-image-to-contenteditable-in-iframe.html:
     17        * editing/pasteboard/paste-noscript-xhtml.xhtml:
     18        * editing/selection/drag-in-iframe.html:
     19        * editing/undo/undo-iframe-location-change.html:
     20        * fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt:
     21        * fast/dom/DOMImplementation/createDocument-with-used-doctype.html:
     22        * fast/dom/Window/window-postmessage-clone-frames.html:
     23        * fast/dynamic/paused-event-dispatch.html:
     24        * fast/events/keydown-remove-frame.html:
     25        * fast/events/mousedown-in-subframe-scrollbar.html:
     26        * fast/frames/content-opacity-2.html:
     27        * fast/frames/viewsource-plain-text-tags.html:
     28        * fast/frames/viewsource-unfinished-tags.html:
     29        * fast/history/form-submit-in-frame-via-onclick.html:
     30        * fast/history/form-submit-in-frame.html:
     31        * fast/xsl/xslt-text-expected.txt:
     32        * fast/xsl/xslt-text.html:
     33        * http/tests/messaging/cross-domain-message-send.html:
     34        * http/tests/misc/cached-scripts-expected.txt:
     35        * http/tests/misc/cached-scripts.html:
     36        * http/tests/plugins/post-url-file-expected.txt:
     37        * http/tests/plugins/post-url-file.html:
     38        * http/tests/security/listener/xss-inactive-closure-expected.html:
     39        * http/tests/security/listener/xss-inactive-closure.html:
     40        * http/tests/security/postMessage/delivery-order.html:
     41        * http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt:
     42        * http/tests/security/postMessage/invalid-origin-throws-exception.html:
     43        * http/tests/security/postMessage/origin-unaffected-by-base-tag.html:
     44        * http/tests/security/postMessage/target-origin.html:
     45        * http/tests/security/xss-DENIED-getSVGDocument-iframe.html:
     46        * http/tests/xmlhttprequest/detaching-frame-2.html:
     47        * media/media-document-audio-repaint.html:
     48        * media/media-document-audio-size.html:
     49        * platform/mac/fast/dom/wrapper-classes-objc.html:
     50        * platform/mac/fast/loader/non-html-load-event-expected.txt:
     51        * platform/mac/fast/loader/non-html-load-event.html:
     52        * scrollbars/hidden-iframe-scrollbar-crash2.html:
     53        * storage/close-during-stress-test.html:
     54        * svg/custom/js-update-transform-changes.svg:
     55
    1562011-03-06  Fumitoshi Ukai  <ukai@chromium.org>
    257
  • trunk/LayoutTests/editing/execCommand/find-after-replace.html

    r19627 r80456  
     1<body onload="runTest()">
    12<script>
    23if (window.layoutTestController)
     
    45</script>
    56<p>This tests find and replace inside an editable iframe.  You should see 'A B A B' below. With bug 4462420, you would see 'A B B A'.</p>
    6 <iframe onload="runTest()" src="../resources/contenteditable-iframe-src.html"></iframe>
     7<iframe src="../resources/contenteditable-iframe-src.html"></iframe>
    78
    89<script>
     
    2324}
    2425</script>
     26</body>
  • trunk/LayoutTests/editing/input/option-page-up-down.html

    r60268 r80456  
    8181</script>
    8282</head>
    83 <body>
     83<body onload="runTest()">
    8484<div>Page up/down (option+page up/down on Mac) should move the move cursor and scroll the content
    8585in contenteditable elements. This sample covers cursor position move test of a) iframe element containing
    8686contenteditable body, and b) content editable div element.</div>
    87 <iframe src="../resources/contenteditable-iframe-fixed-size-src.html" onload="runTest()"></iframe>
     87<iframe src="../resources/contenteditable-iframe-fixed-size-src.html"></iframe>
    8888<div id="editable" contenteditable="true" class="ahem" style="height:150px; overflow:auto;"></div>
    8989<div id="results"></div>
  • trunk/LayoutTests/editing/input/scroll-viewport-page-up-down.html

    r60268 r80456  
    7777</script>
    7878</head>
    79 <body>
     79<body onload="runTest()">
    8080<div>Page up/down (option+page up/down on Mac) should move the move cursor and scroll the content
    8181in contenteditable elements. This sample covers scroll position test of a) iframe element containing
     
    8484scroll the visible area by placing the cursor position in the middle. All other platforms will scroll by
    8585keeping the cursor aligned with the top edge of the visible area. </div>
    86 <iframe src="../resources/contenteditable-iframe-fixed-size-src.html" onload="runTest()" style="height:150px; padding: 0px;"></iframe>
     86<iframe src="../resources/contenteditable-iframe-fixed-size-src.html" style="height:150px; padding: 0px;"></iframe>
    8787<div id="editable" contenteditable="true" class="ahem" style="height:150px; overflow:auto; padding: 0px; margin: 0px;"></div>
    8888<div id="results"></div>
  • trunk/LayoutTests/editing/pasteboard/copy-standalone-image.html

    r20963 r80456  
    2626</style>
    2727</head>
    28 <body>
     28<body onload="editingTest()">
    2929
    3030<p>This is an automatic test of copying an image document.</p>
     
    3333test is passed.</p>
    3434
    35 <iframe name="imageframe" src="../resources/abe.png" onload="javascript:editingTest()">
     35<iframe name="imageframe" src="../resources/abe.png">
    3636</iframe>
    3737
  • trunk/LayoutTests/editing/pasteboard/drag-image-to-contenteditable-in-iframe.html

    r24921 r80456  
    4242<title>Dragging an image to the end of a content editable div in an iframe</title>
    4343</head>
    44 <body>
     44<body onload="runTest()">
    4545    <p>This tests that we can drag an image into the last position of a content editable div in an iframe that already contains an image, without crashing.</p>
    4646   
    4747    <img id="dragme" src="../resources/abe.png"/>
    48     <iframe id="drag_target" onload="runTest();" src="resources/drag-image-to-contenteditable-iframe.html"></iframe>
     48    <iframe id="drag_target" src="resources/drag-image-to-contenteditable-iframe.html"></iframe>
    4949    <ul id="console"></ul>
    5050</body>
  • trunk/LayoutTests/editing/pasteboard/paste-noscript-xhtml.xhtml

    r53835 r80456  
    22<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    33<html xmlns="http://www.w3.org/1999/xhtml">
     4<body onload="foo()">
    45<div id="description">
    56This test copies the content of an iframe and pastes it
    67in an editable area in an xhtml document and verifies that no script, handlers or javascript urls are copied.
    78</div>
    8 <iframe id="iframe1" src="../resources/htmlcontent.html" onload="foo()"></iframe>
     9<iframe id="iframe1" src="../resources/htmlcontent.html"></iframe>
    910<div id="pastehere" contenteditable="true"></div>
    1011<ul id="console"></ul>
     
    4142}
    4243</script>
     44</body>
    4345</html>
  • trunk/LayoutTests/editing/selection/drag-in-iframe.html

    r56962 r80456  
    11<html>
    2 <body contenteditable="true">
     2<body contenteditable="true" onload="test()">
    33    <p>
    44        This is an automatic pixel test. To test interactively, drag selected text onto the iframe
    55        below and verify that a drag caret appears inside the frame.
    66    </p>
    7     <iframe onload="test()" id="subframe" style="border: 1px solid black;"
     7    <iframe id="subframe" style="border: 1px solid black;"
    88        src="data:text/html,<body contenteditable><span id='target'>There</span> should be a caret here --> <br>See it?</body>"></iframe>
    99    <script>
  • trunk/LayoutTests/editing/undo/undo-iframe-location-change.html

    r79625 r80456  
    6262</script>
    6363
    64 <iframe name="iframe" src="../resources/contenteditable-iframe-src.html" onload="runTest()"></iframe>
     64<body onload="runTest()">
     65<iframe name="iframe" src="../resources/contenteditable-iframe-src.html"></iframe>
    6566<ul id="console"></ul>
     67</body>
  • trunk/LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype-expected.txt

    r79625 r80456  
    1 
    21PASS
    32
  • trunk/LayoutTests/fast/dom/DOMImplementation/createDocument-with-used-doctype.html

    r79625 r80456  
    2929}
    3030</script>
     31<div id="result">FAIL</div>
    3132<iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test()"></iframe>
    32 <div id="result">FAIL</div>
    3333</body>
  • trunk/LayoutTests/fast/dom/Window/window-postmessage-clone-frames.html

    r75298 r80456  
    55<input type="file" id="fileInput">
    66<div id="console"></div>
    7 <iframe src="resources/window-postmessage-clone-frames-frame.html" onload="startTest()"></iframe>
    87<script>
    98if (window.layoutTestController) {
     
    118117}
    119118</script>
     119<iframe src="resources/window-postmessage-clone-frames-frame.html" onload="startTest()"></iframe>
    120120</body>
    121121</html>
  • trunk/LayoutTests/fast/dynamic/paused-event-dispatch.html

    r79625 r80456  
     1<body onload="test()">
    12<script>
    23    function overflowChanged()
     
    3738</p>
    3839<div>
    39     <iframe onload="test()" style="width: 100%;" src="resources/paused-event-dispatch-iframe.html"></iframe>
     40    <iframe style="width: 100%;" src="resources/paused-event-dispatch-iframe.html"></iframe>
    4041</div>
    4142<div id="bottomBox" style="position: absolute; left: 0; top: 5000px; height: 10px; width: 10px;"></div>
     
    4445</div>
    4546<div id="result">FAIL</div>
     47</body>
  • trunk/LayoutTests/fast/events/keydown-remove-frame.html

    r36810 r80456  
    44    below should disappear and Safari should not crash.
    55</p>
    6 <iframe onload="test()" id="iframe" src="resources/keydown-remove-frame-iframe.html"></iframe>
    76<script>
    87    function test() {
     
    1413    }
    1514</script>
     15<iframe onload="test()" id="iframe" src="resources/keydown-remove-frame-iframe.html"></iframe>
  • trunk/LayoutTests/fast/events/mousedown-in-subframe-scrollbar.html

    r58937 r80456  
    1 <body>
     1<body onload="test()">
    22    <p>This tests that clicking on a scrollbar in a frame does not clear selections in the frame.</p>
    3     <iframe id="fr" onload="test()" src="resources/mousedown-in-subframe-scrollbar.html"></iframe>
     3    <iframe id="fr" src="resources/mousedown-in-subframe-scrollbar.html"></iframe>
    44    <div id="results"></div>
    55</body>
  • trunk/LayoutTests/fast/frames/content-opacity-2.html

    r43713 r80456  
     1<body onload="test()">
    12<div style="float: left; background-image: url(../replaced/resources/1x1-green.png)">
    2     <iframe id="iframe" onload="test()" src="resources/empty-body.html"></iframe>
     3    <iframe id="iframe" src="resources/empty-body.html"></iframe>
    34    <script>
    45        function test()
     
    2021    </script>
    2122</div>
     23</body>
  • trunk/LayoutTests/fast/frames/viewsource-plain-text-tags.html

    r33509 r80456  
    3333<p>None of the "&lt;test&gt;" strings shown below should be colorized like HTML.</p>
    3434<hr>
     35<div id="result"></div>
     36<hr>
    3537<iframe viewsource src="resources/viewsource-frame-2.html" height="250" onload="report(this)"></iframe>
    36 <hr>
    37 <div id="result"></div>
    3838</body>
    3939</html>
  • trunk/LayoutTests/fast/frames/viewsource-unfinished-tags.html

    r44608 r80456  
    3636<p>"foobar" should be seen after the &lt;script&gt; tag and &lt;textarea&gt; tag.</p>
    3737<hr>
    38 <iframe viewsource src="resources/viewsource-frame-unfinished-script.html" height="250" onload="report(this, 'script')"></iframe>
    39 <iframe viewsource src="resources/viewsource-frame-unfinished-textarea.html" height="250" onload="report(this, 'textarea')"></iframe>
    40 <hr>
    4138<div id="result">
    4239<div id="script_result"></div>
    4340<div id="textarea_result"></div>
     41<hr>
     42<iframe viewsource src="resources/viewsource-frame-unfinished-script.html" height="250" onload="report(this, 'script')"></iframe>
     43<iframe viewsource src="resources/viewsource-frame-unfinished-textarea.html" height="250" onload="report(this, 'textarea')"></iframe>
    4444</div>
    4545</body>
  • trunk/LayoutTests/fast/history/form-submit-in-frame-via-onclick.html

    r68609 r80456  
    77
    88<pre id="console"></pre>
    9 
    10 <iframe id="the-frame" src="resources/form-with-onclick-submit.html" onload="submitForm()"></iframe>
    119
    1210<script>
     
    4139}
    4240</script>
     41
     42<iframe id="the-frame" src="resources/form-with-onclick-submit.html" onload="submitForm()"></iframe>
     43
    4344</body>
    4445</html>
  • trunk/LayoutTests/fast/history/form-submit-in-frame.html

    r68609 r80456  
    77
    88<pre id="console"></pre>
    9 
    10 <iframe id="the-frame" src="resources/form-with-input-submit.html" onload="submitForm()"></iframe>
    119
    1210<script>
     
    4139}
    4240</script>
     41
     42<iframe id="the-frame" src="resources/form-with-input-submit.html" onload="submitForm()"></iframe>
     43
    4344</body>
    4445</html>
  • trunk/LayoutTests/fast/xsl/xslt-text-expected.txt

    r33451 r80456  
    1 
    21
    32<head xmlns="http://www.w3.org/1999/xhtml"><title></title></head>
  • trunk/LayoutTests/fast/xsl/xslt-text.html

    r29920 r80456  
    1616    }
    1717</script>
     18<pre id="console"></pre>
    1819<iframe onload="dumpDOM(this.contentDocument)" src="resources/xslt-text.xml"></iframe>
    19 <pre id="console"></pre>
  • trunk/LayoutTests/http/tests/messaging/cross-domain-message-send.html

    r33006 r80456  
    2828   
    2929</script>
    30 <body>
     30<body onload="postIt()">
    3131   
    32     <iframe src="http://localhost:8000/messaging/resources/cross-domain-message-receive.html" id="receiver" onload="postIt();"></iframe>
     32    <iframe src="http://localhost:8000/messaging/resources/cross-domain-message-receive.html" id="receiver"></iframe>
    3333   
    3434    <div id="result">waiting...</div>
  • trunk/LayoutTests/http/tests/misc/cached-scripts-expected.txt

    r24645 r80456  
    1 
    21This tests that when script that calls document.write to write out two new script tags while being parsed causes both scripts to be executed, even if the first one is cached.
    32SUCCESS
     3
  • trunk/LayoutTests/http/tests/misc/cached-scripts.html

    r24645 r80456  
    4545}
    4646</script>
     47<div>This tests that when script that calls document.write to write out two new script tags while being parsed causes both scripts to be executed, even if the first one is cached.</div>
     48<div id="result">FAILURE</div>
    4749<iframe src="resources/cached-scripts-subframe.html" onload="runTest(this)">
    4850</iframe>
    49 <div>This tests that when script that calls document.write to write out two new script tags while being parsed causes both scripts to be executed, even if the first one is cached.</div>
    50 <div id="result">FAILURE</div>
    5151</html>
  • trunk/LayoutTests/http/tests/plugins/post-url-file-expected.txt

    r33076 r80456  
    1  
     1
    22
    33
  • trunk/LayoutTests/http/tests/plugins/post-url-file.html

    r33076 r80456  
    1919    }
    2020</script>
    21 <iframe id="result" name="result" onload="test()" src="data:text/html,FAIL"></iframe>
    2221<embed name="plg" type="application/x-webkit-test-netscape"></embed>
    2322<pre id="log"></pre>
     23<iframe id="result" name="result" onload="test()" src="data:text/html,FAIL"></iframe>
  • trunk/LayoutTests/http/tests/security/listener/xss-inactive-closure-expected.txt

    r52497 r80456  
    33You should see PASSED at the end of page if the test passes.
    44
     5PASSED
    56 
    6 PASSED
  • trunk/LayoutTests/http/tests/security/listener/xss-inactive-closure.html

    r52497 r80456  
    2828    <p>This tests that when a frame navigates to a new page, closures in the old page cannot access page content of the new page if there are from different domains.</p>
    2929    <p>You should see PASSED at the end of page if the test passes.</p>
     30    <div id="result">PASSED</div>
    3031    <iframe id="targetChild" src=""></iframe>
    3132    <iframe src="resources/childWithButton.html" onload="onloadForButtonChild();"></iframe>
    32     <div id="result">PASSED</div>
    3333</body>
    3434</html>
  • trunk/LayoutTests/http/tests/security/postMessage/delivery-order.html

    r33006 r80456  
    2323</script>
    2424<base href="http://www.example.com/">
    25 <body>
     25<body onload="test()">
    2626<div>window.location.href = <script>document.write(document.location.href);</script></div>
    27 <div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
     27<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html"
    2828  id="child" width="800" height="300" style="border: 1px solid black;">
    2929</iframe></div>
  • trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception-expected.txt

    r58796 r80456  
    44
    55window.location.href = http://127.0.0.1:8000/security/postMessage/invalid-origin-throws-exception.html
    6 
    76waiting...
    87Encountered exception Error: SYNTAX_ERR: DOM Exception 12 while posting message to ''.
     
    1312Posted message to 'http:' without any exceptions.
    1413Received message: data="Received message: data="done" origin="http://127.0.0.1:8000"" origin="http://localhost:8000"
     14
  • trunk/LayoutTests/http/tests/security/postMessage/invalid-origin-throws-exception.html

    r40221 r80456  
    3939<body>
    4040<div>window.location.href = <script>document.write(window.location.href);</script></div>
     41<div id="result">waiting...</div>
    4142<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
    4243  id="child" width="800" height="300" style="border: 1px solid black;">
    4344</iframe></div>
    44 <div id="result">waiting...</div>
    4545</body>
    4646</html>
  • trunk/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-base-tag.html

    r33006 r80456  
    2020</script>
    2121<base href="http://www.example.com/">
    22 <body>
     22<body onload="test()">
    2323<div>window.location.href = <script>document.write(window.location.href);</script></div>
    24 <div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
     24<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html"
    2525  id="child" width="800" height="300" style="border: 1px solid black;">
    2626</iframe></div>
  • trunk/LayoutTests/http/tests/security/postMessage/target-origin.html

    r33006 r80456  
    4646}
    4747</script>
    48 <body>
     48<body onload="test()">
    4949<div>window.location.href = <script>document.write(window.location.href);</script></div>
    50 <div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
     50<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html"
    5151  id="child" width="800" height="300" style="border: 1px solid black;">
    5252</iframe></div>
  • trunk/LayoutTests/http/tests/security/xss-DENIED-getSVGDocument-iframe.html

    r48240 r80456  
    1616</script>
    1717</head>
    18 <body>
    19 <iframe onload="runTest()"
    20         id="svgobject" src="http://localhost:8080/security/resources/empty-svg.php"
     18<body onload="runTest()">
     19<iframe id="svgobject" src="http://localhost:8080/security/resources/empty-svg.php"
    2120        width="400" height="300"></iframe>
    2221<div id="output"></div>
  • trunk/LayoutTests/http/tests/xmlhttprequest/detaching-frame-2.html

    r42992 r80456  
    11<!doctype html>
    2 <body>
     2<body onload="test()">
    33<p><a href="https://bugs.webkit.org/show_bug.cgi?id=25420">bug 25240</a></p>
    44<script>
     
    3030 }
    3131</script>
    32 <iframe src="resources/echo-host.php" onload="test()"></iframe>
     32<iframe src="resources/echo-host.php"></iframe>
    3333<div id=result>FAIL: Script did not run.</div>
    3434</body>
  • trunk/LayoutTests/media/media-document-audio-repaint.html

    r79359 r80456  
    1 <p>
    2     This tests that in a standalone media document with audio content, the media element repaints correctly
    3     while playing.
    4 </p>
    5 <iframe src="content/silence.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
    61<script>
    72    if (window.layoutTestController)
     
    2419    }
    2520</script>
     21<p>
     22    This tests that in a standalone media document with audio content, the media element repaints correctly
     23    while playing.
     24</p>
     25<iframe src="content/silence.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
     26<script>// To produce the same layout as before iframe was moved down to avoid rebaselines of different platforms.
     27// https://bugs.webkit.org/show_bug.cgi?id=54942
     28</script>
  • trunk/LayoutTests/media/media-document-audio-size.html

    r58543 r80456  
    44</p>
    55<pre id="console"></pre>
    6 <iframe src="content/test.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
    76<script>
    87    if (window.layoutTestController) {
     
    2928    }
    3029</script>
     30<iframe src="content/test.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
  • trunk/LayoutTests/platform/mac/fast/dom/wrapper-classes-objc.html

    r76208 r80456  
    1313</head>
    1414<body>
    15 <p id="description"></p>
    16 <div id="console"></div>
    17 <iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:application/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe>
    1815<script>
    1916
     
    317314
    318315</script>
     316<p id="description"></p>
     317<div id="console"></div>
     318<iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:application/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe>
    319319</body>
    320320</html>
  • trunk/LayoutTests/platform/mac/fast/loader/non-html-load-event-expected.txt

    r46207 r80456  
     1PASS
    12
    2 PASS
  • trunk/LayoutTests/platform/mac/fast/loader/non-html-load-event.html

    r46208 r80456  
    88    }
    99</script>
     10<div id="result">FAIL</div>
    1011<iframe src="../../../../fast/images/resources/green_rectangle.pdf" onload="frameLoaded()"></iframe>
    11 <div id="result">FAIL</div>
  • trunk/LayoutTests/scrollbars/hidden-iframe-scrollbar-crash2.html

    r64780 r80456  
    77}
    88</style>
    9 
    10 <body>
    11 <iframe id="iframe" src="resources/hidden-iframe-scrollbar-crash2.html" width="50px" onload="load()"></iframe>
    12 
    13 <p>This tests to make sure that an iframe with custom scrollbars that starts
    14 an image load and is hidden before the image load is complete doesn't crash
    15 when the image load completes.  The test passes if it does not crash.</p>
    16 </body>
    179
    1810<script>
     
    3022}
    3123</script>
     24
     25<body>
     26<iframe id="iframe" src="resources/hidden-iframe-scrollbar-crash2.html" width="50px" onload="load()"></iframe>
     27
     28<p>This tests to make sure that an iframe with custom scrollbars that starts
     29an image load and is hidden before the image load is complete doesn't crash
     30when the image load completes.  The test passes if it does not crash.</p>
     31</body>
  • trunk/LayoutTests/storage/close-during-stress-test.html

    r40632 r80456  
    33<p>A JavaScript failure on the console is expected, however, as the global object is cleared when closing a frame.
    44It actually helps to cause database activity by throwing an exception from a callback.</p>
    5 <iframe src="resources/stress-frame.html" onload="startTest()"></iframe>
    65<script>
    76if (window.layoutTestController) {
     
    1716}
    1817</script>
     18<iframe src="resources/stress-frame.html" onload="startTest()"></iframe>
    1919</body>
  • trunk/LayoutTests/svg/custom/js-update-transform-changes.svg

    r26410 r80456  
    22<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
    33<svg width="450" height="450" xmlns="http://www.w3.org/2000/svg">
     4
     5<polygon transform="translate(-1000 -1000)" id="polygon" fill="none" stroke="#00FF00" stroke-width="8" points="270,265 300,285 320,265 340,285 280,320 390,320 420,280 280,225"/>
    46
    57<script>
     
    2224</script>
    2325
    24 <polygon transform="translate(-1000 -1000)" id="polygon" fill="none" stroke="#00FF00" stroke-width="8" points="270,265 300,285 320,265 340,285 280,320 390,320 420,280 280,225"/>
    25 
    2626</svg>
Note: See TracChangeset for help on using the changeset viewer.