Skip to content

Commit

Permalink
Adding test for #2532764
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed Sep 20, 2012
1 parent a860c27 commit 489f4e5
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/loader/tests/unit/assets/loader-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ YUI.add('loader-tests', function(Y) {
test_cond_no_test_or_ua: Y.UA.nodejs,
test_condpattern: Y.UA.nodejs,
test_cond_with_test_function: Y.UA.nodejs,
'test external lang 1': Y.UA.nodejs
'test external lang 1': Y.UA.nodejs,
'testing fetchCSS false': !Y.config.win
}
},
'test: skin overrides double loading': function() {
Expand Down Expand Up @@ -724,6 +725,21 @@ YUI.add('loader-tests', function(Y) {
test.wait();

},
'testing fetchCSS false': function() {
var test = this,
links = document.getElementsByTagName('link').length + document.getElementsByTagName('style').length;

YUI({
fetchCSS: false
}).use('panel', function(Y) {
test.resume(function() {
var links2 = document.getElementsByTagName('link').length + document.getElementsByTagName('style').length;
Assert.areEqual(links, links2, 'A new link tag was injected into the page.');
});
});

test.wait();
},
test_forcemap: function() {
var test = this;

Expand Down

0 comments on commit 489f4e5

Please sign in to comment.