File: test.feature.js

package info (click to toggle)
node-headjs 1.0.3%2Bdfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,884 kB
  • sloc: xml: 33; sh: 14; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 378 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module("Features");

// only sync tests use expect()
// http://qunitjs.com/cookbook/#synchronous-callbacks
 
var classes = " " + document.documentElement.className;

function hasClass(css) {
    return classes.indexOf(" " + css) !== -1;
}

test("hasClass(className)", function () {
    expect(1);
    
    ok(hasClass("boxshadow") || hasClass("no-boxshadow"), "box-shadow");
});