diff options
| author | Misko Hevery | 2010-10-22 22:46:51 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-10-22 22:46:51 -0700 | 
| commit | 8a867cee229b78f5bfde6a05fdbe0d7d3d608e11 (patch) | |
| tree | 3c4b8b34d2d011301f8b9de2262464dca37a5215 /test/testabilityPatch.js | |
| parent | 68217d427cbbb4d8a83d6a3b820c0c42401b4504 (diff) | |
| download | angular.js-8a867cee229b78f5bfde6a05fdbe0d7d3d608e11.tar.bz2 | |
Workaround for http://bugs.jquery.com/ticket/7292
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 15 | 
1 files changed, 13 insertions, 2 deletions
| diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 247faa19..b4602c39 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -1,5 +1,16 @@ -jstd = jstestdriver; -dump = bind(jstd.console, jstd.console.log); +/** + * Here is the problem: http://bugs.jquery.com/ticket/7292 + * basically jQuery treats change event on some browsers (IE) as a + * special event and changes it form 'change' to 'click/keyup' and + * few others. This horrible hack removes the special treatment + */ +_jQuery.event.special.change = undefined; + + +if (window.jstestdriver) { +  jstd = jstestdriver; +  dump = bind(jstd.console, jstd.console.log); +}  beforeEach(function(){    this.addMatchers({ | 
