Skip to content

Commit

Permalink
lets include our plugin tests in the test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Oct 21, 2011
1 parent f6c926c commit 2a4753d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
28 changes: 27 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
column-count: 5;}
</style>

<script src="../modernizr.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/modernizr.js"></script>
<script>window.Modernizr || document.write('<script src="../modernizr.js"><\/script>')</script>

<script src="js/polyfills.js"></script>
<script src="js/detect-global.js"></script>

Expand Down Expand Up @@ -56,6 +58,30 @@ <h2 id="qunit-userAgent"></h2>

<section><aside>this is an aside within a section</aside></section>


<!-- plugin tests! need a more automated way than this rabble -->
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-backgroundrepeat.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-backgroundsizecover.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-boxsizing.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-cubicbezierrange.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-displaytable.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-overflow-scrolling.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-pointerevents.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/css-userselect.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/custom-protocol-handler.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/dom-createElement-attrs.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/elem-details.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/elem-progress-meter.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/emoji.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/event-deviceorientation-motion.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/file-api.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/forms-placeholder.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/hyphens.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/img-webp.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/url-data-uri.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/window-framed.js"></script>
<script src="https://raw.github.com/Modernizr/Modernizr/master/feature-detects/workers-sharedworkers.js"></script>

<script>
(function(){

Expand Down
3 changes: 2 additions & 1 deletion test/js/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ test('Modernizr properties are looking good',function(){
var count = 0,
nobool = TEST.API.concat(TEST.inputs)
.concat(TEST.audvid)
.concat(TEST.privates);
.concat(TEST.privates)
.concat(['textarea']); // due to forms-placeholder.js test

for (var prop in window.Modernizr){
if (Modernizr.hasOwnProperty(prop)){
Expand Down

0 comments on commit 2a4753d

Please sign in to comment.