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

Unified Diff: LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html

Issue 296703009: Oilpan: move custom element objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use LinkedHashSet for ElementSet instead. 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
Index: LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html
diff --git a/LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html b/LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html
new file mode 100644
index 0000000000000000000000000000000000000000..2ee61b7fc664fc972e0a5883daddd188b675d54a
--- /dev/null
+++ b/LayoutTests/fast/dom/custom/element-upgrade-no-register-and-leak.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<div id="container"></div>
+<script>
+description('Tests unresolved element not leaking if never resolved.');
+
+// Verify that a custom tag for which no element is ever registered
+// doesn't cause a document nor elements to leak.
+var host = document.createElement('div');
+host.innerHTML = '<x-a></x-a>';
+</script>

Powered by Google App Engine
This is Rietveld 408576698