mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 1582585 - Test autoscroll for scrollable and non-scrollable iframes. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D46733 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
f8fa8e5cea
commit
23d89f211d
@ -130,6 +130,36 @@ body > div > div {width: 1000px;height: 1000px;}\
|
||||
testwindow: true,
|
||||
middlemousepastepref: true,
|
||||
},
|
||||
{
|
||||
dataUri:
|
||||
"data:text/html," +
|
||||
encodeURIComponent(`
|
||||
<!doctype html>
|
||||
<iframe id=i height=100 width=100 scrolling="no" srcdoc="<div style='height: 200px'>Auto-scrolling should never make me disappear"></iframe>
|
||||
<div style="height: 100vh"></div>
|
||||
`),
|
||||
},
|
||||
{
|
||||
elem: "i",
|
||||
// We expect the outer window to scroll vertically, not the iframe's window.
|
||||
expected: expectScrollVert,
|
||||
testwindow: true,
|
||||
},
|
||||
{
|
||||
dataUri:
|
||||
"data:text/html," +
|
||||
encodeURIComponent(`
|
||||
<!doctype html>
|
||||
<iframe id=i height=100 width=100 srcdoc="<div style='height: 200px'>Auto-scrolling should make me disappear"></iframe>
|
||||
<div style="height: 100vh"></div>
|
||||
`),
|
||||
},
|
||||
{
|
||||
elem: "i",
|
||||
// We expect the iframe's window to scroll vertically, so the outer window should not scroll.
|
||||
expected: expectScrollNone,
|
||||
testwindow: true,
|
||||
},
|
||||
];
|
||||
|
||||
for (let test of allTests) {
|
||||
|
Loading…
Reference in New Issue
Block a user