aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/ApplicationSpec.js
diff options
context:
space:
mode:
authorVojta Jina2011-06-15 22:58:32 +0200
committerIgor Minar2011-06-15 22:58:57 -0700
commit7460a7ef618a274607ea99aecae99fb158115c36 (patch)
tree72a215d1e51c4f91caf5bf8cac33d42117ae9f24 /test/scenario/ApplicationSpec.js
parent3c87611188fc1612fe5d07e245a992b25146f2bf (diff)
downloadangular.js-7460a7ef618a274607ea99aecae99fb158115c36.tar.bz2
Fix test for scenario.Application - should remove old iframe
This behavior was changed by e83465c362c53ac7451183a775456f3112262f6e So this commit should have been part of e83465c362c53ac7451183a775456f3112262f6e Also removed hiding and navigating to about:blank as it makes no sense now...
Diffstat (limited to 'test/scenario/ApplicationSpec.js')
-rw-r--r--test/scenario/ApplicationSpec.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/scenario/ApplicationSpec.js b/test/scenario/ApplicationSpec.js
index 673a328f..1cab11ec 100644
--- a/test/scenario/ApplicationSpec.js
+++ b/test/scenario/ApplicationSpec.js
@@ -79,14 +79,16 @@ describe('angular.scenario.Application', function() {
expect(called).toBeTruthy();
});
- it('should hide old iframes and navigate to about:blank', function() {
+ it('should remove old iframes', function() {
app.navigateTo('http://localhost/#foo');
+ frames.find('iframe')[0].id = 'test';
+
app.navigateTo('http://localhost/#bar');
var iframes = frames.find('iframe');
- expect(iframes.length).toEqual(2);
- expect(iframes[0].src).toEqual('about:blank');
- expect(iframes[1].src).toEqual('http://localhost/#bar');
- expect(_jQuery(iframes[0]).css('display')).toEqual('none');
+
+ expect(iframes.length).toEqual(1);
+ expect(iframes[0].src).toEqual('http://localhost/#bar');
+ expect(iframes[0].id).toBeFalsy();
});
it('should URL update description bar', function() {