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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/color/color-no-event-during-detach.html

Issue 2447653002: INPUT element: Do not dispatch events in detachLayoutTree(). (Closed)
Patch Set: Created 4 years, 2 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 | third_party/WebKit/LayoutTests/fast/forms/color/input-color-choose-default-value-after-set-value.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/color/color-no-event-during-detach.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/color/color-no-event-during-detach.html b/third_party/WebKit/LayoutTests/fast/forms/color/color-no-event-during-detach.html
new file mode 100644
index 0000000000000000000000000000000000000000..706d80095e3a0aa0a48296635e46571f22a3cc6b
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/color/color-no-event-during-detach.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script src="../resources/common.js"></script>
+<input type="color" list>
+<script>
+test(() => {
+ var color = document.querySelector('input');
+ color.setAttribute('value', '#010101');
+ document.body.offsetLeft;
+ clickElement(color);
+ color.remove();
+}, 'Detaching a layout object from a color input should not cause a DCHECK failure.');
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/color/input-color-choose-default-value-after-set-value.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698