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

Commit

Permalink
unit test: cssom increments by 1
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjehl committed May 28, 2015
1 parent a66b1fb commit f7f6943
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/qunit/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
ok( typeof window.loadCSS === "function", "loadCSS should be a function" );
});

test( 'loadCSS adds a styelsheet to CSSOM', function(){
expect(1);
var omLength = window.document.styleSheets.length;
loadCSS("files/test.css");
equal(window.document.styleSheets.length, omLength + 1, "stylesheets incremented by 1" );
});



}(window));

0 comments on commit f7f6943

Please sign in to comment.