|
@@ -75,7 +75,7 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $3,$2,$1,$4;
|
|
|
-$recv($recv($Domite())._new())._insertDomite_($recv($Domite())._newElement_("p"));
|
|
|
+$recv($recv($Domite())._new()).__lt_lt($recv($Domite())._newElement_("p"));
|
|
|
$3=$recv(document)._body();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["body"]=1;
|
|
@@ -95,10 +95,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testDefaultInsertElement\x0a\x09Domite new insertDomite: (Domite newElement: 'p').\x0a\x09self assert: (document body innerHTML endsWith: '<p></p>').\x0a\x09document body removeChild: document body lastChild",
|
|
|
+source: "testDefaultInsertElement\x0a\x09Domite new << (Domite newElement: 'p').\x0a\x09self assert: (document body innerHTML endsWith: '<p></p>').\x0a\x09document body removeChild: document body lastChild",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["insertDomite:", "new", "newElement:", "assert:", "endsWith:", "innerHTML", "body", "removeChild:", "lastChild"]
|
|
|
+messageSends: ["<<", "new", "newElement:", "assert:", "endsWith:", "innerHTML", "body", "removeChild:", "lastChild"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -113,7 +113,7 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
var $3,$2,$1,$4;
|
|
|
-$recv($recv($Domite())._new())._insertString_("a foo in a bar");
|
|
|
+$recv($recv($Domite())._new()).__lt_lt("a foo in a bar");
|
|
|
$3=$recv(document)._body();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["body"]=1;
|
|
@@ -133,10 +133,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testDefaultInsertString\x0a\x09Domite new insertString: 'a foo in a bar'.\x0a\x09self assert: (document body innerHTML endsWith: 'a foo in a bar').\x0a\x09document body removeChild: document body lastChild",
|
|
|
+source: "testDefaultInsertString\x0a\x09Domite new << 'a foo in a bar'.\x0a\x09self assert: (document body innerHTML endsWith: 'a foo in a bar').\x0a\x09document body removeChild: document body lastChild",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["insertString:", "new", "assert:", "endsWith:", "innerHTML", "body", "removeChild:", "lastChild"]
|
|
|
+messageSends: ["<<", "new", "assert:", "endsWith:", "innerHTML", "body", "removeChild:", "lastChild"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -150,23 +150,23 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$2,$5,$4,$3,$6;
|
|
|
-$1=$recv($Domite())._open();
|
|
|
-$recv($1)._insertString_("a foo in a bar");
|
|
|
-$2=$recv($1)._yourself();
|
|
|
-$recv($recv($Domite())._new())._insertDomite_($2);
|
|
|
-$5=$recv(document)._body();
|
|
|
+var $3,$2,$1,$4;
|
|
|
+$recv($recv($Domite())._new()).__lt_lt($recv($recv($Domite())._newStream()).__lt_lt("a foo in a bar"));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$3=$recv(document)._body();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["body"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$4=$recv($5)._innerHTML();
|
|
|
-$3=$recv($4)._endsWith_("a foo in a bar");
|
|
|
-self._assert_($3);
|
|
|
-$6=$recv(document)._body();
|
|
|
+$2=$recv($3)._innerHTML();
|
|
|
+$1=$recv($2)._endsWith_("a foo in a bar");
|
|
|
+self._assert_($1);
|
|
|
+$4=$recv(document)._body();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["body"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($6)._removeChild_($recv($recv(document)._body())._lastChild());
|
|
|
+$recv($4)._removeChild_($recv($recv(document)._body())._lastChild());
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"testDefaultInsertStringInFragment",{},$globals.DOMiteTest)});
|
|
@@ -174,10 +174,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testDefaultInsertStringInFragment\x0a\x09Domite new insertDomite: (Domite open insertString: 'a foo in a bar'; yourself).\x0a\x09self assert: (document body innerHTML endsWith: 'a foo in a bar').\x0a\x09document body removeChild: document body lastChild",
|
|
|
+source: "testDefaultInsertStringInFragment\x0a\x09Domite new << (Domite newStream << 'a foo in a bar').\x0a\x09self assert: (document body innerHTML endsWith: 'a foo in a bar').\x0a\x09document body removeChild: document body lastChild",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["insertDomite:", "new", "insertString:", "open", "yourself", "assert:", "endsWith:", "innerHTML", "body", "removeChild:", "lastChild"]
|
|
|
+messageSends: ["<<", "new", "newStream", "assert:", "endsWith:", "innerHTML", "body", "removeChild:", "lastChild"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -242,7 +242,7 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
d=$recv($Domite())._fromSelector_("html body div#fixture");
|
|
|
-$recv(d)._insertDomite_($recv($Domite())._newElement_("p"));
|
|
|
+$recv(d).__lt_lt($recv($Domite())._newElement_("p"));
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">sentinel<p></p></div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -251,10 +251,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testInsertElement\x0a\x09| d |\x0a\x09d := Domite fromSelector: 'html body div#fixture'.\x0a\x09d insertDomite: (Domite newElement: 'p').\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p></p></div>')",
|
|
|
+source: "testInsertElement\x0a\x09| d |\x0a\x09d := Domite fromSelector: 'html body div#fixture'.\x0a\x09d << (Domite newElement: 'p').\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p></p></div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromSelector:", "insertDomite:", "newElement:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromSelector:", "<<", "newElement:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -274,13 +274,16 @@ p=$recv($Domite())._newElement_("p");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["newElement:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(d)._insertDomite_(p);
|
|
|
+$recv(d).__lt_lt(p);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
s=$recv($Domite())._newElement_("span");
|
|
|
-$recv(p)._insertDomite_(s);
|
|
|
-$recv(s)._insertString_("dom-mite");
|
|
|
+$recv(p).__lt_lt(s);
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+$ctx1.sendIdx["<<"]=2;
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$recv(s).__lt_lt("dom-mite");
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">sentinel<p><span>dom-mite</span></p></div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -289,10 +292,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testInsertElementTwoLevel\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d insertDomite: p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09p insertDomite: s.\x0a\x09s insertString: 'dom-mite'.\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p><span>dom-mite</span></p></div>')",
|
|
|
+source: "testInsertElementTwoLevel\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d << p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09p << s.\x0a\x09s << 'dom-mite'.\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p><span>dom-mite</span></p></div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromElement:", "newElement:", "insertDomite:", "insertString:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromElement:", "newElement:", "<<", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -307,53 +310,43 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$3,$4,$2,$5,$7,$8,$6,$9,$10;
|
|
|
+var $1,$3,$2,$4,$6,$5;
|
|
|
d=$recv($Domite())._fromSelector_("#fixture");
|
|
|
p=$recv($Domite())._newElement_("p");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["newElement:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
$1=d;
|
|
|
-$3=$recv($Domite())._open();
|
|
|
+$3=$recv($Domite())._newStream();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["open"]=1;
|
|
|
+$ctx1.sendIdx["newStream"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($3)._insertDomite_(p);
|
|
|
+$2=$recv($3).__lt_lt(p);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=2;
|
|
|
+$ctx1.sendIdx["<<"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$4=$recv($3)._yourself();
|
|
|
+$recv($1).__lt_lt($2);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["yourself"]=1;
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-$2=$4;
|
|
|
-$recv($1)._insertDomite_($2);
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
s=$recv($Domite())._newElement_("span");
|
|
|
-$5=p;
|
|
|
-$7=$recv($Domite())._open();
|
|
|
+$4=p;
|
|
|
+$6=$recv($Domite())._newStream();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["open"]=2;
|
|
|
+$ctx1.sendIdx["newStream"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($7)._insertDomite_(s);
|
|
|
+$5=$recv($6).__lt_lt(s);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=4;
|
|
|
+$ctx1.sendIdx["<<"]=4;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$8=$recv($7)._yourself();
|
|
|
+$recv($4).__lt_lt($5);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["yourself"]=2;
|
|
|
+$ctx1.sendIdx["<<"]=3;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$6=$8;
|
|
|
-$recv($5)._insertDomite_($6);
|
|
|
+$recv(s).__lt_lt($recv($recv($Domite())._newStream()).__lt_lt("dom-mite"));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=3;
|
|
|
+$ctx1.sendIdx["<<"]=5;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$9=$recv($Domite())._open();
|
|
|
-$recv($9)._insertString_("dom-mite");
|
|
|
-$10=$recv($9)._yourself();
|
|
|
-$recv(s)._insertDomite_($10);
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">sentinel<p><span>dom-mite</span></p></div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -362,10 +355,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testInsertElementTwoLevelViaFragments\x0a\x09| d p s |\x0a\x09d := Domite fromSelector: '#fixture'.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d insertDomite: (Domite open insertDomite: p; yourself).\x0a\x09s := Domite newElement: 'span'.\x0a\x09p insertDomite: (Domite open insertDomite: s; yourself).\x0a\x09s insertDomite: (Domite open insertString: 'dom-mite'; yourself).\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p><span>dom-mite</span></p></div>')",
|
|
|
+source: "testInsertElementTwoLevelViaFragments\x0a\x09| d p s |\x0a\x09d := Domite fromSelector: '#fixture'.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d << (Domite newStream << p).\x0a\x09s := Domite newElement: 'span'.\x0a\x09p << (Domite newStream << s).\x0a\x09s << (Domite newStream << 'dom-mite').\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p><span>dom-mite</span></p></div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromSelector:", "newElement:", "insertDomite:", "open", "yourself", "insertString:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromSelector:", "newElement:", "<<", "newStream", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -380,96 +373,67 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$3,$4,$6,$7,$5,$8,$2,$9,$11,$12,$14,$15,$13,$16,$10,$17,$19,$20,$22,$23,$21,$24,$18;
|
|
|
+var $1,$3,$5,$4,$2,$6,$8,$10,$9,$7,$11,$13,$12;
|
|
|
d=$recv($Domite())._fromElement_(self["@fixtureDiv"]);
|
|
|
p=$recv($Domite())._newElement_("p");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["newElement:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
$1=d;
|
|
|
-$3=$recv($Domite())._open();
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["open"]=1;
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-$4=$3;
|
|
|
-$6=$recv($Domite())._open();
|
|
|
+$3=$recv($Domite())._newStream();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["open"]=2;
|
|
|
+$ctx1.sendIdx["newStream"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($6)._insertDomite_(p);
|
|
|
+$5=$recv($Domite())._newStream();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=3;
|
|
|
+$ctx1.sendIdx["newStream"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$7=$recv($6)._yourself();
|
|
|
+$4=$recv($5).__lt_lt(p);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["yourself"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=3;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$5=$7;
|
|
|
-$recv($4)._insertDomite_($5);
|
|
|
+$2=$recv($3).__lt_lt($4);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=2;
|
|
|
+$ctx1.sendIdx["<<"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$8=$recv($3)._yourself();
|
|
|
+$recv($1).__lt_lt($2);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["yourself"]=2;
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-$2=$8;
|
|
|
-$recv($1)._insertDomite_($2);
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
s=$recv($Domite())._newElement_("span");
|
|
|
-$9=p;
|
|
|
-$11=$recv($Domite())._open();
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["open"]=3;
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-$12=$11;
|
|
|
-$14=$recv($Domite())._open();
|
|
|
+$6=p;
|
|
|
+$8=$recv($Domite())._newStream();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["open"]=4;
|
|
|
+$ctx1.sendIdx["newStream"]=3;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv($14)._insertDomite_(s);
|
|
|
+$10=$recv($Domite())._newStream();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=6;
|
|
|
+$ctx1.sendIdx["newStream"]=4;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$15=$recv($14)._yourself();
|
|
|
+$9=$recv($10).__lt_lt(s);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["yourself"]=3;
|
|
|
+$ctx1.sendIdx["<<"]=6;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$13=$15;
|
|
|
-$recv($12)._insertDomite_($13);
|
|
|
+$7=$recv($8).__lt_lt($9);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=5;
|
|
|
+$ctx1.sendIdx["<<"]=5;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$16=$recv($11)._yourself();
|
|
|
+$recv($6).__lt_lt($7);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["yourself"]=4;
|
|
|
+$ctx1.sendIdx["<<"]=4;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$10=$16;
|
|
|
-$recv($9)._insertDomite_($10);
|
|
|
+$11=s;
|
|
|
+$13=$recv($Domite())._newStream();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=4;
|
|
|
+$ctx1.sendIdx["newStream"]=5;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$17=s;
|
|
|
-$19=$recv($Domite())._open();
|
|
|
+$12=$recv($13).__lt_lt($recv($recv($Domite())._newStream()).__lt_lt("dom-mite"));
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["open"]=5;
|
|
|
+$ctx1.sendIdx["<<"]=8;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$20=$19;
|
|
|
-$22=$recv($Domite())._open();
|
|
|
-$recv($22)._insertString_("dom-mite");
|
|
|
-$23=$recv($22)._yourself();
|
|
|
+$recv($11).__lt_lt($12);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["yourself"]=5;
|
|
|
-//>>excludeEnd("ctx");
|
|
|
-$21=$23;
|
|
|
-$recv($20)._insertDomite_($21);
|
|
|
-$24=$recv($19)._yourself();
|
|
|
-$18=$24;
|
|
|
-$recv($17)._insertDomite_($18);
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=7;
|
|
|
+$ctx1.sendIdx["<<"]=7;
|
|
|
//>>excludeEnd("ctx");
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">sentinel<p><span>dom-mite</span></p></div>"));
|
|
|
return self;
|
|
@@ -479,10 +443,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testInsertElementTwoLevelViaTwoLevelFragments\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d insertDomite: (Domite open insertDomite: (Domite open insertDomite: p; yourself); yourself).\x0a\x09s := Domite newElement: 'span'.\x0a\x09p insertDomite: (Domite open insertDomite: (Domite open insertDomite: s; yourself); yourself).\x0a\x09s insertDomite: (Domite open insertDomite: (Domite open insertString: 'dom-mite'; yourself); yourself).\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p><span>dom-mite</span></p></div>')",
|
|
|
+source: "testInsertElementTwoLevelViaTwoLevelFragments\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d << (Domite newStream << (Domite newStream << p)).\x0a\x09s := Domite newElement: 'span'.\x0a\x09p << (Domite newStream << (Domite newStream << s)).\x0a\x09s << (Domite newStream << (Domite newStream << 'dom-mite')).\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p><span>dom-mite</span></p></div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromElement:", "newElement:", "insertDomite:", "open", "yourself", "insertString:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromElement:", "newElement:", "<<", "newStream", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -498,7 +462,7 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
d=$recv($Domite())._fromElement_(self["@fixtureDiv"]);
|
|
|
-$recv(d)._insertString_("a foo in a bar");
|
|
|
+$recv(d).__lt_lt("a foo in a bar");
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">sentinela foo in a bar</div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -507,10 +471,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testInsertString\x0a\x09| d |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09d insertString: 'a foo in a bar'.\x0a\x09self assert: (document body innerHTML endsWith: '>sentinela foo in a bar</div>')",
|
|
|
+source: "testInsertString\x0a\x09| d |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09d << 'a foo in a bar'.\x0a\x09self assert: (document body innerHTML endsWith: '>sentinela foo in a bar</div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromElement:", "insertString:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromElement:", "<<", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -525,12 +489,11 @@ function $Domite(){return $globals.Domite||(typeof Domite=="undefined"?nil:Domit
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1,$2;
|
|
|
d=$recv($Domite())._fromSelector_("#fixture");
|
|
|
-$1=$recv($Domite())._open();
|
|
|
-$recv($1)._insertString_("a foo in a bar");
|
|
|
-$2=$recv($1)._yourself();
|
|
|
-$recv(d)._insertDomite_($2);
|
|
|
+$recv(d).__lt_lt($recv($recv($Domite())._newStream()).__lt_lt("a foo in a bar"));
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
+//>>excludeEnd("ctx");
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">sentinela foo in a bar</div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -539,10 +502,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testInsertStringInFragment\x0a\x09| d |\x0a\x09d := Domite fromSelector: '#fixture'.\x0a\x09d insertDomite: (Domite open insertString: 'a foo in a bar'; yourself).\x0a\x09self assert: (document body innerHTML endsWith: '>sentinela foo in a bar</div>')",
|
|
|
+source: "testInsertStringInFragment\x0a\x09| d |\x0a\x09d := Domite fromSelector: '#fixture'.\x0a\x09d << (Domite newStream << 'a foo in a bar').\x0a\x09self assert: (document body innerHTML endsWith: '>sentinela foo in a bar</div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromSelector:", "insertDomite:", "insertString:", "open", "yourself", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromSelector:", "<<", "newStream", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -562,13 +525,16 @@ p=$recv($Domite())._newElement_("p");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["newElement:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(d)._insertDomite_(p);
|
|
|
+$recv(d).__lt_lt(p);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
s=$recv($Domite())._newElement_("span");
|
|
|
-$recv(d)._insertDomite_(s);
|
|
|
-$recv(d)._insertString_("dom-mite");
|
|
|
+$recv(d).__lt_lt(s);
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+$ctx1.sendIdx["<<"]=2;
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$recv(d).__lt_lt("dom-mite");
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">sentinel<p></p><span></span>dom-mite</div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -577,10 +543,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testMultipleInserts\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d insertDomite: p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09d insertDomite: s.\x0a\x09d insertString: 'dom-mite'.\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p></p><span></span>dom-mite</div>')",
|
|
|
+source: "testMultipleInserts\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d << p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09d << s.\x0a\x09d << 'dom-mite'.\x0a\x09self assert: (document body innerHTML endsWith: '>sentinel<p></p><span></span>dom-mite</div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromElement:", "newElement:", "insertDomite:", "insertString:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromElement:", "newElement:", "<<", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -600,22 +566,25 @@ p=$recv($Domite())._newElement_("p");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["newElement:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(d)._insertDomite_(p);
|
|
|
+$recv(d).__lt_lt(p);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
s=$recv($Domite())._newElement_("span");
|
|
|
-$recv(d)._insertDomite_(s);
|
|
|
-$recv(d)._clearHere();
|
|
|
+$recv(d).__lt_lt(s);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["clearHere"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=2;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(d)._insertString_("dom-mite");
|
|
|
-$recv(d)._clearHere();
|
|
|
+$recv(d)._resetContents();
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["clearHere"]=2;
|
|
|
+$ctx1.sendIdx["resetContents"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(d)._clearHere();
|
|
|
+$recv(d).__lt_lt("dom-mite");
|
|
|
+$recv(d)._resetContents();
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+$ctx1.sendIdx["resetContents"]=2;
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$recv(d)._resetContents();
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_("></div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -624,10 +593,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testMultipleInsertsWithClear\x0a\x09| d p s |\x0a\x09d := Domite fromSelector: '#fixture'.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d insertDomite: p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09d insertDomite: s.\x0a\x09d clearHere.\x0a\x09d insertString: 'dom-mite'.\x0a\x09d clearHere.\x0a\x09d clearHere.\x0a\x09self assert: (document body innerHTML endsWith: '></div>')",
|
|
|
+source: "testMultipleInsertsWithClear\x0a\x09| d p s |\x0a\x09d := Domite fromSelector: '#fixture'.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d << p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09d << s.\x0a\x09d resetContents.\x0a\x09d << 'dom-mite'.\x0a\x09d resetContents.\x0a\x09d resetContents.\x0a\x09self assert: (document body innerHTML endsWith: '></div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromSelector:", "newElement:", "insertDomite:", "clearHere", "insertString:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromSelector:", "newElement:", "<<", "resetContents", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|
|
@@ -647,14 +616,17 @@ p=$recv($Domite())._newElement_("p");
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
$ctx1.sendIdx["newElement:"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
-$recv(d)._insertDomite_(p);
|
|
|
+$recv(d).__lt_lt(p);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-$ctx1.sendIdx["insertDomite:"]=1;
|
|
|
+$ctx1.sendIdx["<<"]=1;
|
|
|
//>>excludeEnd("ctx");
|
|
|
s=$recv($Domite())._newElement_("span");
|
|
|
-$recv(d)._insertDomite_(s);
|
|
|
-$recv(d)._clearHere();
|
|
|
-$recv(d)._insertString_("dom-mite");
|
|
|
+$recv(d).__lt_lt(s);
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
+$ctx1.sendIdx["<<"]=2;
|
|
|
+//>>excludeEnd("ctx");
|
|
|
+$recv(d)._resetContents();
|
|
|
+$recv(d).__lt_lt("dom-mite");
|
|
|
self._assert_($recv($recv($recv(document)._body())._innerHTML())._endsWith_(">dom-mite</div>"));
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -663,10 +635,10 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "testMultipleInsertsWithClearInBetween\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d insertDomite: p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09d insertDomite: s.\x0a\x09d clearHere.\x0a\x09d insertString: 'dom-mite'.\x0a\x09self assert: (document body innerHTML endsWith: '>dom-mite</div>')",
|
|
|
+source: "testMultipleInsertsWithClearInBetween\x0a\x09| d p s |\x0a\x09d := Domite fromElement: fixtureDiv.\x0a\x09p := Domite newElement: 'p'.\x0a\x09d << p.\x0a\x09s := Domite newElement: 'span'.\x0a\x09d << s.\x0a\x09d resetContents.\x0a\x09d << 'dom-mite'.\x0a\x09self assert: (document body innerHTML endsWith: '>dom-mite</div>')",
|
|
|
referencedClasses: ["Domite"],
|
|
|
//>>excludeEnd("ide");
|
|
|
-messageSends: ["fromElement:", "newElement:", "insertDomite:", "clearHere", "insertString:", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
+messageSends: ["fromElement:", "newElement:", "<<", "resetContents", "assert:", "endsWith:", "innerHTML", "body"]
|
|
|
}),
|
|
|
$globals.DOMiteTest);
|
|
|
|