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

Unified Diff: LayoutTests/fast/css/style-scoped/style-scoped-shadow-crash.html

Issue 315173002: Revert of Remove scoped styles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/css/style-scoped/style-scoped-shadow-crash.html
diff --git a/LayoutTests/fast/css/style-scoped/style-scoped-shadow-crash.html b/LayoutTests/fast/css/style-scoped/style-scoped-shadow-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..fd74b8e1f4caf640664d8b119f065067040407ec
--- /dev/null
+++ b/LayoutTests/fast/css/style-scoped/style-scoped-shadow-crash.html
@@ -0,0 +1,28 @@
+<div id=div1>
+ <style scoped></style>
+</div>
+<div id=div2></div>
+
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+(function() {
+ var div1 = document.getElementById("div1");
+ div2Shadow = div2.createShadowRoot();
+ div2Shadow.appendChild(div1);
+ div1.parentNode.removeChild(div1);
+})();
+
+gc();
+
+setTimeout(function() {
+ document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "font-face"));
+ console.log("PASS unless crash");
+ window.testRunner.notifyDone();
+}, 0);
+
+</script>
+

Powered by Google App Engine
This is Rietveld 408576698