Commit d6784b25 authored by alice.liu@apple.com's avatar alice.liu@apple.com

Reviewed by Adam.

        Test for <rdar://problem/5566435> window with no scrollbars can still be scrolled with wheelevent 

        * fast/events/attempt-scroll-with-no-scrollbars-expected.txt: Added.
        * fast/events/attempt-scroll-with-no-scrollbars.html: Added.
        * platform/mac/Skipped: 
        Adding to mac Skipped list because of <rdar://problem/5643675> window.scrollTo scrolls a window with no scrollbars
        * platform/win/Skipped:
        Adding to win Skipped list because of <rdar://problem/5132009> Windows DRT does not support multiple windows



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28823 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5206a368
2007-12-17 Alice Liu <alice.liu@apple.com>
Reviewed by Adam.
Test for <rdar://problem/5566435> window with no scrollbars can still be scrolled with wheelevent
* fast/events/attempt-scroll-with-no-scrollbars-expected.txt: Added.
* fast/events/attempt-scroll-with-no-scrollbars.html: Added.
* platform/mac/Skipped:
Adding to mac Skipped list because of <rdar://problem/5643675> window.scrollTo scrolls a window with no scrollbars
* platform/win/Skipped:
Adding to win Skipped list because of <rdar://problem/5132009> Windows DRT does not support multiple windows
2007-12-17 Darin Adler <darin@apple.com>
- disabling this test until we can find a way to make it pass on diverse machines
......
<html><head>
<script>
var theWinref;
function test()
{
if (window.layoutTestController) {
layoutTestController.setCanOpenWindows();
layoutTestController.waitUntilDone();
layoutTestController.dumpAsText();
}
theWinref = window.open('','_blank','scrollbars=no');
setTimeout(doNewWindow, 250);
setTimeout(printResult, 750);
}
function doNewWindow()
{
theWinref.document.open();
theWinref.document.write("<html><body><iframe height='100%' width='100%' src=''></iframe><div>If you can see this, the test has failed.</div></body></html>");
theWinref.resizeTo(200,100);
theWinref.document.close();
theWinref.scrollTo(200,100);
}
function printResult()
{
if (theWinref.document.body.scrollTop == 0)
document.getElementById("console").innerHTML = "PASSED";
else
document.getElementById("console").innerHTML = "FAILED - window should not have been scrolled but was scrolled to " + theWinref.document.body.scrollTop;
theWinref.close();
endTest();
}
function endTest()
{
if (window.layoutTestController) {
if (theWinref.closed)
layoutTestController.notifyDone();
else
setTimeout("endTest()", 10);
}
}
</script>
</head>
<body onload="test();">
<div id="console">
NOT DONE YET
</div>
</body>
</html>
# <rdar://problem/5647952> fast/events/mouseout-on-window.html needs mac DRT to issue mouse out events
fast/events/mouseout-on-window.html
# <rdar://problem/5643675> window.scrollTo scrolls a window with no scrollbars
fast/events/attempt-scroll-with-no-scrollbars.html
......@@ -241,6 +241,7 @@ fast/forms/textfield-drag-into-disabled.html
# DumpRenderTree doesn't support multiple windows <rdar://problem/5132009>
fast/dom/open-and-close-by-DOM.html
fast/dom/Document/early-document-access.html
fast/events/attempt-scroll-with-no-scrollbars.html
fast/history/history_reload.html
http/tests/navigation/new-window-redirect-history.html
http/tests/navigation/target-frame-from-window.html
......
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