UNPKG

accessibility-developer-tools

Version:

This is a library of accessibility-related testing and utility code.

15 lines (13 loc) 486 B
module("matchSelector", { setup: function () { this.fixture_ = document.getElementById('qunit-fixture'); this.matching_selector_ = '#qunit-fixture'; this.mismatching_selector_ = '#not-fixture'; } }); test("nodes are the same", function () { equal(axs.browserUtils.matchSelector(this.fixture_, this.matching_selector_), true); }); test("nodes are different", function () { equal(axs.browserUtils.matchSelector(this.fixture_, this.mismatching_selector_), false); });