Skip to content
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.

Commit

Permalink
test text descendants in a DocumentFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
valdrinkoshi committed Feb 16, 2017
1 parent 59e18aa commit 2db3a2b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/js/properties-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,19 @@ test("Find text descendants in an iframe.", function() {
equal(axs.properties.hasDirectTextDescendant(foo), true);
});

test("Find text descendants in a DocumentFragment.", function() {
// Setup fixture
var fixture = document.getElementById('qunit-fixture');

var frag = document.createDocumentFragment();
var foo = document.createElement('div');
foo.textContent = 'bar';
frag.appendChild(foo);
fixture.appendChild(frag);

equal(axs.properties.hasDirectTextDescendant(foo), true);
});

module('findTextAlternatives', {
setup: function () {
this.fixture_ = document.getElementById('qunit-fixture');
Expand Down

0 comments on commit 2db3a2b

Please sign in to comment.