| Index: chrome/browser/resources/chromeos/chromevox/common/dom_util_test.js
|
| diff --git a/chrome/browser/resources/chromeos/chromevox/common/dom_util_test.js b/chrome/browser/resources/chromeos/chromevox/common/dom_util_test.js
|
| index dd387984de215449d4c93e9d91f5dd248a6e7547..32b0c26b957fd1bf983e37526390fa77343ea991 100644
|
| --- a/chrome/browser/resources/chromeos/chromevox/common/dom_util_test.js
|
| +++ b/chrome/browser/resources/chromeos/chromevox/common/dom_util_test.js
|
| @@ -141,6 +141,12 @@ TEST_F('CvoxDomUtilUnitTest', 'IsVisible', function() {
|
| node = $('nested_visibility_hide');
|
| assertEquals(false,
|
| cvox.DomUtil.isVisible(node, {checkDescendants: false}));
|
| +
|
| + // Test that an element not part of the DOM is treated as invisible.
|
| + var div = document.createElement('div');
|
| + assertEquals(false, cvox.DomUtil.isVisible(div));
|
| + document.body.appendChild(div);
|
| + assertEquals(true, cvox.DomUtil.isVisible(div));
|
| });
|
|
|
| /** Test determining if a node is a leaf node or not. @export */
|
|
|