load additional files if the loaded files are not using modules.

refactored unittest files.
This commit is contained in:
dloverin committed 2013-05-10 12:34:17 -04:00
1 parent 3ec230c473
commit f2ba60c17f
19 files changed
+645 -135

No files matched your search

@@ -0,0 +1,10 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, $ */
define(function (require, exports, module) {
"use strict";
exports.a = function (a, b) {};
exports.b = function () {
return "a string";
};
exports.j = "hi";
});
@@ -0,0 +1,49 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global brackets, require */
var A1 = { propA : 1 },
A2 = { propA : 2 },
A3 = A2;
function funB(paramB1, paramB2) {
'use strict';
var B1 = { propB : 1 },
B2 = { propB : 2 };
function funC(paramC1, paramC2) {
var C1 = { propC : 1 },
C2 = { propC : 2 };
B1.propB = 0;
C1.propC = 0;
B1.foo = 0;
console.log("hello\\\" world!");
}
var s = "a string";
var r = s;
var t = r;
}
/**
* @param {string} a
* @param {number} b
*/
function funD(a, b) {
"use strict";
return {x: a, y: b};
}
require(["MyModule"], function (myModule) {
'use strict';
var x = myModule.a;
});
funB();
var x = A1;
var arr = [];
arr["my-key"] = 1;
arr["for"] = 10;
@@ -0,0 +1,14 @@
/*jslint vars: true, plusplus: true, devel: true, rhino: true, nomen: true, indent: 4, maxerr: 50 */
/*global crazyGlobal, anotherCrazyGlobal */
var D1 = { propD : 1 },
D2 = { propD : 2 };
function funE(paramE1, paramE2) {
'use strict';
var E1 = { propE : 1 },
E2 = { propE : 2 };
console.log("a very nice string");
}
@@ -0,0 +1,8 @@
var app = app || {};
(function () {
'use strict';
app.a = 1;
}());
@@ -0,0 +1,11 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global */
var app = app || {};
(function () {
'use strict';
app.d = 8;
}());
@@ -0,0 +1,11 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global */
var app = app || {};
(function () {
'use strict';
app.b = 2;
}());
@@ -0,0 +1,11 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global */
var app = app || {};
(function () {
'use strict';
app.b1 = 21;
}());
@@ -0,0 +1,10 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global */
var app = app || {};
(function () {
'use strict';
app.c = 3;
}());
@@ -0,0 +1,11 @@
/*jslint vars: true, plusplus: true, devel: true, browser: true, nomen: true, indent: 4, maxerr: 50 */
/*global */
var app = app || {};
(function () {
'use strict';
app.d = 4;
}());