|
@@ -2,15 +2,15 @@ define(["amber/boot", "amber_core/SUnit"], function($boot){"use strict";
|
|
|
if(!$boot.nilAsReceiver)$boot.nilAsReceiver=$boot.nil;
|
|
|
var $core=$boot.api,nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
|
|
|
if(!$boot.nilAsClass)$boot.nilAsClass=$boot.dnu;
|
|
|
-$core.addPackage('DOMite-Tests');
|
|
|
+$core.addPackage("DOMite-Tests");
|
|
|
$core.packages["DOMite-Tests"].innerEval = function (expr) { return eval(expr); };
|
|
|
$core.packages["DOMite-Tests"].transport = {"type":"amd","amdNamespace":"domite"};
|
|
|
|
|
|
-$core.addClass('DOMiteTest', $globals.TestCase, ['fixtureDiv'], 'DOMite-Tests');
|
|
|
+$core.addClass("DOMiteTest", $globals.TestCase, ["fixtureDiv"], "DOMite-Tests");
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "assertBodyEndsWith:",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (aString){
|
|
|
var self=this;
|
|
|
var sanitizedBody,sanitizedAssertion;
|
|
@@ -51,7 +51,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "setUp",
|
|
|
-protocol: 'fixture',
|
|
|
+protocol: "fixture",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -78,7 +78,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "tearDown",
|
|
|
-protocol: 'fixture',
|
|
|
+protocol: "fixture",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var lastChild;
|
|
@@ -110,7 +110,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testDefaultInsertElement",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -146,7 +146,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testDefaultInsertString",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -177,7 +177,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testDefaultInsertStringInFragment",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -216,7 +216,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testFromBadSelectorIsInvalid",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d;
|
|
@@ -272,7 +272,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertDomNode",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d;
|
|
@@ -299,7 +299,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertDomNodeInFragment",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d;
|
|
@@ -334,7 +334,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertDomNodeInRawDomFragment",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,f;
|
|
@@ -363,7 +363,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertElement",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d;
|
|
@@ -395,7 +395,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertElementTwoLevel",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,p,s;
|
|
@@ -444,7 +444,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertElementTwoLevelViaFragments",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,p,s;
|
|
@@ -526,7 +526,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertElementTwoLevelViaTwoLevelFragments",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,p,s;
|
|
@@ -645,7 +645,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertString",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d;
|
|
@@ -672,7 +672,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertStringInFragment",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d;
|
|
@@ -707,7 +707,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertStringifiedJSObject",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,obj;
|
|
@@ -740,7 +740,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertStringifiedNumber",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d;
|
|
@@ -767,7 +767,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testInsertTable",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,tbl,tr;
|
|
@@ -925,7 +925,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testMultipleInserts",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,p,s;
|
|
@@ -974,7 +974,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testMultipleInsertsWithClear",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,p,s;
|
|
@@ -1032,7 +1032,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testMultipleInsertsWithClearInBetween",
|
|
|
-protocol: 'testing',
|
|
|
+protocol: "testing",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
var d,p,s;
|
|
@@ -1082,7 +1082,7 @@ $globals.DOMiteTest);
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "testedClass",
|
|
|
-protocol: 'fixture',
|
|
|
+protocol: "fixture",
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
return $globals.Domite;
|