From 75f11f1fc46c35a28c0905f7316ea6779145e2fb Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Tue, 16 Aug 2011 23:08:13 -0700
Subject: feat(ng:repeat) collection items and DOM elements affinity /
stability
---
test/BinderSpec.js | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
(limited to 'test/BinderSpec.js')
diff --git a/test/BinderSpec.js b/test/BinderSpec.js
index 68513f62..93f23eef 100644
--- a/test/BinderSpec.js
+++ b/test/BinderSpec.js
@@ -194,25 +194,25 @@ describe('Binder', function(){
scope.$apply();
assertEquals('
'+
'<#comment>#comment>'+
- '
'+
+ '
'+
'<#comment>#comment>'+
- '
'+
- '
'+
+ '
'+
+ '
'+
'
'+
- '
'+
+ '
'+
'<#comment>#comment>'+
- '
'+
- '
'+
+ '
'+
+ '
'+
'
', sortedHtml(scope.$element));
});
@@ -417,8 +417,8 @@ describe('Binder', function(){
expect(d2.hasClass('e')).toBeTruthy();
assertEquals(
'
<#comment>#comment>' +
- '
' +
- '
',
+ '
' +
+ '
',
sortedHtml(scope.$element));
});
@@ -459,8 +459,8 @@ describe('Binder', function(){
scope.items = [{}, {name:'misko'}];
scope.$apply();
- assertEquals("123", scope.$eval('items[0].name'));
- assertEquals("misko", scope.$eval('items[1].name'));
+ expect(scope.$eval('items[0].name')).toEqual("123");
+ expect(scope.$eval('items[1].name')).toEqual("misko");
});
it('ShouldTemplateBindPreElements', function () {
@@ -593,8 +593,8 @@ describe('Binder', function(){
scope.$apply();
assertEquals('
' +
'<#comment>#comment>' +
- '- a0
' +
- '- b1
' +
+ '- a0
' +
+ '- b1
' +
'
',
sortedHtml(scope.$element));
});
--
cgit v1.2.3