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

Unified Diff: LayoutTests/editing/execCommand/crash-object-cloning.html

Issue 698113005: The ASSERT in appendNode() should not fire when OBJECTS are cloned. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Full patch Created 6 years, 1 month 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/crash-object-cloning.html
diff --git a/LayoutTests/editing/execCommand/crash-object-cloning.html b/LayoutTests/editing/execCommand/crash-object-cloning.html
new file mode 100644
index 0000000000000000000000000000000000000000..4ebf9a882b151e4c01f30a94726c8db3e9c341c0
--- /dev/null
+++ b/LayoutTests/editing/execCommand/crash-object-cloning.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<script>
+if (window.testRunner)
+ {
yosin_UTC9 2014/11/20 01:26:41 nit: Move |{| to end of |if| line. Basically, plea
+ window.testRunner.dumpAsText();
+ testRunner.waitUntilDone();
yosin_UTC9 2014/11/20 01:26:41 Please add |window.jsTestAsync = true;|, when we c
+ }
+window.onload = function() {
yosin_UTC9 2014/11/20 01:26:41 Do we really need to wait "load" event for this te
+ document.execCommand("SelectAll",false);
yosin_UTC9 2014/11/20 01:26:41 nit: You don't need to have |,false|.
+ document.execCommand("Indent", false);
yosin_UTC9 2014/11/20 01:26:41 nit: You don't need to have |,false|.
+ setTimeout(function() {
+ document.getElementById("body").innerHTML = "This test passes if it doesn't crash";
+ testRunner.notifyDone();
+ }, 0);
+};
+</script>
+<body id="body" contenteditable>
+<object>
+This test passes if it doesn't crash
+</body>

Powered by Google App Engine
This is Rietveld 408576698