aboutsummaryrefslogtreecommitdiffstats
path: root/test/CompilerSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2011-02-07 13:28:42 -0800
committerMisko Hevery2011-02-16 00:48:22 -0500
commit0a5c00abf8664fdbdc5d16b13adb1989b4531cdf (patch)
tree42d9426de8aa7917ba2dc127ee35dbc5890d7877 /test/CompilerSpec.js
parenta004d487c4bb48b2bec19b60bc5ddc5244029be5 (diff)
downloadangular.js-0a5c00abf8664fdbdc5d16b13adb1989b4531cdf.tar.bz2
Add public API to retrieve scope from element.
Diffstat (limited to 'test/CompilerSpec.js')
-rw-r--r--test/CompilerSpec.js20
1 files changed, 0 insertions, 20 deletions
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('<div>A<hr></hr>B<hr></hr>C<p></p>D</div>');
});
-
-
- describe('retrieveScope', function() {
- it('should retrieve scope attached to the current element', function() {
- scope = compile('<i>foo</i>');
- expect(retrieveScope(scope.$element)).toBe(scope);
- });
-
- it('should walk up the dom to find scope', function() {
- scope = compile('<ul><li><p><b>deep deep</b><p></li></ul>');
- 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('<ul><li><p><b>deep deep</b><p></li></ul>'),
- deepChild = html[0].getElementsByTagName('b')[0];
- expect(retrieveScope(deepChild)).toBeNull();
- });
- });
});