Index: LayoutTests/editing/execCommand/crash-issue-338542.html |
diff --git a/LayoutTests/editing/execCommand/crash-issue-338542.html b/LayoutTests/editing/execCommand/crash-issue-338542.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..25cc3c2ac19aa4ffa8758d6c8726bfbf90e3a46c |
--- /dev/null |
+++ b/LayoutTests/editing/execCommand/crash-issue-338542.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
tkent
2014/02/24 03:39:37
The name 'crash-issue-338542' isn't helpful. 'win
Yuta Kitamura
2014/02/24 06:00:42
To tell the truth I didn't think of a good name; t
|
+<html> |
+<head> |
+<title>Crash issue 338542</title> |
+<script src="../../resources/js-test.js"></script> |
+</head> |
+<body> |
+<script> |
+description('Should not crash if we load a test case from crbug.com/338542.'); |
+ |
+window.jsTestIsAsync = true; |
+ |
+window.addEventListener('message', didReceiveMessage, false); |
+ |
+var iframe = document.createElement('iframe'); |
+iframe.src = 'resources/crash-issue-338542-iframe.html'; |
+document.body.appendChild(iframe); |
+ |
+function didReceiveMessage(event) |
+{ |
+ shouldBeEqualToString('event.data', 'FINISH'); |
+ document.body.removeChild(iframe); |
+ testPassed('Did not crash.'); |
+ window.finishJSTest(); |
+} |
+</script> |
+</body> |
+</html> |