Skip to content
Browse files

Build @ 1.7.1

  • Loading branch information...
1 parent 39f0a97 commit dbbea30217bd9abf2b5dcf461021c806d98297e0 @ryanve committed Nov 12, 2013
Showing with 5 additions and 6 deletions.
  1. +2 −3 aok.js
  2. +2 −2 aok.min.js
  3. +1 −1 package.json
View
5 aok.js
@@ -1,5 +1,5 @@
/*!
- * aok 1.7.0+201311032202
+ * aok 1.7.1+201311122117
* https://github.com/ryanve/aok
* MIT License 2013 Ryan Van Etten
*/
@@ -14,7 +14,6 @@
, owns = plain.hasOwnProperty
, toString = plain.toString
, win = typeof window != 'undefined' && window
- , doc = typeof document != 'undefined' && document
, nativeConsole = typeof console != 'undefined' && console
, hasAlert = win && 'alert' in win
, uid = 0
@@ -218,7 +217,7 @@
* @return {Node|boolean}
*/
aok['id'] = function(n) {
- return doc.getElementById(n) || false;
+ return document.getElementById(n) || false;
};
return aok;
View
4 aok.min.js
@@ -1,6 +1,6 @@
/*!
- * aok 1.7.0+201311032202
+ * aok 1.7.1+201311122117
* https://github.com/ryanve/aok
* MIT License 2013 Ryan Van Etten
*/
-!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c():a[b]=c()}(this,"aok",function(){function a(a){"object"==typeof a&&a?n(this,a):arguments.length&&(this.test=a),this.init()}function b(b){return arguments.length?new a(b):new a}var c,d=this,e={},f=e.hasOwnProperty,g=e.toString,h="undefined"!=typeof window&&window,i="undefined"!=typeof document&&document,j="undefined"!=typeof console&&console,k=h&&"alert"in h,l=0,m=function(a,b){return f.call(a,b)},n=function(a,b){for(var c in b)m(b,c)&&(a[c]=b[c]);return a},o=function(a){return n(function(){a.apply(this,arguments)},a)};return c=b.prototype=a.prototype,n(b,b.console=function(a,b,c,d){function e(e,f,g){var h=b&&"function"==typeof b[e]?function(){b[e].apply(b,arguments)}:g?g:c?function(){h.force&&d.alert(e+": "+[].join.call(arguments," "))}:function(){};h.force=!!f,a[e]=h}return e("log"),e("trace"),e("info",1),e("warn",1),e("error",1),e("clear",0,function(){}),e("assert",1,function(b,c){b||a.warn(c)}),a}({},j,k,h)),c.express=b.express=o(b.log),c.pass="Pass",c.fail="Fail",c.init=function(){if(this===d)throw new Error("@this");return m(this,"id")||(this.id=++l),m(this,"test")&&this.run(),this},c.run=function(){if(this===d)throw new Error("@this");return this.test=!!b.result(this,"test"),this.handler()},c.cull=function(a){return this[this[null==a?"test":a]?"pass":"fail"]},c.handler=function(){var a=this.cull();return"function"==typeof a?a.call(this):this.express("#"+this.id+": "+this.explain(a)),this},c.explain=b.explain=function(a){return a=arguments.length?a:this,a===Object(a)?g.call(a):""+a},b.result=function(a,b,c){return c||b===c?(b=a,a=this):"function"==typeof b?b:b=a[b],"function"==typeof b?b.call(a):b},b.pass=function(a,b,c,d){if("number"==typeof b)return a?1:0;for(var e=a.length,f=0,g=0;e>f&&(!b.call(c,a[f],f++,a)||++g!==d););return g},b.fail=function(a,b,c,d){if("number"==typeof b)return a?0:1;for(var e=a.length,f=0,g=0;e>f&&(b.call(c,a[f],f++,a)||++g!==d););return g},b.perform=function(a,b){for(var c=0,d=+new Date;c++<a;)b.call(this);return+new Date-d},b.race=function(a,c){c=[].concat(c);for(var d=b.perform,e=c.length,f=0;e>f;)c[f]=d.call(this,a,c[f++]);return c},b.can=function(a){return function(){try{("string"==typeof a?this[a]:a).apply(this,arguments)}catch(b){return!1}return!0}},b.id=function(a){return i.getElementById(a)||!1},b});
+!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c():a[b]=c()}(this,"aok",function(){function a(a){"object"==typeof a&&a?m(this,a):arguments.length&&(this.test=a),this.init()}function b(b){return arguments.length?new a(b):new a}var c,d=this,e={},f=e.hasOwnProperty,g=e.toString,h="undefined"!=typeof window&&window,i="undefined"!=typeof console&&console,j=h&&"alert"in h,k=0,l=function(a,b){return f.call(a,b)},m=function(a,b){for(var c in b)l(b,c)&&(a[c]=b[c]);return a},n=function(a){return m(function(){a.apply(this,arguments)},a)};return c=b.prototype=a.prototype,m(b,b.console=function(a,b,c,d){function e(e,f,g){var h=b&&"function"==typeof b[e]?function(){b[e].apply(b,arguments)}:g?g:c?function(){h.force&&d.alert(e+": "+[].join.call(arguments," "))}:function(){};h.force=!!f,a[e]=h}return e("log"),e("trace"),e("info",1),e("warn",1),e("error",1),e("clear",0,function(){}),e("assert",1,function(b,c){b||a.warn(c)}),a}({},i,j,h)),c.express=b.express=n(b.log),c.pass="Pass",c.fail="Fail",c.init=function(){if(this===d)throw new Error("@this");return l(this,"id")||(this.id=++k),l(this,"test")&&this.run(),this},c.run=function(){if(this===d)throw new Error("@this");return this.test=!!b.result(this,"test"),this.handler()},c.cull=function(a){return this[this[null==a?"test":a]?"pass":"fail"]},c.handler=function(){var a=this.cull();return"function"==typeof a?a.call(this):this.express("#"+this.id+": "+this.explain(a)),this},c.explain=b.explain=function(a){return a=arguments.length?a:this,a===Object(a)?g.call(a):""+a},b.result=function(a,b,c){return c||b===c?(b=a,a=this):"function"==typeof b?b:b=a[b],"function"==typeof b?b.call(a):b},b.pass=function(a,b,c,d){if("number"==typeof b)return a?1:0;for(var e=a.length,f=0,g=0;e>f&&(!b.call(c,a[f],f++,a)||++g!==d););return g},b.fail=function(a,b,c,d){if("number"==typeof b)return a?0:1;for(var e=a.length,f=0,g=0;e>f&&(b.call(c,a[f],f++,a)||++g!==d););return g},b.perform=function(a,b){for(var c=0,d=+new Date;c++<a;)b.call(this);return+new Date-d},b.race=function(a,c){c=[].concat(c);for(var d=b.perform,e=c.length,f=0;e>f;)c[f]=d.call(this,a,c[f++]);return c},b.can=function(a){return function(){try{("string"==typeof a?this[a]:a).apply(this,arguments)}catch(b){return!1}return!0}},b.id=function(a){return document.getElementById(a)||!1},b});
View
2 package.json
@@ -1,7 +1,7 @@
{
"name": "aok",
"description": "Extensible test suite API.",
- "version": "1.7.0",
+ "version": "1.7.1",
"homepage": "https://github.com/ryanve/aok",
"author": "Ryan Van Etten",
"keywords": ["testing", "test suite", "javascript", "ender", "browser", "server"],

0 comments on commit dbbea30

Please sign in to comment.
Something went wrong with that request. Please try again.