From 0a5c00abf8664fdbdc5d16b13adb1989b4531cdf Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Mon, 7 Feb 2011 13:28:42 -0800
Subject: Add public API to retrieve scope from element.
---
test/CompilerSpec.js | 20 --------------------
1 file changed, 20 deletions(-)
(limited to 'test/CompilerSpec.js')
diff --git a/test/CompilerSpec.js b/test/CompilerSpec.js
index 498ee060..291a5011 100644
--- a/test/CompilerSpec.js
+++ b/test/CompilerSpec.js
@@ -166,24 +166,4 @@ describe('compiler', function(){
scope = compile('A---B---C===D');
expect(sortedHtml(scope.$element)).toEqual('
');
});
-
-
- describe('retrieveScope', function() {
- it('should retrieve scope attached to the current element', function() {
- scope = compile('foo');
- expect(retrieveScope(scope.$element)).toBe(scope);
- });
-
- it('should walk up the dom to find scope', function() {
- scope = compile('');
- var deepChild = scope.$element[0].getElementsByTagName('b')[0];
- expect(retrieveScope(deepChild)).toBe(scope);
- });
-
- it('should return undefined when no scope was found', function() {
- var html = jqLite(''),
- deepChild = html[0].getElementsByTagName('b')[0];
- expect(retrieveScope(deepChild)).toBeNull();
- });
- });
});
--
cgit v1.2.3