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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/crash-on-mutate-during-drop.html

Issue 2532393003: Remove the wrong optimization in replacing a text node with innerHTML (Closed)
Patch Set: use NeedsRebaseline Created 4 years 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: third_party/WebKit/LayoutTests/fast/events/crash-on-mutate-during-drop.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/crash-on-mutate-during-drop.html b/third_party/WebKit/LayoutTests/fast/events/crash-on-mutate-during-drop.html
deleted file mode 100644
index e5e2b87681aa572101a55f2910add71ce7ea49a7..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/crash-on-mutate-during-drop.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<html>
-<head>
-<script>
-function foo() {
- if (event.type == "DOMNodeInserted" && event.target.nodeType == 3)
- document.body.innerHTML = "PASSED";
-}
-
-function runTest() {
- if (!window.testRunner)
- return;
-
- window.testRunner.dumpAsText();
-
- document.addEventListener("DOMNodeInserted", function() { foo() }, true);
-
- // Select the element 'dragSource'.
- var selection = window.getSelection();
- var range = document.createRange();
- range.selectNode(document.getElementById("dragSource"));
- selection.addRange(range);
-
- // Drag the source text to the target text.
- var source = document.getElementById('dragSource');
- var target = document.getElementById('dragTarget');
- eventSender.mouseMoveTo(source.offsetLeft + 2, source.offsetTop + 2);
- eventSender.mouseDown();
- eventSender.leapForward(500);
- eventSender.mouseMoveTo(target.offsetLeft + target.offsetWidth / 2,
- target.offsetTop + target.offsetHeight / 2);
- eventSender.mouseUp();
-}
-</script>
-</head>
-<body contenteditable="true" onload="runTest()">
-<p>This test tests for a crash when a DOM mutation event listener
- modifies the text during a drop. If the test doesn't crash, all is good.
-<p id="dragSource">drag source text
-<p id="dragTarget">drag dest text
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698