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

Unified Diff: LayoutTests/fast/lists/list-color-change-no-layout.html

Issue 644073002: Avoid layout when list color changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | LayoutTests/fast/lists/list-color-change-no-layout-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/lists/list-color-change-no-layout.html
diff --git a/LayoutTests/fast/lists/list-color-change-no-layout.html b/LayoutTests/fast/lists/list-color-change-no-layout.html
new file mode 100644
index 0000000000000000000000000000000000000000..f2a28c05615f65deb12902befcc81a902856d4e7
--- /dev/null
+++ b/LayoutTests/fast/lists/list-color-change-no-layout.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+onload = function() {
+ document.body.offsetTop;
+ var target = document.getElementById('target');
+ target.style.color = 'green';
+ if (window.internals) {
+ shouldBe('internals.updateStyleAndReturnAffectedElementCount()', '2');
+ shouldBe('internals.needsLayoutCount()', '0');
+ }
+}
+</script>
+Should not layout when list color changes.
+<ul id="target">
+ <li>List item</li>
+</ul>
« no previous file with comments | « no previous file | LayoutTests/fast/lists/list-color-change-no-layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698