|
@@ -1,9 +1,31 @@
|
|
|
-define("silk/Silk-Tests", ["amber/boot", "amber_core/SUnit"], function($boot){
|
|
|
+define("silk/Silk-Tests", ["amber/boot", "amber_core/SUnit", "domite/DOMite-Tests"], function($boot){
|
|
|
var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
|
|
|
$core.addPackage('Silk-Tests');
|
|
|
$core.packages["Silk-Tests"].innerEval = function (expr) { return eval(expr); };
|
|
|
$core.packages["Silk-Tests"].transport = {"type":"amd","amdNamespace":"silk"};
|
|
|
|
|
|
+$core.addClass('SilkInheritedTest', $globals.DOMiteTest, [], 'Silk-Tests');
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "testedClass",
|
|
|
+protocol: 'fixture',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+function $Silk(){return $globals.Silk||(typeof Silk=="undefined"?nil:Silk)}
|
|
|
+return $Silk();
|
|
|
+
|
|
|
+},
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
+args: [],
|
|
|
+source: "testedClass\x0a\x09^ Silk",
|
|
|
+referencedClasses: ["Silk"],
|
|
|
+//>>excludeEnd("ide");
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.SilkInheritedTest);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
$core.addClass('SilkTest', $globals.TestCase, [], 'Silk-Tests');
|
|
|
|
|
|
});
|