Chromium Code Reviews| Index: LayoutTests/fast/dom/nodesFromRect/resources/child-frame-scrolled.html |
| diff --git a/LayoutTests/fast/dom/nodesFromRect/resources/child-frame-scrolled.html b/LayoutTests/fast/dom/nodesFromRect/resources/child-frame-scrolled.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3a03a90189182abda2f2ae9d7714816673c18052 |
| --- /dev/null |
| +++ b/LayoutTests/fast/dom/nodesFromRect/resources/child-frame-scrolled.html |
| @@ -0,0 +1,21 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<style type="text/css"> |
| + body { margin: 0px; } |
| + #content { |
| + width: 200px; |
| + height: 1000px; |
| + } |
| +</style> |
| +</head> |
| +<body> |
| + <div id="content"></div> |
| +</body> |
| + |
| +<script> |
| + document.scrollingElement.scrollTop = "400"; |
| + top.debug("iframe's scroll top is " + document.scrollingElement.scrollTop); |
| + top.postMessage("subframe-loaded", "*"); |
| +</script> |
| +</html> |