OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
5 <style> | 5 <style> |
6 span { | 6 span { |
7 background-color: lightgray; | 7 background-color: lightgray; |
8 border-radius: 2em; | 8 border-radius: 2em; |
9 padding: 1em; | 9 padding: 1em; |
10 line-height: 4em; | 10 line-height: 4em; |
11 } | 11 } |
12 | 12 |
13 label { | 13 label { |
14 padding: 2em; | 14 padding: 2em; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 rect = document.getElementById('D').getBoundingClientRect(); | 55 rect = document.getElementById('D').getBoundingClientRect(); |
56 elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); | 56 elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); |
57 shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY'); | 57 shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'BODY'); |
58 | 58 |
59 rect = document.getElementById('E').getBoundingClientRect(); | 59 rect = document.getElementById('E').getBoundingClientRect(); |
60 elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); | 60 elementInTopLeftCorner = document.elementFromPoint(rect.left, rect.top); |
61 shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'SPAN'); | 61 shouldBeEqualToString('elementInTopLeftCorner.nodeName', 'SPAN'); |
62 </script> | 62 </script> |
63 </html> | 63 </html> |
OLD | NEW |