Permalink
Browse files

Tests now run with mocha

  • Loading branch information...
1 parent 050d008 commit d94b3a432fff765f2bd21c24bd4f8a901048250a @fgnass committed Jan 26, 2012
Showing with 2,250 additions and 3,191 deletions.
  1. +5 −1 package.json
  2. +0 −14 src/zepto.js
  3. +0 −1,060 test/evidence.js
  4. +127 −0 test/harness/assert.js
  5. +16 −0 test/harness/index.js
  6. +213 −0 test/harness/zepto.html
  7. +1,887 −14 test/index.js
  8. +2 −0 test/mocha.opts
  9. +0 −2,102 test/zepto.html
View
@@ -9,8 +9,12 @@
"type": "git",
"url": "https://github.com/fgnass/zepto-node.git"
},
+ "scripts": {
+ "test": "./node_modules/.bin/mocha"
+ },
"devDependencies": {
- "domino": "0.0.1"
+ "domino": "0.0.1",
+ "mocha": "0.10.x"
},
"license": "MIT"
}
View
@@ -451,20 +451,6 @@ Zepto.fn = {
}
});
- ['width', 'height'].forEach(function(dimension){
- Zepto.fn[dimension] = function(value) {
- var $ = this.$;
- var offset, Dimension = dimension.replace(/./, function(m) { return m[0].toUpperCase() });
- if (value === undefined) return this[0] == $.window ? $.window['inner' + Dimension] :
- this[0] == $.document ? $.document.documentElement['offset' + Dimension] :
- (offset = this.offset()) && offset[dimension];
- else return this.each(function(idx){
- var el = $(this);
- el.css(dimension, funcArg(this, value, idx, el[dimension]()));
- });
- }
- });
-
function insert(operator, target, node) {
var parent = (operator % 2) ? target : target.parentNode;
parent && parent.insertBefore(node,
Oops, something went wrong.

0 comments on commit d94b3a4

Please sign in to comment.