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:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent aa924883
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:
2011-03-06 Fumitoshi Ukai <ukai@chromium.org>
Unreviewed, update chromium test expectations.
......
<body onload="runTest()">
<script>
if (window.layoutTestController)
layoutTestController.dumpEditingCallbacks();
</script>
<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>
<iframe onload="runTest()" src="../resources/contenteditable-iframe-src.html"></iframe>
<iframe src="../resources/contenteditable-iframe-src.html"></iframe>
<script>
function runTest() {
......@@ -22,3 +23,4 @@ function runTest() {
doc.execCommand("Paste");
}
</script>
</body>
......@@ -80,11 +80,11 @@ function runCursorMoveTest(testName, frame, selectionSource)
}
</script>
</head>
<body>
<body onload="runTest()">
<div>Page up/down (option+page up/down on Mac) should move the move cursor and scroll the content
in contenteditable elements. This sample covers cursor position move test of a) iframe element containing
contenteditable body, and b) content editable div element.</div>
<iframe src="../resources/contenteditable-iframe-fixed-size-src.html" onload="runTest()"></iframe>
<iframe src="../resources/contenteditable-iframe-fixed-size-src.html"></iframe>
<div id="editable" contenteditable="true" class="ahem" style="height:150px; overflow:auto;"></div>
<div id="results"></div>
</body>
\ No newline at end of file
</body>
......@@ -76,14 +76,14 @@ function runScrollingTest(testName, frame, offsets, scrollFunction) {
}
</script>
</head>
<body>
<body onload="runTest()">
<div>Page up/down (option+page up/down on Mac) should move the move cursor and scroll the content
in contenteditable elements. This sample covers scroll position test of a) iframe element containing
contenteditable body and b) content editable div element. Even though the cursor will move exactly to
the same location on all platforms (covered by test option-page-up-down.html), please note that Mac will
scroll the visible area by placing the cursor position in the middle. All other platforms will scroll by
keeping the cursor aligned with the top edge of the visible area. </div>
<iframe src="../resources/contenteditable-iframe-fixed-size-src.html" onload="runTest()" style="height:150px; padding: 0px;"></iframe>
<iframe src="../resources/contenteditable-iframe-fixed-size-src.html" style="height:150px; padding: 0px;"></iframe>
<div id="editable" contenteditable="true" class="ahem" style="height:150px; overflow:auto; padding: 0px; margin: 0px;"></div>
<div id="results"></div>
</body>
\ No newline at end of file
</body>
......@@ -25,14 +25,14 @@ iframe {
}
</style>
</head>
<body>
<body onload="editingTest()">
<p>This is an automatic test of copying an image document.</p>
<p>To perform this test manually, click once in the image frame, choose Edit -> Copy
then click in the red box and paste the image. If the image pastes successfully the
test is passed.</p>
<iframe name="imageframe" src="../resources/abe.png" onload="javascript:editingTest()">
<iframe name="imageframe" src="../resources/abe.png">
</iframe>
<div id="dest" class="editable" contenteditable="true"> </div>
......
......@@ -41,11 +41,11 @@ function runTest() {
</script>
<title>Dragging an image to the end of a content editable div in an iframe</title>
</head>
<body>
<body onload="runTest()">
<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>
<img id="dragme" src="../resources/abe.png"/>
<iframe id="drag_target" onload="runTest();" src="resources/drag-image-to-contenteditable-iframe.html"></iframe>
<iframe id="drag_target" src="resources/drag-image-to-contenteditable-iframe.html"></iframe>
<ul id="console"></ul>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body onload="foo()">
<div id="description">
This test copies the content of an iframe and pastes it
in an editable area in an xhtml document and verifies that no script, handlers or javascript urls are copied.
</div>
<iframe id="iframe1" src="../resources/htmlcontent.html" onload="foo()"></iframe>
<iframe id="iframe1" src="../resources/htmlcontent.html"></iframe>
<div id="pastehere" contenteditable="true"></div>
<ul id="console"></ul>
<script>
......@@ -40,4 +41,5 @@ function log(str) {
console.appendChild(li);
}
</script>
</body>
</html>
<html>
<body contenteditable="true">
<body contenteditable="true" onload="test()">
<p>
This is an automatic pixel test. To test interactively, drag selected text onto the iframe
below and verify that a drag caret appears inside the frame.
</p>
<iframe onload="test()" id="subframe" style="border: 1px solid black;"
<iframe id="subframe" style="border: 1px solid black;"
src="data:text/html,<body contenteditable><span id='target'>There</span> should be a caret here --> <br>See it?</body>"></iframe>
<script>
function dragAndDrop()
......
......@@ -61,5 +61,7 @@ if (window.layoutTestController) {
</script>
<iframe name="iframe" src="../resources/contenteditable-iframe-src.html" onload="runTest()"></iframe>
<body onload="runTest()">
<iframe name="iframe" src="../resources/contenteditable-iframe-src.html"></iframe>
<ul id="console"></ul>
</body>
......@@ -28,6 +28,6 @@ function test()
}
}
</script>
<iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test()"></iframe>
<div id="result">FAIL</div>
<iframe src="resources/createDocument-with-used-doctype-frame.html" onload="test()"></iframe>
</body>
......@@ -4,7 +4,6 @@
<div id="description"></div>
<input type="file" id="fileInput">
<div id="console"></div>
<iframe src="resources/window-postmessage-clone-frames-frame.html" onload="startTest()"></iframe>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
......@@ -117,5 +116,6 @@ function startTest() {
tryPostMessage('"done"');
}
</script>
<iframe src="resources/window-postmessage-clone-frames-frame.html" onload="startTest()"></iframe>
</body>
</html>
<body onload="test()">
<script>
function overflowChanged()
{
......@@ -36,10 +37,11 @@
ASSERT in ~FrameView while viewing/reloading WICD test case</i>.
</p>
<div>
<iframe onload="test()" style="width: 100%;" src="resources/paused-event-dispatch-iframe.html"></iframe>
<iframe style="width: 100%;" src="resources/paused-event-dispatch-iframe.html"></iframe>
</div>
<div id="bottomBox" style="position: absolute; left: 0; top: 5000px; height: 10px; width: 10px;"></div>
<div style="height: 100px; width: 100px; overflow: auto;" id="overflow">
<div style="height: 200px;" id="tallBox"></div>
</div>
<div id="result">FAIL</div>
</body>
......@@ -3,7 +3,6 @@
event processing. To test manually, press any letter key. The iframe
below should disappear and Safari should not crash.
</p>
<iframe onload="test()" id="iframe" src="resources/keydown-remove-frame-iframe.html"></iframe>
<script>
function test() {
document.getElementById("iframe").focus();
......@@ -13,3 +12,4 @@
}
}
</script>
<iframe onload="test()" id="iframe" src="resources/keydown-remove-frame-iframe.html"></iframe>
<body>
<body onload="test()">
<p>This tests that clicking on a scrollbar in a frame does not clear selections in the frame.</p>
<iframe id="fr" onload="test()" src="resources/mousedown-in-subframe-scrollbar.html"></iframe>
<iframe id="fr" src="resources/mousedown-in-subframe-scrollbar.html"></iframe>
<div id="results"></div>
</body>
<script>
......
<body onload="test()">
<div style="float: left; background-image: url(../replaced/resources/1x1-green.png)">
<iframe id="iframe" onload="test()" src="resources/empty-body.html"></iframe>
<iframe id="iframe" src="resources/empty-body.html"></iframe>
<script>
function test()
{
......@@ -19,3 +20,4 @@
}
</script>
</div>
</body>
......@@ -32,8 +32,8 @@
<p>You should see a frame in 'view source' mode below.</p>
<p>None of the "&lt;test&gt;" strings shown below should be colorized like HTML.</p>
<hr>
<iframe viewsource src="resources/viewsource-frame-2.html" height="250" onload="report(this)"></iframe>
<hr>
<div id="result"></div>
<hr>
<iframe viewsource src="resources/viewsource-frame-2.html" height="250" onload="report(this)"></iframe>
</body>
</html>
......@@ -35,12 +35,12 @@
<p>You should see a frame in 'view source' mode below.</p>
<p>"foobar" should be seen after the &lt;script&gt; tag and &lt;textarea&gt; tag.</p>
<hr>
<iframe viewsource src="resources/viewsource-frame-unfinished-script.html" height="250" onload="report(this, 'script')"></iframe>
<iframe viewsource src="resources/viewsource-frame-unfinished-textarea.html" height="250" onload="report(this, 'textarea')"></iframe>
<hr>
<div id="result">
<div id="script_result"></div>
<div id="textarea_result"></div>
<hr>
<iframe viewsource src="resources/viewsource-frame-unfinished-script.html" height="250" onload="report(this, 'script')"></iframe>
<iframe viewsource src="resources/viewsource-frame-unfinished-textarea.html" height="250" onload="report(this, 'textarea')"></iframe>
</div>
</body>
</html>
......@@ -7,8 +7,6 @@
<pre id="console"></pre>
<iframe id="the-frame" src="resources/form-with-onclick-submit.html" onload="submitForm()"></iframe>
<script>
if (window.layoutTestController) {
layoutTestController.clearBackForwardList();
......@@ -40,5 +38,8 @@ function submitForm()
}, 0);
}
</script>
<iframe id="the-frame" src="resources/form-with-onclick-submit.html" onload="submitForm()"></iframe>
</body>
</html>
\ No newline at end of file
</html>
......@@ -7,8 +7,6 @@
<pre id="console"></pre>
<iframe id="the-frame" src="resources/form-with-input-submit.html" onload="submitForm()"></iframe>
<script>
if (window.layoutTestController) {
layoutTestController.clearBackForwardList();
......@@ -40,5 +38,8 @@ function submitForm()
}, 0);
}
</script>
<iframe id="the-frame" src="resources/form-with-input-submit.html" onload="submitForm()"></iframe>
</body>
</html>
\ No newline at end of file
</html>
<head xmlns="http://www.w3.org/1999/xhtml"><title></title></head>
<body xmlns="http://www.w3.org/1999/xhtml">
<pre>CHARACTERS IN XSLT: &lt;&lt;&lt;&amp;тест&amp;&gt;&gt;&gt;
......
......@@ -15,5 +15,5 @@
log(doc.documentElement.innerHTML);
}
</script>
<iframe onload="dumpDOM(this.contentDocument)" src="resources/xslt-text.xml"></iframe>
<pre id="console"></pre>
<iframe onload="dumpDOM(this.contentDocument)" src="resources/xslt-text.xml"></iframe>
......@@ -27,9 +27,9 @@ addEventListener('message', receiver, false);
</script>
<body>
<body onload="postIt()">
<iframe src="http://localhost:8000/messaging/resources/cross-domain-message-receive.html" id="receiver" onload="postIt();"></iframe>
<iframe src="http://localhost:8000/messaging/resources/cross-domain-message-receive.html" id="receiver"></iframe>
<div id="result">waiting...</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.
SUCCESS
......@@ -44,8 +44,8 @@ function runTest(f) {
}
}
</script>
<iframe src="resources/cached-scripts-subframe.html" onload="runTest(this)">
</iframe>
<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>
<div id="result">FAILURE</div>
<iframe src="resources/cached-scripts-subframe.html" onload="runTest(this)">
</iframe>
</html>
......@@ -18,6 +18,6 @@
}
}
</script>
<iframe id="result" name="result" onload="test()" src="data:text/html,FAIL"></iframe>
<embed name="plg" type="application/x-webkit-test-netscape"></embed>
<pre id="log"></pre>
<iframe id="result" name="result" onload="test()" src="data:text/html,FAIL"></iframe>
......@@ -2,5 +2,5 @@ This tests that when a frame navigates to a new page, closures in the old page c
You should see PASSED at the end of page if the test passes.
PASSED
......@@ -27,8 +27,8 @@
<body>
<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>
<p>You should see PASSED at the end of page if the test passes.</p>
<div id="result">PASSED</div>
<iframe id="targetChild" src=""></iframe>
<iframe src="resources/childWithButton.html" onload="onloadForButtonChild();"></iframe>
<div id="result">PASSED</div>
</body>
</html>
......@@ -22,9 +22,9 @@ function test() {
}
</script>
<base href="http://www.example.com/">
<body>
<body onload="test()">
<div>window.location.href = <script>document.write(document.location.href);</script></div>
<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html"
id="child" width="800" height="300" style="border: 1px solid black;">
</iframe></div>
<div id="result">waiting...</div>
......
......@@ -3,7 +3,6 @@ CONSOLE MESSAGE: line 0: Unable to post message to asdf://. Recipient has origin
CONSOLE MESSAGE: line 0: Unable to post message to null. Recipient has origin http://localhost:8000.
window.location.href = http://127.0.0.1:8000/security/postMessage/invalid-origin-throws-exception.html
waiting...
Encountered exception Error: SYNTAX_ERR: DOM Exception 12 while posting message to ''.
Encountered exception Error: SYNTAX_ERR: DOM Exception 12 while posting message to 'asdf'.
......@@ -12,3 +11,4 @@ Encountered exception Error: SYNTAX_ERR: DOM Exception 12 while posting message
Posted message to 'asdf:' without any exceptions.
Posted message to 'http:' without any exceptions.
Received message: data="Received message: data="done" origin="http://127.0.0.1:8000"" origin="http://localhost:8000"
......@@ -38,9 +38,9 @@ function test() {
</script>
<body>
<div>window.location.href = <script>document.write(window.location.href);</script></div>
<div id="result">waiting...</div>
<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
id="child" width="800" height="300" style="border: 1px solid black;">
</iframe></div>
<div id="result">waiting...</div>
</body>
</html>
......@@ -19,9 +19,9 @@ function test() {
}
</script>
<base href="http://www.example.com/">
<body>
<body onload="test()">
<div>window.location.href = <script>document.write(window.location.href);</script></div>
<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html"
id="child" width="800" height="300" style="border: 1px solid black;">
</iframe></div>
<div id="result">waiting...</div>
......
......@@ -45,9 +45,9 @@ function test() {
win.postMessage('done', '*');
}
</script>
<body>
<body onload="test()">
<div>window.location.href = <script>document.write(window.location.href);</script></div>
<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html" onload="test()"
<div><iframe src="http://localhost:8000/security/postMessage/resources/post-message-listener.html"
id="child" width="800" height="300" style="border: 1px solid black;">
</iframe></div>
<div id="result">waiting...</div>
......
......@@ -15,9 +15,8 @@ function runTest() {
}
</script>
</head>
<body>
<iframe onload="runTest()"
id="svgobject" src="http://localhost:8080/security/resources/empty-svg.php"
<body onload="runTest()">
<iframe id="svgobject" src="http://localhost:8080/security/resources/empty-svg.php"
width="400" height="300"></iframe>
<div id="output"></div>
</body>
......
<!doctype html>
<body>
<body onload="test()">
<p><a href="https://bugs.webkit.org/show_bug.cgi?id=25420">bug 25240</a></p>
<script>
if (window.layoutTestController) {
......@@ -29,6 +29,6 @@
frames[0].location = frames[0].location.toString().replace("127.0.0.1", "localhost")
}
</script>
<iframe src="resources/echo-host.php" onload="test()"></iframe>
<iframe src="resources/echo-host.php"></iframe>
<div id=result>FAIL: Script did not run.</div>
</body>
<p>
This tests that in a standalone media document with audio content, the media element repaints correctly
while playing.
</p>
<iframe src="content/silence.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
<script>
if (window.layoutTestController)
layoutTestController.waitUntilDone();
......@@ -23,3 +18,11 @@
}, 100)
}
</script>
<p>
This tests that in a standalone media document with audio content, the media element repaints correctly
while playing.
</p>
<iframe src="content/silence.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
<script>// To produce the same layout as before iframe was moved down to avoid rebaselines of different platforms.
// https://bugs.webkit.org/show_bug.cgi?id=54942
</script>
......@@ -3,7 +3,6 @@
size.
</p>
<pre id="console"></pre>
<iframe src="content/test.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
......@@ -28,3 +27,4 @@
layoutTestController.notifyDone();
}
</script>
<iframe src="content/test.wav" id="fr" width=380 height=330 onload="frameLoaded()"></iframe>
......@@ -12,9 +12,6 @@
</style>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:application/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe>
<script>
if (window.layoutTestController)
......@@ -316,5 +313,8 @@ function frameLoaded()
}
</script>
<p id="description"></p>
<div id="console"></div>
<iframe id="xmlframe" onload="frameLoaded()" style="height:0px" src="data:application/xhtml+xml,<?xml version='1.0' encoding='UTF-8'?><body/>"></iframe>
</body>
</html>
......@@ -7,5 +7,5 @@
document.getElementById("result").firstChild.data = "PASS";
}
</script>
<iframe src="../../../../fast/images/resources/green_rectangle.pdf" onload="frameLoaded()"></iframe>
<div id="result">FAIL</div>
<iframe src="../../../../fast/images/resources/green_rectangle.pdf" onload="frameLoaded()"></iframe>
......@@ -7,14 +7,6 @@
}
</style>
<body>
<iframe id="iframe" src="resources/hidden-iframe-scrollbar-crash2.html" width="50px" onload="load()"></iframe>
<p>This tests to make sure that an iframe with custom scrollbars that starts
an image load and is hidden before the image load is complete doesn't crash
when the image load completes. The test passes if it does not crash.</p>
</body>
<script>
function load()
{
......@@ -29,3 +21,11 @@ if (window.layoutTestController) {
layoutTestController.dumpAsText();
}
</script>
<body>
<iframe id="iframe" src="resources/hidden-iframe-scrollbar-crash2.html" width="50px" onload="load()"></iframe>
<p>This tests to make sure that an iframe with custom scrollbars that starts
an image load and is hidden before the image load is complete doesn't crash
when the image load completes. The test passes if it does not crash.</p>
</body>
......@@ -2,7 +2,6 @@
<p>Should not crash or cause an assertion failure.</p>
<p>A JavaScript failure on the console is expected, however, as the global object is cleared when closing a frame.
It actually helps to cause database activity by throwing an exception from a callback.</p>
<iframe src="resources/stress-frame.html" onload="startTest()"></iframe>
<script>
if (window.layoutTestController) {
layoutTestController.waitUntilDone();
......@@ -16,4 +15,5 @@ function startTest()
setTimeout("layoutTestController.notifyDone()", 500);
}
</script>
<iframe src="resources/stress-frame.html" onload="startTest()"></iframe>
</body>
......@@ -2,6 +2,8 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="450" height="450" xmlns="http://www.w3.org/2000/svg">
<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"/>
<script>
if (window.layoutTestController)
layoutTestController.waitUntilDone();
......@@ -21,6 +23,4 @@ function move()
}
</script>
<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"/>
</svg>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment