aboutsummaryrefslogtreecommitdiffstats
path: root/test/ngScenario/ApplicationSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/ngScenario/ApplicationSpec.js')
-rw-r--r--test/ngScenario/ApplicationSpec.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/ngScenario/ApplicationSpec.js b/test/ngScenario/ApplicationSpec.js
index 0236b8d7..cb9fb478 100644
--- a/test/ngScenario/ApplicationSpec.js
+++ b/test/ngScenario/ApplicationSpec.js
@@ -9,11 +9,20 @@ describe('angular.scenario.Application', function() {
}
beforeEach(function() {
+ document.body.innerHTML = '';
frames = _jQuery("<div></div>");
+ _jQuery(document.body).append(frames);
app = new angular.scenario.Application(frames);
});
- it('should return new $window and $document after navigate', function() {
+
+ afterEach(function() {
+ _jQuery('iframe').unbind(); // cleanup any leftover onload handlers
+ document.body.innerHTML = '';
+ });
+
+
+ it('should return new $window and $document after navigateTo', function() {
var called;
var testWindow, testDocument, counter = 0;
app.getWindow_ = function() {