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

Unified Diff: LayoutTests/fast/forms/label/detached-document.html

Issue 288933002: Fix crash after detaching document. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing Issue Created 6 years, 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/label/detached-document-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/label/detached-document.html
diff --git a/LayoutTests/fast/forms/label/detached-document.html b/LayoutTests/fast/forms/label/detached-document.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2c6be085177a011d08ce9735ec7a5bfea126d92
--- /dev/null
+++ b/LayoutTests/fast/forms/label/detached-document.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<label id="label">
+<script>
+var label = document.getElementById("label");
+var doc = document.implementation.createDocument("", null);
+doc.adoptNode(label);
+var mouseEvent = document.createEvent('MouseEvent');
+mouseEvent.initMouseEvent("click", 56644);
+label.dispatchEvent(mouseEvent)
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/forms/label/detached-document-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698