diff options
| author | mrmr1993 | 2015-04-28 23:24:25 +0100 |
|---|---|---|
| committer | mrmr1993 | 2015-04-28 23:49:02 +0100 |
| commit | 3b3fb93e1151bf7f1090f130f2c3554d35cc77d5 (patch) | |
| tree | 1259c969ec8b842658d340588e6f72ce12a23cbe /tests | |
| parent | 18f8c31269a5e0ce2e896c157a703f6b73c0aa90 (diff) | |
| download | vimium-3b3fb93e1151bf7f1090f130f2c3554d35cc77d5.tar.bz2 | |
Add a test to confirm that issue #1554 is fixed
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dom_tests/dom_utils_test.coffee | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/dom_tests/dom_utils_test.coffee b/tests/dom_tests/dom_utils_test.coffee index e98dc958..ce8fa370 100644 --- a/tests/dom_tests/dom_utils_test.coffee +++ b/tests/dom_tests/dom_utils_test.coffee @@ -73,6 +73,15 @@ context "Check visibility", """ assert.equal null, (DomUtils.getVisibleClientRect (document.getElementById 'foo'), true) + should "detect font-size: 0; and display: inline; links when their children are display: inline", -> + # This test represents the minimal test case covering issue #1554. + document.getElementById("test-div").innerHTML = """ + <a id='foo' style='display: inline; font-size: 0px;'> + <div style='display: inline; font-size: 16px;'>test</div> + </a> + """ + assert.isTrue (DomUtils.getVisibleClientRect (document.getElementById 'foo'), true) != null + should "detect links inside opacity:0 elements as visible", -> # XXX This is an expected failure. See issue #16. document.getElementById("test-div").innerHTML = """ |
