OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 /* Remove body margin and dialog styles to allow comparing dialog's position wit
h that of plain span elements. */ | 5 /* Remove body margin and dialog styles to allow comparing dialog's position wit
h that of plain span elements. */ |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 } | 8 } |
9 | 9 |
10 dialog { | 10 dialog { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 plainSpan.style.top = '50px'; | 204 plainSpan.style.top = '50px'; |
205 expectedTop = plainSpan.getBoundingClientRect().top; | 205 expectedTop = plainSpan.getBoundingClientRect().top; |
206 plainSpan.parentNode.removeChild(plainSpan); | 206 plainSpan.parentNode.removeChild(plainSpan); |
207 dialog.style.position = 'relative'; | 207 dialog.style.position = 'relative'; |
208 dialog.style.top = '50px'; | 208 dialog.style.top = '50px'; |
209 // Just test non-modal since modal is covered by other tests (for modal, relativ
e computes to absolute) | 209 // Just test non-modal since modal is covered by other tests (for modal, relativ
e computes to absolute) |
210 dialog.show(); | 210 dialog.show(); |
211 shouldBe('dialog.getBoundingClientRect().top', 'expectedTop'); | 211 shouldBe('dialog.getBoundingClientRect().top', 'expectedTop'); |
212 dialog.close(); | 212 dialog.close(); |
213 </script> | 213 </script> |
214 <script src="../../js/resources/js-test-post.js"></script> | |
215 </body> | 214 </body> |
216 </html> | 215 </html> |
OLD | NEW |