mirror of
https://github.com/wassname/phaser.git
synced 2026-08-15 12:45:11 +08:00
Tilemap collision working but needs speeding up
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
var grunt = require('grunt');
|
||||
var fs = require('fs');
|
||||
|
||||
exports.copy = {
|
||||
main: function(test) {
|
||||
'use strict';
|
||||
|
||||
test.expect(3);
|
||||
|
||||
var actual = fs.readdirSync('tmp/copy_test_files').sort();
|
||||
var expected = fs.readdirSync('test/expected/copy_test_files').sort();
|
||||
test.deepEqual(expected, actual, 'should copy several files');
|
||||
|
||||
actual = fs.readdirSync('tmp/copy_test_mix').sort();
|
||||
expected = fs.readdirSync('test/expected/copy_test_mix').sort();
|
||||
test.deepEqual(expected, actual, 'should copy a mix of folders and files');
|
||||
|
||||
actual = fs.readdirSync('tmp/copy_test_v0.1.0').sort();
|
||||
expected = fs.readdirSync('test/expected/copy_test_v0.1.0').sort();
|
||||
test.deepEqual(expected, actual, 'should parse both dest and src templates');
|
||||
|
||||
test.done();
|
||||
},
|
||||
|
||||
flatten: function(test) {
|
||||
'use strict';
|
||||
|
||||
test.expect(1);
|
||||
|
||||
var actual = fs.readdirSync('tmp/copy_test_flatten').sort();
|
||||
var expected = fs.readdirSync('test/expected/copy_test_flatten').sort();
|
||||
test.deepEqual(expected, actual, 'should create a flat structure');
|
||||
|
||||
test.done();
|
||||
},
|
||||
|
||||
single: function(test) {
|
||||
'use strict';
|
||||
|
||||
test.expect(1);
|
||||
|
||||
var actual = grunt.file.read('tmp/single.js');
|
||||
var expected = grunt.file.read('test/expected/single.js');
|
||||
test.equal(expected, actual, 'should allow for single file copy');
|
||||
|
||||
test.done();
|
||||
}
|
||||
};
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){});
|
||||
+1
@@ -0,0 +1 @@
|
||||
console.log('hello');
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){$.noConflict();});
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){});
|
||||
+1
@@ -0,0 +1 @@
|
||||
console.log('hello');
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){jQuery});
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){$.noConflict();});
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){jQuery});
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){});
|
||||
+1
@@ -0,0 +1 @@
|
||||
console.log('hello');
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){$.noConflict();});
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){});
|
||||
+1
@@ -0,0 +1 @@
|
||||
#This is a hidden file!!!
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){$.noConflict();});
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){jQuery});
|
||||
+1
@@ -0,0 +1 @@
|
||||
$(document).ready(function(){});
|
||||
+1
@@ -0,0 +1 @@
|
||||
console.log('hello');
|
||||
Reference in New Issue
Block a user