OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <script src="../../resources/js-test.js"></script> | |
5 <style> | |
6 body { margin: 2em; } | |
7 | |
8 #test { | |
9 background-color: green; | |
10 border-radius: 50px; | |
11 padding: 1em; | |
12 line-height: 4em; | |
13 } | |
14 | |
15 #test:hover { | |
16 background-color:red; | |
17 } | |
18 </style> | |
19 </head> | |
20 <body> | |
21 <span id="test"> | |
22 Two line with <br/>a hard line break. | |
davve
2015/03/26 10:03:36
lines
Abhijeet Kandalkar Slow
2015/03/27 11:28:59
Done.
| |
23 </span> | |
24 <br><br><br> | |
25 <div id="console"></div> | |
26 </body> | |
27 <script> | |
28 description('If this test passes, area outside border radius is body element.'); | |
29 var rects = document.getElementById('test').getClientRects(); | |
30 var elementInTopLeftCorner = document.elementFromPoint(rects[0].left, rects[0].t op); | |
31 shouldBe('elementInTopLeftCorner.nodeName', '"BODY"'); | |
davve
2015/03/26 10:03:36
Instead of these two shouldBe you could use should
Abhijeet Kandalkar Slow
2015/03/27 11:28:59
Done.
| |
32 elementInTopLeftCorner = document.elementFromPoint(rects[1].left, rects[1].top); | |
33 shouldBe('elementInTopLeftCorner.nodeName', '"SPAN"'); | |
34 </script> | |
35 </html> | |
OLD | NEW |