Chromium Code Reviews| Index: LayoutTests/editing/undo/resources/undo-set-selection-crash-iframe.html |
| diff --git a/LayoutTests/editing/undo/resources/undo-set-selection-crash-iframe.html b/LayoutTests/editing/undo/resources/undo-set-selection-crash-iframe.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7abbbeb3657877d5ba35fc0d18caccbd502d526d |
| --- /dev/null |
| +++ b/LayoutTests/editing/undo/resources/undo-set-selection-crash-iframe.html |
| @@ -0,0 +1,31 @@ |
| +<html> |
|
yosin_UTC9
2014/06/11 09:02:51
nit: Could you add <!DOCTYPE html> to make Blink i
Yuta Kitamura
2014/06/12 06:23:25
I thought that was impossible because the original
|
| +<body> |
| +<div contentEditable="true"><select></div> |
| +<script type="text/javascript"> |
| +var div = document.getElementsByTagName('div')[0]; |
| + |
| +var selection = window.getSelection(); |
| + |
| +div.focus(); |
| +document.execCommand('SelectAll'); |
| +document.execCommand('Indent'); |
| +document.execCommand('Outdent'); |
| + |
| +var anotherDocument = document.implementation.createHTMLDocument(''); |
| +anotherDocument.body.appendChild(selection.getRangeAt(0).extractContents()); |
| + |
| +div.contentEditable = false; |
| + |
| +document.execCommand('Undo'); |
| +document.execCommand('FindString', false, 'x'); |
| + |
| +window.setTimeout(notifyFinish, 0); |
|
yosin_UTC9
2014/06/11 09:02:51
Q: Is it better to use jsTestIsAsync and finishJST
Yuta Kitamura
2014/06/12 06:23:25
Fixed by removing iframe file.
|
| + |
| +function notifyFinish() |
| +{ |
| + window.parent.postMessage('FINISH', '*'); |
| +} |
| + |
|
yosin_UTC9
2014/06/11 09:02:51
nit: Please remove an extra blank line.
Yuta Kitamura
2014/06/12 06:23:25
Fixed by removing iframe file.
|
| +</script> |
| +</body> |
| +</html> |