OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <script> | 3 <script> |
4 description('When adding focus ring rects, we should avoid adding duplicated rec t for continuations'); | 4 description('When adding focus ring rects, we should avoid adding duplicated rec t for continuations'); |
5 onload = function() { | 5 onload = function() { |
6 document.body.offsetTop; | 6 document.body.offsetTop; |
7 // 5 focus ring rects: | 7 // 6 focus ring rects: |
8 // - 0: 'SPAN0' part of the span; | 8 // - 0: 'SPAN0' part of the span; |
9 // - 1: div DIV1 | 9 // - 1: div DIV1 |
10 // - 2: first line box of div DIV1 | 10 // - 2: anonymous block containing the inline part of DIV1 before DIV2 |
11 // - 3: div DIV2 | 11 // - 3: first line box of div DIV1 |
12 // - 4: first line box of div DIV2 | 12 // - 4: div DIV2 |
13 // - 5: first line box of div DIV2 | |
13 if (window.testRunner && window.internals) | 14 if (window.testRunner && window.internals) |
14 shouldBe("internals.focusRingRects(document.getElementById('focus'))", "5"); | 15 shouldBe("internals.outlineRects(document.getElementById('focus')).length", "6"); |
chrishtr
2015/08/05 03:57:50
Why are there now 6? Was this test just busted?
Xianzhu
2015/08/05 15:58:42
Actually there is no behavior change, but the test
| |
15 }; | 16 }; |
16 </script> | 17 </script> |
17 <div> | 18 <div> |
18 <span id="focus">SPAN0 | 19 <span id="focus">SPAN0 |
19 <div>DIV1 | 20 <div>DIV1 |
20 <span>SPAN1 | 21 <span>SPAN1 |
21 <div>DIV2</div> | 22 <div>DIV2</div> |
22 </span> | 23 </span> |
23 </div> | 24 </div> |
24 </span> | 25 </span> |
25 </div> | 26 </div> |
OLD | NEW |