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

Side by Side Diff: LayoutTests/fast/layout/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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
mstensho (USE GERRIT) 2014/10/14 19:51:39 Sorry, one more thing: why is the test in fast/lay
Xianzhu 2014/10/14 20:38:41 fast/lists seems better. Moved.
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 onload = function() {
5 document.body.offsetTop;
mstensho (USE GERRIT) 2014/10/14 19:06:03 Indentation is normally 4 spaces.
Xianzhu 2014/10/14 19:33:59 We allow both 2 and 4 space indentation for layout
mstensho (USE GERRIT) 2014/10/14 19:51:39 I stand corrected. :) I used to get issues raised
6 var target = document.getElementById('target');
7 target.style.color = 'green';
8 if (window.internals) {
9 shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", "2", true);
mstensho (USE GERRIT) 2014/10/14 19:06:03 Why quiet == true?
Xianzhu 2014/10/14 19:33:59 Because this is not what the test wants to test, b
mstensho (USE GERRIT) 2014/10/14 19:51:39 I don't see why it's necessary to hide it, though.
10 shouldBe("internals.needsLayoutCount()", "0");
11 }
12 }
13 </script>
14 Should not layout when list color changes.
15 <ul id="target">
16 <li>UL that causes layout to trigger</li>
mstensho (USE GERRIT) 2014/10/14 19:06:03 Seems to me that this text is incorrect, after you
Xianzhu 2014/10/14 19:33:59 Done.
17 </ul>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698