Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html |
| diff --git a/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html b/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6dc7b18a1347c795520ba299aa6c1be8a859ebd6 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/paint/invalidation/add-text-match-maker-crash.html |
| @@ -0,0 +1,14 @@ |
| +<script src="../../resources/js-test.js"></script> |
|
tkent
2017/02/21 23:19:44
Please do not add new test using js-test.js.
IMO,
hiroshige
2017/02/21 23:29:56
Removed.
|
| +<script> |
| +description("Tests that internals.addTextMatchMaker doesn't crash with " + |
| + "range with null FrameView https://crbug.com/693848"); |
| + |
| +onload = function () { |
| + var iframe = document.getElementById('iframe'); |
| + var range = iframe.contentWindow.document.createRange(); |
| + document.getElementById('parent').appendChild(iframe); |
| + iframe.contentWindow.internals.addTextMatchMarker(range, false); |
| +} |
| +</script> |
| +<div id=parent></div> |
| +<iframe id=iframe></iframe> |