aboutsummaryrefslogtreecommitdiffstats
path: root/test/scenario/ApplicationSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2012-01-06 18:10:47 -0800
committerMisko Hevery2012-01-10 22:27:00 -0800
commit5143e7bf065a3cbdf8400cf095b653d51bc83b8f (patch)
tree980149c365d4cb5586d27975d26366a25ff7be6a /test/scenario/ApplicationSpec.js
parentafd25446d23f24872eb20ac79c8fbd2cff203ef0 (diff)
downloadangular.js-5143e7bf065a3cbdf8400cf095b653d51bc83b8f.tar.bz2
feat(module): new module loader
Diffstat (limited to 'test/scenario/ApplicationSpec.js')
-rw-r--r--test/scenario/ApplicationSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/scenario/ApplicationSpec.js b/test/scenario/ApplicationSpec.js
index 86023438..7384ecaa 100644
--- a/test/scenario/ApplicationSpec.js
+++ b/test/scenario/ApplicationSpec.js
@@ -116,7 +116,7 @@ describe('angular.scenario.Application', function() {
var called, polled;
var handlers = [];
var testWindow = {
- document: jqLite('<div class="test-foo"></div>'),
+ document: jqLite('<div class="test-foo" ng-app></div>')[0],
angular: {
element: jqLite,
service: {}
@@ -125,7 +125,7 @@ describe('angular.scenario.Application', function() {
$browser.notifyWhenNoOutstandingRequests = function(fn) {
handlers.push(fn);
};
- testWindow.document.data('$injector', $injector);
+ jqLite(testWindow.document).data('$injector', $injector);
app.getWindow_ = function() {
return testWindow;
};