Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/pagination/modal-dialog-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/pagination/modal-dialog-crash.html b/third_party/WebKit/LayoutTests/fast/pagination/modal-dialog-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..da148469334f41c2a9519cb26561507d05c193e3 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/pagination/modal-dialog-crash.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
| +<p>PASS if no crash or assertion failure.</p> |
| +<dialog id="dialog"> |
| + <div id="dialogChild"> |
| + <div style="transform:rotatey(0deg);"></div> |
| + <div style="position:absolute;"></div> |
| + </div> |
| +</dialog> |
| +<script> |
| + if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + function paginateAllTheThings() { |
| + document.body.style.overflowY = "-webkit-paged-x"; |
| + document.getElementById("dialog").style.overflowY = "-webkit-paged-x"; |
| + document.getElementById("dialogChild").style.overflowY = "-webkit-paged-x"; |
| + } |
| + document.getElementById("dialog").showModal(); |
| + if (window.internals) { |
| + internals.forceCompositingUpdate(document); |
| + paginateAllTheThings(); |
| + } else { |
| + // Need a short delay, probably so that things get painted as they are before making more changes. |
| + setTimeout(paginateAllTheThings, 500); |
|
Xianzhu
2016/04/07 16:43:36
Can you use runAfterLayoutAndPaint() (../../resour
mstensho (USE GERRIT)
2016/04/07 18:43:18
Done.
|
| + } |
| +</script> |