|
@@ -21,7 +21,7 @@ $core.method({
|
|
selector: "testedClass",
|
|
selector: "testedClass",
|
|
protocol: "fixture",
|
|
protocol: "fixture",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
return $globals.Silk;
|
|
return $globals.Silk;
|
|
|
|
|
|
},
|
|
},
|
|
@@ -42,7 +42,7 @@ $core.method({
|
|
selector: "assertBodyEndsWith:",
|
|
selector: "assertBodyEndsWith:",
|
|
protocol: "fixture",
|
|
protocol: "fixture",
|
|
fn: function (aString){
|
|
fn: function (aString){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var sanitizedBody,sanitizedAssertion;
|
|
var sanitizedBody,sanitizedAssertion;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -62,8 +62,8 @@ $3=$recv(sanitizedAssertion)._size();
|
|
$ctx1.sendIdx["size"]=2;
|
|
$ctx1.sendIdx["size"]=2;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
$1=$recv($2).__gt_eq($3);
|
|
$1=$recv($2).__gt_eq($3);
|
|
-self._assert_($1);
|
|
|
|
-self._assert_equals_($recv(sanitizedBody)._last_($recv(sanitizedAssertion)._size()),sanitizedAssertion);
|
|
|
|
|
|
+$self._assert_($1);
|
|
|
|
+$self._assert_equals_($recv(sanitizedBody)._last_($recv(sanitizedAssertion)._size()),sanitizedAssertion);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"assertBodyEndsWith:",{aString:aString,sanitizedBody:sanitizedBody,sanitizedAssertion:sanitizedAssertion},$globals.SilkTest)});
|
|
}, function($ctx1) {$ctx1.fill(self,"assertBodyEndsWith:",{aString:aString,sanitizedBody:sanitizedBody,sanitizedAssertion:sanitizedAssertion},$globals.SilkTest)});
|
|
@@ -83,7 +83,7 @@ $core.method({
|
|
selector: "assertBodyEndsWithOneOf:",
|
|
selector: "assertBodyEndsWithOneOf:",
|
|
protocol: "fixture",
|
|
protocol: "fixture",
|
|
fn: function (aStringArray){
|
|
fn: function (aStringArray){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var sanitizedBody,err;
|
|
var sanitizedBody,err;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -115,8 +115,8 @@ $3=$recv(sanitizedAssertion)._size();
|
|
$ctx3.sendIdx["size"]=2;
|
|
$ctx3.sendIdx["size"]=2;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
$1=$recv($2).__gt_eq($3);
|
|
$1=$recv($2).__gt_eq($3);
|
|
-self._assert_($1);
|
|
|
|
-self._assert_equals_($recv(sanitizedBody)._last_($recv(sanitizedAssertion)._size()),sanitizedAssertion);
|
|
|
|
|
|
+$self._assert_($1);
|
|
|
|
+$self._assert_equals_($recv(sanitizedBody)._last_($recv(sanitizedAssertion)._size()),sanitizedAssertion);
|
|
throw $early=[self];
|
|
throw $early=[self];
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
|
|
@@ -157,14 +157,14 @@ $core.method({
|
|
selector: "setUp",
|
|
selector: "setUp",
|
|
protocol: "fixture",
|
|
protocol: "fixture",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-self["@fixtureDiv"]=$recv(document)._createElement_("div");
|
|
|
|
-$recv($recv(document)._body())._appendChild_(self["@fixtureDiv"]);
|
|
|
|
-$recv(self["@fixtureDiv"])._setAttribute_to_("id","fixture");
|
|
|
|
-$recv(self["@fixtureDiv"])._innerHTML_("sentinel");
|
|
|
|
|
|
+$self["@fixtureDiv"]=$recv(document)._createElement_("div");
|
|
|
|
+$recv($recv(document)._body())._appendChild_($self["@fixtureDiv"]);
|
|
|
|
+$recv($self["@fixtureDiv"])._setAttribute_to_("id","fixture");
|
|
|
|
+$recv($self["@fixtureDiv"])._innerHTML_("sentinel");
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"setUp",{},$globals.SilkTest)});
|
|
}, function($ctx1) {$ctx1.fill(self,"setUp",{},$globals.SilkTest)});
|
|
@@ -184,7 +184,7 @@ $core.method({
|
|
selector: "tearDown",
|
|
selector: "tearDown",
|
|
protocol: "fixture",
|
|
protocol: "fixture",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var lastChild;
|
|
var lastChild;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -195,7 +195,7 @@ $1=$recv(document)._body();
|
|
$ctx1.sendIdx["body"]=1;
|
|
$ctx1.sendIdx["body"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
lastChild=$recv($1)._lastChild();
|
|
lastChild=$recv($1)._lastChild();
|
|
-self._assert_equals_(lastChild,self["@fixtureDiv"]);
|
|
|
|
|
|
+$self._assert_equals_(lastChild,$self["@fixtureDiv"]);
|
|
$recv($recv(document)._body())._removeChild_(lastChild);
|
|
$recv($recv(document)._body())._removeChild_(lastChild);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -216,7 +216,7 @@ $core.method({
|
|
selector: "testInsertTable",
|
|
selector: "testInsertTable",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var d,tbl;
|
|
var d,tbl;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -250,7 +250,7 @@ $recv($3)._TD_("E");
|
|
$ctx1.sendIdx["TD:"]=5;
|
|
$ctx1.sendIdx["TD:"]=5;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
$recv($3)._TD_("F");
|
|
$recv($3)._TD_("F");
|
|
-self._assertBodyEndsWith_(">sentinel<table><tr><td>A</td><td>B</td><td>C</td></tr><tr><td>D</td><td>E</td><td>F</td></tr></table></div>");
|
|
|
|
|
|
+$self._assertBodyEndsWith_(">sentinel<table><tr><td>A</td><td>B</td><td>C</td></tr><tr><td>D</td><td>E</td><td>F</td></tr></table></div>");
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"testInsertTable",{d:d,tbl:tbl},$globals.SilkTest)});
|
|
}, function($ctx1) {$ctx1.fill(self,"testInsertTable",{d:d,tbl:tbl},$globals.SilkTest)});
|
|
@@ -270,7 +270,7 @@ $core.method({
|
|
selector: "testInsertTable2",
|
|
selector: "testInsertTable2",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var d,tbl;
|
|
var d,tbl;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -306,7 +306,7 @@ $ctx1.sendIdx["TD:"]=5;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
$6=[$7,$8,$recv($globals.Silk)._TD_("F")];
|
|
$6=[$7,$8,$recv($globals.Silk)._TD_("F")];
|
|
$recv($1)._TR_($6);
|
|
$recv($1)._TR_($6);
|
|
-self._assertBodyEndsWith_(">sentinel<table><tr><td>A</td><td>B</td><td>C</td></tr><tr><td>D</td><td>E</td><td>F</td></tr></table></div>");
|
|
|
|
|
|
+$self._assertBodyEndsWith_(">sentinel<table><tr><td>A</td><td>B</td><td>C</td></tr><tr><td>D</td><td>E</td><td>F</td></tr></table></div>");
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"testInsertTable2",{d:d,tbl:tbl},$globals.SilkTest)});
|
|
}, function($ctx1) {$ctx1.fill(self,"testInsertTable2",{d:d,tbl:tbl},$globals.SilkTest)});
|
|
@@ -326,7 +326,7 @@ $core.method({
|
|
selector: "testNestedDIVsWithAttributes",
|
|
selector: "testNestedDIVsWithAttributes",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var s;
|
|
var s;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
@@ -388,7 +388,7 @@ return $recv($globals.Transcript)._show_("button pressed");
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
}));
|
|
}));
|
|
-self._assertBodyEndsWithOneOf_([">sentinel<div class=\x22mySilkContainerClass\x22 id=\x22container\x22><div id=\x22contentarea\x22>here comes the content</div><div class=\x22myToolbarClass\x22 id=\x22toolbar\x22><button>do something</button></div></div></div>", ">sentinel<div id=\x22container\x22 class=\x22mySilkContainerClass\x22><div id=\x22contentarea\x22>here comes the content</div><div id=\x22toolbar\x22 class=\x22myToolbarClass\x22><button>do something</button></div></div></div>"]);
|
|
|
|
|
|
+$self._assertBodyEndsWithOneOf_([">sentinel<div class=\x22mySilkContainerClass\x22 id=\x22container\x22><div id=\x22contentarea\x22>here comes the content</div><div class=\x22myToolbarClass\x22 id=\x22toolbar\x22><button>do something</button></div></div></div>", ">sentinel<div id=\x22container\x22 class=\x22mySilkContainerClass\x22><div id=\x22contentarea\x22>here comes the content</div><div id=\x22toolbar\x22 class=\x22myToolbarClass\x22><button>do something</button></div></div></div>"]);
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx1) {$ctx1.fill(self,"testNestedDIVsWithAttributes",{s:s},$globals.SilkTest)});
|
|
}, function($ctx1) {$ctx1.fill(self,"testNestedDIVsWithAttributes",{s:s},$globals.SilkTest)});
|
|
@@ -408,15 +408,15 @@ $core.method({
|
|
selector: "testOnClickEvent",
|
|
selector: "testOnClickEvent",
|
|
protocol: "testing",
|
|
protocol: "testing",
|
|
fn: function (){
|
|
fn: function (){
|
|
-var self=this;
|
|
|
|
|
|
+var self=this,$self=this;
|
|
var s,para;
|
|
var s,para;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
s="#fixture"._asSilk();
|
|
s="#fixture"._asSilk();
|
|
para=$recv(s)._P_("DOM");
|
|
para=$recv(s)._P_("DOM");
|
|
-self._timeout_((100));
|
|
|
|
-$recv(self._async_((function(){
|
|
|
|
|
|
+$self._timeout_((100));
|
|
|
|
+$recv($self._async_((function(){
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx2) {
|
|
return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
@@ -424,7 +424,7 @@ $recv(para)._on_bind_("click",(function(){
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx3) {
|
|
return $core.withContext(function($ctx3) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
-return self._finished();
|
|
|
|
|
|
+return $self._finished();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
|
|
}, function($ctx3) {$ctx3.fillBlock({},$ctx2,2)});
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|