1
0

Silk-Tests.js 929 B

12345678910111213141516171819202122232425262728293031
  1. define("silk/Silk-Tests", ["amber/boot", "amber_core/SUnit", "domite/DOMite-Tests"], function($boot){
  2. var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
  3. $core.addPackage('Silk-Tests');
  4. $core.packages["Silk-Tests"].innerEval = function (expr) { return eval(expr); };
  5. $core.packages["Silk-Tests"].transport = {"type":"amd","amdNamespace":"silk"};
  6. $core.addClass('SilkInheritedTest', $globals.DOMiteTest, [], 'Silk-Tests');
  7. $core.addMethod(
  8. $core.method({
  9. selector: "testedClass",
  10. protocol: 'fixture',
  11. fn: function (){
  12. var self=this;
  13. function $Silk(){return $globals.Silk||(typeof Silk=="undefined"?nil:Silk)}
  14. return $Silk();
  15. },
  16. //>>excludeStart("ide", pragmas.excludeIdeData);
  17. args: [],
  18. source: "testedClass\x0a\x09^ Silk",
  19. referencedClasses: ["Silk"],
  20. //>>excludeEnd("ide");
  21. messageSends: []
  22. }),
  23. $globals.SilkInheritedTest);
  24. $core.addClass('SilkTest', $globals.TestCase, [], 'Silk-Tests');
  25. });