From 8948fae78089f0c08b3d36fcf5e03e6d9e920a98 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 9 Mar 2013 23:52:20 -0800 Subject: [PATCH] Update vendor/platform.js but remove it from test.'s. Former-commit-id: 4f72d2b4454e7de42754c98c7b17f47f1f30718c --- test/test.js | 6 ------ vendor/benchmark.js/README.md | 24 ++++++++---------------- vendor/platform.js/README.md | 2 +- vendor/platform.js/platform.js | 2 +- 4 files changed, 10 insertions(+), 24 deletions(-) diff --git a/test/test.js b/test/test.js index aea6b6ca9..fceede523 100644 --- a/test/test.js +++ b/test/test.js @@ -49,12 +49,6 @@ _.runInContext(window) )); - /** The `platform` object to check */ - var platform = window.platform || (window.platform = ( - load('../vendor/platform.js/platform.js') || - window.platform - )); - /** Used to pass falsey values to methods */ var falsey = [ , diff --git a/vendor/benchmark.js/README.md b/vendor/benchmark.js/README.md index ec132396b..7bd96a68b 100644 --- a/vendor/benchmark.js/README.md +++ b/vendor/benchmark.js/README.md @@ -15,13 +15,16 @@ For a list of upcoming features, check out our [roadmap](https://github.com/best ## Support -Benchmark.js has been tested in at least Adobe AIR 3.1, Chrome 5~25, Firefox 1~19, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.22, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5. +Benchmark.js has been tested in at least Chrome 5~25, Firefox 1~19, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.22, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5. ## Installation and usage -In a browser or Adobe AIR: +Benchmark.js’ only hard dependency is [Lo-Dash](http://lodash.com/). + +In a browser: ```html + ``` @@ -68,25 +71,14 @@ load('benchmark.js'); In an AMD loader like [RequireJS](http://requirejs.org/): ```js -require({ - 'paths': { - 'benchmark': 'path/to/benchmark' - } -}, -['benchmark'], function(Benchmark) { - console.log(Benchmark.version); -}); - -// or with platform.js -// https://github.com/bestiejs/platform.js require({ 'paths': { 'benchmark': 'path/to/benchmark', + 'lodash': 'path/to/lodash', 'platform': 'path/to/platform' } }, -['benchmark', 'platform'], function(Benchmark, platform) { - Benchmark.platform = platform; +['benchmark'], function(Benchmark) { console.log(Benchmark.platform.name); }); ``` @@ -108,7 +100,7 @@ suite.add('RegExp#test', function() { console.log(String(event.target)); }) .on('complete', function() { - console.log('Fastest is ' + this.filter('fastest').pluck('name')); + console.log('Fastest is ' + _.pluck(this.filter('fastest'), 'name')); }) // run async .run({ 'async': true }); diff --git a/vendor/platform.js/README.md b/vendor/platform.js/README.md index 088375567..3fb842faf 100644 --- a/vendor/platform.js/README.md +++ b/vendor/platform.js/README.md @@ -18,7 +18,7 @@ For a list of upcoming features, check out our [roadmap](https://github.com/best ## Support -Platform.js has been tested in at least Adobe AIR 3.1, Chrome 5~25, Firefox 1~19, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.22, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5. +Platform.js has been tested in at least Chrome 5~25, Firefox 1~19, IE 6-10, Opera 9.25-12, Safari 3-6, Node.js 0.4.8-0.8.22, Narwhal 0.3.2, PhantomJS 1.8.1, RingoJS 0.9, and Rhino 1.7RC5. ## Installation and usage diff --git a/vendor/platform.js/platform.js b/vendor/platform.js/platform.js index 82869ff14..883a2a288 100644 --- a/vendor/platform.js/platform.js +++ b/vendor/platform.js/platform.js @@ -1002,6 +1002,6 @@ else { // use square bracket notation so Closure Compiler won't munge `platform` // http://code.google.com/closure/compiler/docs/api-tutorial3.html#export - window['platform'] = parse(); + window.platform = parse(); } }(this));