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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html

Issue 1607893002: Add regression test for crbug.com/408957 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/css/invalidation/lazy-reattach-object-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html b/third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html
new file mode 100644
index 0000000000000000000000000000000000000000..5b1fe795909afca908ac2152af165aeba921d087
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<script src="../../../resources/js-test.js"></script>
+<style>
+ object + div { color: green; }
+</style>
+<object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object>
+<div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+</div>
+<script>
+description("Reattaching object should not trigger sibling forest invalidation.");
+
+shouldBeDefined(window.internals);
+
+// Force recalc
+obj.offsetTop;
+
+// Trigger reattach of fallback content.
+obj.setAttribute("data", "data:text/html,PASS");
+
+shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698