aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/ApplicationSpec.js
diff options
context:
space:
mode:
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() {