diff options
Diffstat (limited to 'test/data/support/getComputedSupport.js')
-rw-r--r-- | test/data/support/getComputedSupport.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/data/support/getComputedSupport.js b/test/data/support/getComputedSupport.js new file mode 100644 index 000000000..ce3f118ea --- /dev/null +++ b/test/data/support/getComputedSupport.js @@ -0,0 +1,14 @@ +function getComputedSupport( support ) { + var prop, + result = {}; + + for ( prop in support ) { + if ( typeof support[ prop ] === "function" ) { + result[ prop ] = support[ prop ](); + } else { + result[ prop ] = support[ prop ]; + } + } + + return result; +} |