diff options
| author | Andres Ornelas Mesta | 2010-05-24 13:54:32 -0700 |
|---|---|---|
| committer | Andres Ornelas Mesta | 2010-05-24 13:54:32 -0700 |
| commit | f6c67e28c94033edf6a16eb6508de54679cb49db (patch) | |
| tree | 2789a523583eaf4aa1cb74e03a4a63ff5e046f05 /scenario/widgets-scenario2.js | |
| parent | d485421e0e5d6c502e4f62de69d1b4b353f20bbd (diff) | |
| download | angular.js-f6c67e28c94033edf6a16eb6508de54679cb49db.tar.bz2 | |
happy
Diffstat (limited to 'scenario/widgets-scenario2.js')
| -rw-r--r-- | scenario/widgets-scenario2.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scenario/widgets-scenario2.js b/scenario/widgets-scenario2.js index e24cabad..b966b270 100644 --- a/scenario/widgets-scenario2.js +++ b/scenario/widgets-scenario2.js @@ -4,7 +4,7 @@ browser = { var self = this; self.testFrame.load(function(){ self.testFrame.unbind(); - self.testDocument = self.testWindow.angular.element(self.testWindow.document); + self.testDocument = jQuery(self.testWindow.document); done(); }); if (this.testFrame.attr('src') == url) { @@ -23,6 +23,7 @@ function input(selector) { var input = this.testDocument.find('input[name=' + selector + ']'); input.val(value); input.trigger('change'); + this.testWindow.angular.element(input[0]).trigger('change'); done(); }); } @@ -49,6 +50,6 @@ describe('widgets', function(){ browser.navigateTo('widgets.html'); expect('{{text.basic}}').toEqual(''); input('text.basic').enter('John'); - expect('{{text.basic}}').toEqual('JohnXX'); + expect('{{text.basic}}').toEqual('John'); }); }); |
