Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: LayoutTests/editing/execCommand/window-open-insert-list-crash.html

Issue 176863002: Fix null pointer dereference in CompositeEditCommand::moveParagraphs(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rename test. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/editing/execCommand/window-open-insert-list-crash.html
diff --git a/LayoutTests/editing/execCommand/window-open-insert-list-crash.html b/LayoutTests/editing/execCommand/window-open-insert-list-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..c51bb88469d20a6fcae79475adbceef35f262dc2
--- /dev/null
+++ b/LayoutTests/editing/execCommand/window-open-insert-list-crash.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<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/window-open-insert-list-crash-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>

Powered by Google App Engine
This is Rietveld 408576698