Skip to content
Commits on Oct 8, 2011
  1. @ryanseddon

    Initial stuff

    ryanseddon committed Oct 9, 2011
Commits on May 26, 2011
  1. @ryanseddon

    Fixes issues #277 & #270

    ryanseddon committed May 26, 2011
    - Elements injected with injectElementWithStyles was failing to get correct offsetWidth/Height in IE6/7
    - Changed soft hyphen entity to be XML friendly see #270
    - Adjuested testStyles unit test to allow IE6 to get correct offsetHeight value.
  2. @paulirish
  3. @paulirish
Commits on May 25, 2011
  1. @paulirish

    Why hello, caniuse.com test suite! This is big! ... details below:

    paulirish committed May 25, 2011
    Caniuse has a great collection of visual ref tests, side by side with the Modernizr feature test.
    
    This allows us to visually see these features and verify they match our feature tests.
    
    Everything in the caniuse suite works, except for the audio/video tests.
    
    The huge benefit is that now we can screenshot this one page (on a mobile device per say),
    and get the full rundown of its features, even being able to point out any false
    positives.
    
    Thanks Alexis Deveria for creating such a great collection of tests. :)
  2. @paulirish
  3. @paulirish
  4. @paulirish
Commits on May 24, 2011
  1. @paulirish

    Major. Plugin API changes.. And unit tests for 'em.. Details below:

    paulirish committed May 24, 2011
    * Modernizr.event() -> Modernizr.hasEvent()
    * Modernizr.styleElem() -> Modernizr.testStyles()
    
    Added unit tests for testStyles(), the _properties, testProp(), testAllProps()
    
    * More inline docs for the API methods
    * Also the element added via injectElementWithStyles aka testStyles now has an id of #modernizr, not #test
    
    ref #272
  2. @paulirish
  3. @paulirish
Commits on May 23, 2011
  1. @paulirish
  2. @paulirish

    test suite: new js folder

    paulirish committed May 22, 2011
  3. @paulirish

    merge in all the modernizr output into this page. we'll stick to this…

    paulirish committed May 22, 2011
    … one test page from now on.
  4. @paulirish

    update to latest qunit code.

    paulirish committed May 22, 2011
  5. @paulirish
  6. @paulirish

    small unit testing cleanup.

    paulirish committed May 22, 2011
  7. @paulirish
  8. @paulirish
  9. @paulirish

    tweaking detect-globals.js for headless use. wiring up to existing te…

    paulirish committed May 22, 2011
    …sts. OH HAI Object.keys polyfill!
  10. @paulirish
  11. @paulirish
Commits on May 22, 2011
  1. @paulirish
  2. @paulirish
  3. @paulirish

    two new addTest signatures: addTest(feature, bool) and addTest({ feat…

    paulirish committed May 22, 2011
    …ure : fn, feature2 : bool });
    
    thanks mucho for both code and API feedback to:
    * @gnarf
    * @aerotwist
    * @chendrix
    * skylamer
    
    thx a BUNCH also to @wheresrhys who brought up the idea and provided an initial implementation.
    
    fixes #269. fixes #239
  4. @paulirish

    more docs around Modernizr.prefixed(). nice transitionEnd event name …

    paulirish committed May 22, 2011
    …example from desandro. thxx.
    
    ref #233
  5. @paulirish
  6. @paulirish

    Modernizr.prefixed() returns the prefixed or nonprefixed property nam…

    paulirish committed May 22, 2011
    …e variant of your input
    
    Modernizr.prefixed('boxSizing') // 'MozBoxSizing'
    
    fixes #233
    
    Properties must be passed as dom-style camelcase, rather than `box-sizing` hypentated style.
    
    Return values will also be the camelCase variant, if you need to translate that to hypenated style use:
    
        str.replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-');
Commits on May 21, 2011
  1. @paulirish
  2. @paulirish
  3. @paulirish
  4. @paulirish
  5. @paulirish

    box-sizing test. fixes #248

    paulirish committed May 21, 2011
  6. @paulirish
  7. @paulirish
Something went wrong with that request. Please try again.