');
assertEquals(c.scope.$get('a'), 123);
};
BinderTest.prototype.testExecuteInitializationStatements = function() {
- var c = this.compile('
');
+ var c = this.compile('
');
assertEquals(c.scope.$get('a'), 123);
assertEquals(c.scope.$get('b'), 345);
};
BinderTest.prototype.testApplyTextBindings = function(){
- var form = this.compile('
x
');
+ var form = this.compile('
x
');
form.scope.$set('model', {a:123});
form.scope.$eval();
assertEquals('123', form.node.text());
};
BinderTest.prototype.testReplaceBindingInTextWithSpan = function() {
- assertEquals(this.compileToHtml("
a{{b}}c "), '
a c ');
- assertEquals(this.compileToHtml("
{{b}} "), '
');
+ assertEquals(this.compileToHtml("
a{{b}}c "), '
a c ');
+ assertEquals(this.compileToHtml("
{{b}} "), '
');
};
BinderTest.prototype.testBindingSpaceConfusesIE = function() {
@@ -99,16 +99,16 @@ BinderTest.prototype.testBindingSpaceConfusesIE = function() {
span.innerHTML = ' ';
var nbsp = span.firstChild.nodeValue;
assertEquals(
- '
'+nbsp+' ',
+ '
'+nbsp+' ',
this.compileToHtml("
{{a}} {{b}} "));
assertEquals(
- '
'+nbsp+'x '+nbsp+'( )',
+ '
'+nbsp+'x '+nbsp+'( )',
this.compileToHtml("
{{A}} x {{B}} ({{C}}) "));
};
BinderTest.prototype.testBindingOfAttributes = function() {
var c = this.compile("
");
- var attrbinding = c.node.attr("ng-bind-attr");
+ var attrbinding = c.node.attr("ng:bind-attr");
var bindings = fromJson(attrbinding);
assertEquals("http://s/a{{b}}c", decodeURI(bindings.href));
assertTrue(!bindings.foo);
@@ -116,7 +116,7 @@ BinderTest.prototype.testBindingOfAttributes = function() {
BinderTest.prototype.testMarkMultipleAttributes = function() {
var c = this.compile('
');
- var attrbinding = c.node.attr("ng-bind-attr");
+ var attrbinding = c.node.attr("ng:bind-attr");
var bindings = fromJson(attrbinding);
assertEquals(bindings.foo, "{{d}}");
assertEquals(decodeURI(bindings.href), "http://s/a{{b}}c");
@@ -126,17 +126,17 @@ BinderTest.prototype.testAttributesNoneBound = function() {
var c = this.compile("
");
var a = c.node;
assertEquals(a[0].nodeName, "A");
- assertTrue(!a.attr("ng-bind-attr"));
+ assertTrue(!a.attr("ng:bind-attr"));
};
BinderTest.prototype.testExistingAttrbindingIsAppended = function() {
- var c = this.compile("
");
+ var c = this.compile("
");
var a = c.node;
- assertEquals('{"b":"{{def}}","href":"http://s/{{abc}}"}', a.attr('ng-bind-attr'));
+ assertEquals('{"b":"{{def}}","href":"http://s/{{abc}}"}', a.attr('ng:bind-attr'));
};
BinderTest.prototype.testAttributesAreEvaluated = function(){
- var c = this.compile('
');
+ var c = this.compile('
');
var binder = c.binder, form = c.node;
c.scope.$eval('a=1;b=2');
c.scope.$eval();
@@ -147,7 +147,7 @@ BinderTest.prototype.testAttributesAreEvaluated = function(){
BinderTest.prototype.testInputTypeButtonActionExecutesInScope = function(){
var savedCalled = false;
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$set("person.save", function(){
savedCalled = true;
});
@@ -157,7 +157,7 @@ BinderTest.prototype.testInputTypeButtonActionExecutesInScope = function(){
BinderTest.prototype.testInputTypeButtonActionExecutesInScope2 = function(){
var log = "";
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$set("action", function(){
log += 'click;';
});
@@ -168,7 +168,7 @@ BinderTest.prototype.testInputTypeButtonActionExecutesInScope2 = function(){
BinderTest.prototype.testButtonElementActionExecutesInScope = function(){
var savedCalled = false;
- var c = this.compile('
Apply ');
+ var c = this.compile('
Apply ');
c.scope.$set("person.save", function(){
savedCalled = true;
});
@@ -177,7 +177,7 @@ BinderTest.prototype.testButtonElementActionExecutesInScope = function(){
};
BinderTest.prototype.testRepeaterUpdateBindings = function(){
- var a = this.compile('
');
+ var a = this.compile('
');
var form = a.node;
var items = [{a:"A"}, {a:"B"}];
a.scope.$set('model', {items:items});
@@ -185,25 +185,25 @@ BinderTest.prototype.testRepeaterUpdateBindings = function(){
a.scope.$eval();
assertEquals('
' +
'<#comment>#comment>' +
- 'A ' +
- 'B ' +
+ 'A ' +
+ 'B ' +
' ', sortedHtml(form));
items.unshift({a:'C'});
a.scope.$eval();
assertEquals('
' +
'<#comment>#comment>' +
- 'C ' +
- 'A ' +
- 'B ' +
+ 'C ' +
+ 'A ' +
+ 'B ' +
' ', sortedHtml(form));
items.shift();
a.scope.$eval();
assertEquals('
' +
'<#comment>#comment>' +
- 'A ' +
- 'B ' +
+ 'A ' +
+ 'B ' +
' ', sortedHtml(form));
items.shift();
@@ -212,19 +212,19 @@ BinderTest.prototype.testRepeaterUpdateBindings = function(){
};
BinderTest.prototype.testRepeaterContentDoesNotBind = function(){
- var a = this.compile('
');
+ var a = this.compile('
');
a.scope.$set('model', {items:[{a:"A"}]});
a.scope.$eval();
assertEquals('
' +
'<#comment>#comment>' +
- 'A ' +
+ 'A ' +
' ', sortedHtml(a.node));
};
BinderTest.prototype.testExpandEntityTag = function(){
assertEquals(
- '
',
- this.compileToHtml('
'));
+ '
',
+ this.compileToHtml('
'));
};
BinderTest.prototype.testDoNotOverwriteCustomAction = function(){
@@ -233,7 +233,7 @@ BinderTest.prototype.testDoNotOverwriteCustomAction = function(){
};
BinderTest.prototype.testRepeaterAdd = function(){
- var c = this.compile('
');
+ var c = this.compile('
');
var doc = c.node;
c.scope.$set('items', [{x:'a'}, {x:'b'}]);
c.scope.$eval();
@@ -248,7 +248,7 @@ BinderTest.prototype.testRepeaterAdd = function(){
};
BinderTest.prototype.testItShouldRemoveExtraChildrenWhenIteratingOverHash = function(){
- var c = this.compile('
');
+ var c = this.compile('
');
var items = {};
c.scope.$set("items", items);
@@ -308,8 +308,8 @@ BinderTest.prototype.testIfAttrBindingThrowsErrorDecorateTheAttribute = function
};
BinderTest.prototype.testNestedRepeater = function() {
- var a = this.compile('
' +
- '
' +
+ var a = this.compile('
');
a.scope.$set('model', [{name:'a', item:['a1', 'a2']}, {name:'b', item:['b1', 'b2']}]);
@@ -317,20 +317,20 @@ BinderTest.prototype.testNestedRepeater = function() {
assertEquals('
'+
'<#comment>#comment>'+
- '
'+
+ '
'+
'<#comment>#comment>'+
- '
'+
- '
'+
+ '
'+
+ '
'+
'
'+
- '
'+
+ '
'+
'<#comment>#comment>'+
- '
'+
- '
'+
+ '
'+
+ '
'+
'
', sortedHtml(a.node));
};
BinderTest.prototype.testHideBindingExpression = function() {
- var a = this.compile('
');
+ var a = this.compile('
');
a.scope.$set('hidden', 3);
a.scope.$eval();
@@ -344,7 +344,7 @@ BinderTest.prototype.testHideBindingExpression = function() {
};
BinderTest.prototype.testHideBinding = function() {
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$set('hidden', 'true');
c.scope.$eval();
@@ -363,7 +363,7 @@ BinderTest.prototype.testHideBinding = function() {
};
BinderTest.prototype.testShowBinding = function() {
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$set('show', 'true');
c.scope.$eval();
@@ -382,42 +382,42 @@ BinderTest.prototype.testShowBinding = function() {
};
BinderTest.prototype.testBindClassUndefined = function() {
- var doc = this.compile('
');
+ var doc = this.compile('
');
doc.scope.$eval();
assertEquals(
- '
',
+ '
',
sortedHtml(doc.node));
};
BinderTest.prototype.testBindClass = function() {
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$set('class', 'testClass');
c.scope.$eval();
assertEquals(sortedHtml(c.node),
- '
');
+ '
');
c.scope.$set('class', ['a', 'b']);
c.scope.$eval();
assertEquals(sortedHtml(c.node),
- '
');
+ '
');
};
BinderTest.prototype.testBindClassEvenOdd = function() {
- var x = this.compile('
');
+ var x = this.compile('
');
x.scope.$eval();
assertEquals(
'
<#comment>#comment>' +
- '
' +
- '
',
+ '
' +
+ '
',
sortedHtml(x.node));
};
BinderTest.prototype.testBindStyle = function() {
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$eval('style={color:"red"}');
c.scope.$eval();
@@ -430,7 +430,7 @@ BinderTest.prototype.testBindStyle = function() {
BinderTest.prototype.testActionOnAHrefThrowsError = function(){
var model = {books:[]};
- var c = this.compile('
Add Phone ', model);
+ var c = this.compile('
Add Phone ', model);
c.scope.action = function(){
throw {a:'abc', b:2};
};
@@ -450,23 +450,23 @@ BinderTest.prototype.testActionOnAHrefThrowsError = function(){
BinderTest.prototype.testShoulIgnoreVbNonBindable = function(){
var c = this.compile("
{{a}}" +
- "
{{a}}
" +
- "
{{b}}
" +
- "
{{c}}
");
+ "
{{a}}
" +
+ "
{{b}}
" +
+ "
{{c}}
");
c.scope.$set('a', 123);
c.scope.$eval();
assertEquals('123{{a}}{{b}}{{c}}', c.node.text());
};
BinderTest.prototype.testOptionShouldUpdateParentToGetProperBinding = function() {
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$set('s', 1);
c.scope.$eval();
assertEquals(1, c.node[0].selectedIndex);
};
BinderTest.prototype.testRepeaterShouldBindInputsDefaults = function () {
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$set('items', [{}, {name:'misko'}]);
c.scope.$eval();
@@ -475,7 +475,7 @@ BinderTest.prototype.testRepeaterShouldBindInputsDefaults = function () {
};
BinderTest.prototype.testRepeaterShouldCreateArray = function () {
- var c = this.compile('
');
+ var c = this.compile('
');
c.scope.$eval();
assertEquals(0, c.scope.$get('items').length);
@@ -486,7 +486,7 @@ BinderTest.prototype.testShouldTemplateBindPreElements = function () {
c.scope.$set("name", "World");
c.scope.$eval();
- assertEquals('
Hello World! ', sortedHtml(c.node));
+ assertEquals('
Hello World! ', sortedHtml(c.node));
};
BinderTest.prototype.testFillInOptionValueWhenMissing = function() {
@@ -511,7 +511,7 @@ BinderTest.prototype.testFillInOptionValueWhenMissing = function() {
BinderTest.prototype.testValidateForm = function() {
var c = this.compile('
');
+ '
');
var items = [{}, {}];
c.scope.$set("items", items);
c.scope.$eval();
@@ -539,7 +539,7 @@ BinderTest.prototype.testValidateForm = function() {
};
BinderTest.prototype.testValidateOnlyVisibleItems = function(){
- var c = this.compile('
');
+ var c = this.compile('
');
jqLite(document.body).append(c.node);
c.scope.$set("show", true);
c.scope.$eval();
@@ -552,9 +552,9 @@ BinderTest.prototype.testValidateOnlyVisibleItems = function(){
BinderTest.prototype.testDeleteAttributeIfEvaluatesFalse = function() {
var c = this.compile('
' +
- ' ' +
- ' ' +
- '
');
+ '
' +
+ '
' +
+ '
');
c.scope.$eval();
function assertChild(index, disabled) {
var child = childNode(c.node, index);
@@ -571,8 +571,8 @@ BinderTest.prototype.testDeleteAttributeIfEvaluatesFalse = function() {
BinderTest.prototype.testItShouldDisplayErrorWhenActionIsSyntacticlyIncorect = function(){
var c = this.compile('
' +
- ' ' +
- '
');
+ '
' +
+ '
');
var first = jqLite(c.node[0].childNodes[0]);
var second = jqLite(c.node[0].childNodes[1]);
@@ -605,8 +605,8 @@ BinderTest.prototype.testItShouldSelectTheCorrectRadioBox = function() {
BinderTest.prototype.testItShouldListenOnRightScope = function() {
var c = this.compile(
- '
');
+ '
');
c.scope.$eval();
assertEquals(0, c.scope.$get("counter"));
assertEquals(0, c.scope.$get("gCounter"));
@@ -618,25 +618,25 @@ BinderTest.prototype.testItShouldListenOnRightScope = function() {
};
BinderTest.prototype.testItShouldRepeatOnHashes = function() {
- var x = this.compile('
');
+ var x = this.compile('
');
x.scope.$eval();
assertEquals('
' +
'<#comment>#comment>' +
- 'a0 ' +
- 'b1 ' +
+ 'a0 ' +
+ 'b1 ' +
' ',
sortedHtml(x.node));
};
BinderTest.prototype.testItShouldFireChangeListenersBeforeUpdate = function(){
- var x = this.compile('
');
+ var x = this.compile('
');
x.scope.$set("name", "");
x.scope.$watch("watched", "name=123");
x.scope.$set("watched", "change");
x.scope.$eval();
assertEquals(123, x.scope.$get("name"));
assertEquals(
- '
123
',
+ '
123
',
sortedHtml(x.node));
};
@@ -657,7 +657,7 @@ BinderTest.prototype.XtestItShouldRenderMultiRootHtmlInBinding = function() {
x.scope.a = "a
c d";
x.scope.$eval();
assertEquals(
- '
before ac d after
',
+ '
before ac d after
',
sortedHtml(x.node));
};
diff --git a/test/ScenarioSpec.js b/test/ScenarioSpec.js
index 9afe8e95..7ea3192d 100644
--- a/test/ScenarioSpec.js
+++ b/test/ScenarioSpec.js
@@ -1,6 +1,6 @@
describe("ScenarioSpec: Compilation", function(){
it("should compile dom node and return scope", function(){
- var node = jqLite('
{{b=a+1}}
')[0];
+ var node = jqLite('
{{b=a+1}}
')[0];
var scope = compile(node);
scope.$init();
expect(scope.a).toEqual(1);
diff --git a/test/delete/WidgetsTest.js b/test/delete/WidgetsTest.js
index 313d7372..9acc6126 100644
--- a/test/delete/WidgetsTest.js
+++ b/test/delete/WidgetsTest.js
@@ -111,7 +111,7 @@ RepeaterUpdaterTest.prototype.testShouldThrowInformativeSyntaxError= function(){
try {
var repeater = new RepeaterUpdater(null, "a=b");
} catch (e) {
- assertEquals("Expected ng-repeat in form of 'item in collection' but got 'a=b'.", e);
+ assertEquals("Expected ng:repeat in form of 'item in collection' but got 'a=b'.", e);
}
};
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 42869a05..836c51e8 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -17,57 +17,57 @@ describe("directives", function(){
expect(size(jqCache)).toEqual(0);
});
- it("should ng-init", function() {
- var scope = compile('
');
+ it("should ng:init", function() {
+ var scope = compile('
');
expect(scope.a).toEqual(123);
});
- it("should ng-eval", function() {
- var scope = compile('
');
+ it("should ng:eval", function() {
+ var scope = compile('
');
expect(scope.a).toEqual(1);
scope.$eval();
expect(scope.a).toEqual(2);
});
- it('should ng-bind', function() {
- var scope = compile('
');
+ it('should ng:bind', function() {
+ var scope = compile('
');
expect(element.text()).toEqual('');
scope.a = 'misko';
scope.$eval();
expect(element.text()).toEqual('misko');
});
- it('should ng-bind html', function() {
- var scope = compile('
');
+ it('should ng:bind html', function() {
+ var scope = compile('
');
scope.html = '
hello
';
scope.$eval();
expect(lowercase(element.html())).toEqual('
hello
');
});
- it('should ng-bind element', function() {
+ it('should ng:bind element', function() {
angularFilter.myElement = function() {
return jqLite('
hello ');
};
- var scope = compile('
');
+ var scope = compile('
');
scope.$eval();
expect(lowercase(element.html())).toEqual('
hello ');
});
- it('should ng-bind-template', function() {
- var scope = compile('
');
+ it('should ng:bind-template', function() {
+ var scope = compile('
');
scope.$set('name', 'Misko');
scope.$eval();
expect(element.text()).toEqual('Hello Misko!');
});
- it('should ng-bind-attr', function(){
- var scope = compile('
');
+ it('should ng:bind-attr', function(){
+ var scope = compile('
');
expect(element.attr('src')).toEqual('http://localhost/mysrc');
expect(element.attr('alt')).toEqual('myalt');
});
it('should remove special attributes on false', function(){
- var scope = compile('
');
+ var scope = compile('
');
var input = scope.$element[0];
expect(input.disabled).toEqual(false);
expect(input.readOnly).toEqual(false);
@@ -83,15 +83,15 @@ describe("directives", function(){
expect(input.checked).toEqual(true);
});
- it('should ng-non-bindable', function(){
- var scope = compile('
');
+ it('should ng:non-bindable', function(){
+ var scope = compile('
');
scope.$set('name', 'misko');
scope.$eval();
expect(element.text()).toEqual('');
});
- it('should ng-repeat over array', function(){
- var scope = compile('
');
+ it('should ng:repeat over array', function(){
+ var scope = compile('
');
scope.$set('items', ['misko', 'shyam']);
scope.$eval();
@@ -106,28 +106,28 @@ describe("directives", function(){
expect(element.text()).toEqual('brad;');
});
- it('should ng-repeat over object', function(){
- var scope = compile('
');
+ it('should ng:repeat over object', function(){
+ var scope = compile('
');
scope.$set('items', {misko:'swe', shyam:'set'});
scope.$eval();
expect(element.text()).toEqual('misko:swe;shyam:set;');
});
- it('should set ng-repeat to [] if undefinde', function(){
- var scope = compile('
');
+ it('should set ng:repeat to [] if undefinde', function(){
+ var scope = compile('
');
expect(scope.items).toEqual([]);
});
- it('should error on wrong parsing of ng-repeat', function(){
- var scope = compile('
');
+ it('should error on wrong parsing of ng:repeat', function(){
+ var scope = compile('
');
var log = "";
log += element.attr('ng-exception') + ';';
log += element.hasClass('ng-exception') + ';';
- expect(log).toEqual("\"Expected ng-repeat in form of 'item in collection' but got 'i dont parse'.\";true;");
+ expect(log).toEqual("\"Expected ng:repeat in form of 'item in collection' but got 'i dont parse'.\";true;");
});
- it('should ng-watch', function(){
- var scope = compile('
');
+ it('should ng:watch', function(){
+ var scope = compile('
');
scope.$eval();
scope.$eval();
expect(scope.$get('count')).toEqual(0);
@@ -138,8 +138,8 @@ describe("directives", function(){
expect(scope.$get('count')).toEqual(1);
});
- it('should ng-click', function(){
- var scope = compile('
');
+ it('should ng:click', function(){
+ var scope = compile('
');
scope.$eval();
expect(scope.$get('clicked')).toBeFalsy();
@@ -147,16 +147,16 @@ describe("directives", function(){
expect(scope.$get('clicked')).toEqual(true);
});
- it('should ng-class', function(){
- var scope = compile('
');
+ it('should ng:class', function(){
+ var scope = compile('
');
scope.$eval();
expect(element.hasClass('existing')).toBeTruthy();
expect(element.hasClass('A')).toBeTruthy();
expect(element.hasClass('B')).toBeTruthy();
});
- it('should ng-class odd/even', function(){
- var scope = compile('
');
+ it('should ng:class odd/even', function(){
+ var scope = compile('');
scope.$eval();
var e1 = jqLite(element[0].childNodes[1]);
var e2 = jqLite(element[0].childNodes[2]);
@@ -166,14 +166,14 @@ describe("directives", function(){
expect(e2.hasClass('even')).toBeTruthy();
});
- it('should ng-style', function(){
- var scope = compile('
');
+ it('should ng:style', function(){
+ var scope = compile('
');
scope.$eval();
expect(element.css('color')).toEqual('red');
});
- it('should ng-show', function(){
- var scope = compile('
');
+ it('should ng:show', function(){
+ var scope = compile('
');
scope.$eval();
expect(isCssVisible(scope.$element)).toEqual(true);
scope.$set('hide', true);
@@ -181,8 +181,8 @@ describe("directives", function(){
expect(isCssVisible(scope.$element)).toEqual(false);
});
- it('should ng-hide', function(){
- var scope = compile('
');
+ it('should ng:hide', function(){
+ var scope = compile('
');
scope.$eval();
expect(isCssVisible(scope.$element)).toEqual(false);
scope.$set('show', true);
@@ -190,7 +190,7 @@ describe("directives", function(){
expect(isCssVisible(scope.$element)).toEqual(true);
});
- describe('ng-controller', function(){
+ describe('ng:controller', function(){
it('should bind', function(){
window.Greeter = function(){
this.greeting = 'hello';
@@ -203,18 +203,18 @@ describe("directives", function(){
return this.greeting + ' ' + name + this.suffix;
}
};
- var scope = compile('
');
+ var scope = compile('
');
expect(scope.greeting).toEqual('hello');
expect(scope.greet('misko')).toEqual('hello misko!');
window.Greeter = undefined;
});
});
- it('should eval things according to ng-eval-order', function(){
+ it('should eval things according to ng:eval-order', function(){
var scope = compile(
- '' +
+ '
' +
'{{log = log + \'e\'}}' +
- '
' +
+ '' +
'{{log = log + \'b\'}}' +
' ' +
' ' +
diff --git a/test/markupSpec.js b/test/markupSpec.js
index 8358b673..5fe5bba9 100644
--- a/test/markupSpec.js
+++ b/test/markupSpec.js
@@ -20,23 +20,23 @@ describe("markups", function(){
it('should translate {{}} in text', function(){
compile('hello {{name}}!
');
- expect(sortedHtml(element)).toEqual('hello !
');
+ expect(sortedHtml(element)).toEqual('hello !
');
scope.$set('name', 'Misko');
scope.$eval();
- expect(sortedHtml(element)).toEqual('hello Misko !
');
+ expect(sortedHtml(element)).toEqual('hello Misko !
');
});
it('should translate {{}} in terminal nodes', function(){
compile('Greet {{name}}! ');
- expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('Greet ! ');
+ expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('Greet ! ');
scope.$set('name', 'Misko');
scope.$eval();
- expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('Greet Misko! ');
+ expect(sortedHtml(element).replace(' selected="true"', '')).toEqual('Greet Misko! ');
});
it('should translate {{}} in attributes', function(){
compile(' ');
- expect(element.attr('ng-bind-attr')).toEqual('{"src":"http://server/{{path}}.png"}');
+ expect(element.attr('ng:bind-attr')).toEqual('{"src":"http://server/{{path}}.png"}');
scope.$set('path', 'a/b');
scope.$eval();
expect(element.attr('src')).toEqual("http://server/a/b.png");
diff --git a/test/moveToAngularCom/miscTest.js b/test/moveToAngularCom/miscTest.js
index aa0e1186..cc8f1c8c 100644
--- a/test/moveToAngularCom/miscTest.js
+++ b/test/moveToAngularCom/miscTest.js
@@ -1,7 +1,7 @@
BinderTest.prototype.testExpandEntityTagWithName = function(){
var c = this.compile('
');
assertEquals(
- '
',
+ '
',
sortedHtml(c.node));
assertEquals("Person", c.scope.$get("friend.$entity"));
assertEquals("friend", c.scope.$get("friend.$$anchor"));
@@ -10,7 +10,7 @@ BinderTest.prototype.testExpandEntityTagWithName = function(){
BinderTest.prototype.testExpandSubmitButtonToAction = function(){
var html = this.compileToHtml(' ');
assertTrue(html, html.indexOf('ng-action="$save()"') > 0 );
- assertTrue(html, html.indexOf('ng-bind-attr="{"disabled":"{{$invalidWidgets}}"}"') > 0 );
+ assertTrue(html, html.indexOf('ng:bind-attr="{"disabled":"{{$invalidWidgets}}"}"') > 0 );
};
BinderTest.prototype.testReplaceFileUploadWithSwf = function(){
@@ -29,7 +29,7 @@ BinderTest.prototype.testReplaceFileUploadWithSwf = function(){
BinderTest.prototype.testExpandEntityTagWithDefaults = function(){
assertEquals(
- '
',
+ '
',
this.compileToHtml(''));
};
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js
index d621b1f1..3020dfba 100644
--- a/test/testabilityPatch.js
+++ b/test/testabilityPatch.js
@@ -65,7 +65,7 @@ function sortedHtml(element) {
var attrs = [];
for(var i=0; i
');
+ compile('
');
expect(scope.$get('name')).toEqual("Misko");
expect(scope.$get('count')).toEqual(0);
@@ -382,7 +382,7 @@ describe("widget", function(){
describe('ng:switch', function(){
it('should switch on value change', function(){
- compile('
first:{{name}}
second:{{name}}
');
+ compile('
first:{{name}}
second:{{name}}
');
expect(element.html()).toEqual('');
scope.select = 1;
scope.$eval();
@@ -399,7 +399,7 @@ describe("widget", function(){
});
it("should match urls", function(){
- var scope = angular.compile('
{{params.name}}
');
+ var scope = angular.compile('
{{params.name}}
');
scope.url = '/Book/Moby';
scope.$init();
expect(scope.$element.text()).toEqual('Moby');
@@ -412,7 +412,7 @@ describe("widget", function(){
});
it('should call init on switch', function(){
- var scope = angular.compile('
{{name}}
');
+ var scope = angular.compile('
{{name}}
');
var cleared = false;
scope.url = 'a';
scope.$invalidWidgets = {clearOrphans: function(){
--
cgit v1.2.3