Permalink
Browse files

Moved and removed a bunch of tests

  • Loading branch information...
1 parent 07cdd9b commit 0b4851f535fe215dee400b044a9412da27311401 @ryanwilliams committed Jan 9, 2012
Showing with 1 addition and 85 deletions.
  1. +0 −3 .gitmodules
  2. +0 −1 tests/src/commonjs
  3. +0 −51 tests/src/init_commonjs.js
  4. +0 −29 tests/src/qunit.js
  5. 0 tests/src/{cocos2d → tests}/TestCase.js
  6. 0 tests/src/{cocos2d → tests}/TestSuite.js
  7. +1 −1 tests/src/{cocos2d/LabelTest → tests/labels}/LabelAtlas.js
  8. 0 tests/src/{cocos2d/LabelTest → tests/labels}/index.js
  9. BIN tests/src/{cocos2d → tests}/resources/TileMaps/fixed-ortho-test2.png
  10. BIN tests/src/{cocos2d → tests}/resources/TileMaps/iso-test.png
  11. 0 tests/src/{cocos2d → tests}/resources/TileMaps/iso-test.tmx
  12. 0 tests/src/{cocos2d → tests}/resources/TileMaps/ortho-objects.tmx
  13. BIN tests/src/{cocos2d → tests}/resources/TileMaps/ortho-test1.png
  14. 0 tests/src/{cocos2d → tests}/resources/TileMaps/orthogonal-test1.tmx
  15. 0 tests/src/{cocos2d → tests}/resources/TileMaps/orthogonal-test1.tsx
  16. 0 tests/src/{cocos2d → tests}/resources/TileMaps/orthogonal-test2.tmx
  17. 0 tests/src/{cocos2d → tests}/resources/TileMaps/orthogonal-test4.tmx
  18. BIN tests/src/{cocos2d → tests}/resources/animations/dragon_animation.png
  19. 0 tests/src/{cocos2d → tests}/resources/animations/grossini.plist
  20. BIN tests/src/{cocos2d → tests}/resources/animations/grossini.png
  21. 0 tests/src/{cocos2d → tests}/resources/animations/grossini_blue.plist
  22. BIN tests/src/{cocos2d → tests}/resources/animations/grossini_blue.png
  23. 0 tests/src/{cocos2d → tests}/resources/animations/grossini_gray.plist
  24. BIN tests/src/{cocos2d → tests}/resources/animations/grossini_gray.png
  25. BIN tests/src/{cocos2d → tests}/resources/b1.png
  26. BIN tests/src/{cocos2d → tests}/resources/b2.png
  27. BIN tests/src/{cocos2d → tests}/resources/f1.png
  28. BIN tests/src/{cocos2d → tests}/resources/f2.png
  29. BIN tests/src/{cocos2d → tests}/resources/fonts/tuffy_bold_italic-charmap.png
  30. BIN tests/src/{cocos2d → tests}/resources/grossini.png
  31. BIN tests/src/{cocos2d → tests}/resources/grossini_dance_atlas-red.png
  32. BIN tests/src/{cocos2d → tests}/resources/grossini_dance_atlas.png
  33. BIN tests/src/{cocos2d → tests}/resources/grossinis_sister1.png
  34. BIN tests/src/{cocos2d → tests}/resources/grossinis_sister2.png
  35. BIN tests/src/{cocos2d → tests}/resources/r1.png
  36. BIN tests/src/{cocos2d → tests}/resources/r2.png
  37. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/Sprite1.js
  38. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/SpriteAnchorPoint.js
  39. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/SpriteAnimationCache.js
  40. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/SpriteAnimationFlip.js
  41. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/SpriteBatchNode1.js
  42. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/SpriteColorOpacity.js
  43. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/SpriteZOrder.js
  44. 0 tests/src/{cocos2d/SpriteTest → tests/sprites}/index.js
View
@@ -1,6 +1,3 @@
-[submodule "tests/src/commonjs"]
- path = tests/src/commonjs
- url = https://github.com/commonjs/commonjs.git
[submodule "support/node-builds"]
path = support/node-builds
url = https://github.com/ryanwilliams/node-builds-v4.git
Submodule commonjs deleted from 8203f2
View
@@ -1,51 +0,0 @@
-/*globals module exports resource require window*/
-/*jslint undef: true, strict: true, white: true, newcap: true, browser: true, indent: 4 */
-"use strict";
-
-var container = parent.window.document.getElementById('cocos2d-application');
-container.className = 'logs';
-
-var logNum = 0;
-window.print = function (msg, tag) {
- logNum++;
- var div = document.createElement('div');
- div.appendChild(document.createTextNode(logNum + '. [' + currentTest.split('/').pop().toUpperCase() + '] ' + msg));
- div.className = 'log ' + tag;
- container.appendChild(div);
- container.scrollTop = container.offsetHeight;
-};
-
-while (container.firstChild) {
- container.removeChild(container.firstChild);
-}
-
-var tests = [
- '/commonjs/tests/modules/1.0/absolute',
- '/commonjs/tests/modules/1.0/cyclic',
- '/commonjs/tests/modules/1.0/determinism',
- '/commonjs/tests/modules/1.0/exactExports',
- '/commonjs/tests/modules/1.0/hasOwnProperty',
- '/commonjs/tests/modules/1.0/method',
- '/commonjs/tests/modules/1.0/missing',
- '/commonjs/tests/modules/1.0/monkeys',
- '/commonjs/tests/modules/1.0/nested',
- '/commonjs/tests/modules/1.0/relative',
- '/commonjs/tests/modules/1.0/transitive'
-];
-
-var i = 0
- , currentTest
-function nextTest() {
- currentTest = tests[i];
- require.paths.push(currentTest);
- require('program');
- require.paths.splice(require.paths.indexOf(currentTest), 1);
- i++;
- if (i < tests.length) {
- setTimeout(nextTest, 0);
- }
-}
-
-exports.main = function () {
- nextTest();
-}
View
@@ -1,29 +0,0 @@
-/*globals module exports resource require*/
-/*jslint undef: true, strict: true, white: true, newcap: true, browser: true, indent: 4 */
-"use strict";
-
-var q = require('qunit');
-
-q.test("a basic test example", function () {
- q.ok(true, "this test is fine");
- var value = "hello";
- q.equals("hello", value, "We expect value to be hello");
-});
-
-q.module("Module A");
-
-q.test("first test within module", function () {
- q.ok(true, "all pass");
-});
-
-q.test("second test within module", function () {
- q.ok(true, "all pass");
-});
-
-q.module("Module B");
-
-q.test("some other test", function () {
- q.expect(2);
- q.equals(true, false, "failing test");
- q.equals(true, true, "passing test");
-});
File renamed without changes.
File renamed without changes.
@@ -42,7 +42,7 @@ function TestLabelAtlas () {
})
- var label2 = new LabelAtlas({string: "0123456789"
+ var label2 = new LabelAtlas({ string: "0123456789"
, charMapFile: path.join(__dirname, '../resources/fonts/tuffy_bold_italic-charmap.png')
, itemWidth: 48
, itemHeight: 64

0 comments on commit 0b4851f

Please sign in to comment.