OLD | NEW |
---|---|
(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> | |
OLD | NEW |