From 87cbf9f59180d015da78c4286d692afafece5036 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Wed, 16 Feb 2011 12:00:06 -0500
Subject: Remove ng:watch
Closes#143
---
test/BinderSpec.js | 20 --------------------
test/directivesSpec.js | 12 ------------
2 files changed, 32 deletions(-)
(limited to 'test')
diff --git a/test/BinderSpec.js b/test/BinderSpec.js
index ce2a9d3a..80a950b0 100644
--- a/test/BinderSpec.js
+++ b/test/BinderSpec.js
@@ -226,12 +226,6 @@ describe('Binder', function(){
'', sortedHtml(a.view));
});
- it('ExpandEntityTag', function(){
- assertEquals(
- '
',
- this.compileToHtml(''));
- });
-
it('DoNotOverwriteCustomAction', function(){
var html = this.compileToHtml('');
assertTrue(html.indexOf('action="foo();"') > 0 );
@@ -612,20 +606,6 @@ describe('Binder', function(){
assertEquals("male", male.val());
});
- it('ItShouldListenOnRightScope', function(){
- var c = this.compile(
- '');
- c.scope.$eval();
- assertEquals(1, c.scope.$get("counter"));
- assertEquals(7, c.scope.$get("gCounter"));
-
- c.scope.$set("w", "something");
- c.scope.$eval();
- assertEquals(2, c.scope.$get("counter"));
- assertEquals(14, c.scope.$get("gCounter"));
- });
-
it('ItShouldRepeatOnHashes', function(){
var x = this.compile('');
x.scope.$eval();
diff --git a/test/directivesSpec.js b/test/directivesSpec.js
index 2d4703a2..c02eb025 100644
--- a/test/directivesSpec.js
+++ b/test/directivesSpec.js
@@ -137,18 +137,6 @@ describe("directive", function(){
expect(input.checked).toEqual(true);
});
- it('should ng:watch', function(){
- var scope = compile('');
- scope.$eval();
- scope.$eval();
- expect(scope.$get('count')).toEqual(1);
-
- scope.$set('i', 0);
- scope.$eval();
- scope.$eval();
- expect(scope.$get('count')).toEqual(2);
- });
-
describe('ng:click', function(){
it('should get called on a click', function(){
var scope = compile('
');
--
cgit v1.2.3