aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authormrmr19932015-04-28 23:24:25 +0100
committermrmr19932015-04-28 23:49:02 +0100
commit3b3fb93e1151bf7f1090f130f2c3554d35cc77d5 (patch)
tree1259c969ec8b842658d340588e6f72ce12a23cbe /tests
parent18f8c31269a5e0ce2e896c157a703f6b73c0aa90 (diff)
downloadvimium-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.coffee9
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 = """