diff options
| author | Shyam Seshadri | 2010-08-10 10:48:31 -0700 |
|---|---|---|
| committer | Shyam Seshadri | 2010-08-10 10:48:31 -0700 |
| commit | 86c2ef87d5069f0836079e171c0f33efcf2b5d24 (patch) | |
| tree | cc99bb5bfcc1d0ff5a0ac8382c9ffe2352d167bf /test/scenario/DSLSpec.js | |
| parent | 21d2b43e6c81b7b6b55599f0274495d25411b4f0 (diff) | |
| download | angular.js-86c2ef87d5069f0836079e171c0f33efcf2b5d24.tar.bz2 | |
Inject jquery into future scope, and rename outer scenario to _window, which is what it is
Diffstat (limited to 'test/scenario/DSLSpec.js')
| -rw-r--r-- | test/scenario/DSLSpec.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/scenario/DSLSpec.js b/test/scenario/DSLSpec.js index a6a291f8..374f49c8 100644 --- a/test/scenario/DSLSpec.js +++ b/test/scenario/DSLSpec.js @@ -5,15 +5,16 @@ describe("DSL", function() { beforeEach(function() { setUpContext(); executeFuture = function(future, html, callback) { - lastDocument =_jQuery('<div>' + html + '</div>'); + lastDocument = _jQuery('<div>' + html + '</div>'); _jQuery(document.body).append(lastDocument); var specThis = { testWindow: window, - testDocument: lastDocument + testDocument: lastDocument, + jQuery: _jQuery }; future.behavior.call(specThis, callback || noop); }; - Expect = scenario.expect; + Expect = _window.expect; }); describe("input", function() { |
