remove.js 332 B

12345678910
  1. QUnit.module("classList.remove");
  2. QUnit.test("Removes duplicated instances of class", function(assert) {
  3. var el = document.createElement("p"), cList = el.classList;
  4. el.className = "ho ho ho"
  5. cList.remove("ho");
  6. assert.ok(!cList.contains("ho"), "Should remove all instances of 'ho'");
  7. assert.strictEqual(el.className, "")
  8. });