diff options
| author | Igor Minar | 2010-10-04 23:42:21 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2010-10-06 10:05:51 -0700 | 
| commit | a930e782a56eca047130e5a32f1ce97a0da05927 (patch) | |
| tree | 0a00605413e7c99619a0699f837bd1b1daccbc04 /test/widgetsSpec.js | |
| parent | 8e40e7070d44d11332adc1426b7076c2be570b2b (diff) | |
| download | angular.js-a930e782a56eca047130e5a32f1ce97a0da05927.tar.bz2 | |
removing anchor spec and improving jqLite.trigger() method
- removing the last anchor spec because it can't run reliably in all browsers
- improving jqLite.trigger() method
Diffstat (limited to 'test/widgetsSpec.js')
| -rw-r--r-- | test/widgetsSpec.js | 23 | 
1 files changed, 0 insertions, 23 deletions
diff --git a/test/widgetsSpec.js b/test/widgetsSpec.js index a4bcf7b6..d2a39535 100644 --- a/test/widgetsSpec.js +++ b/test/widgetsSpec.js @@ -500,20 +500,6 @@ describe("widget", function(){    });    describe('a', function() { - -    beforeEach(function() { -      //TODO (igor): lame workaround for -      //http://code.google.com/p/js-test-driver/issues/detail?id=144 -      document.location.hash = ''; -    }); - - -    afterEach(function() { -      //TODO (igor): see beforeEach -      document.location.hash = ''; -    }); - -      it('should prevent default action to be executed when href is empty', function() {        var orgLocation = document.location.href,            preventDefaultCalled = false, @@ -546,15 +532,6 @@ describe("widget", function(){        expect(document.location.href).toEqual(orgLocation);      }); - - -    it('should change location when href is nonempty', function() { -      var orgLocation = document.location.href; - -      compile('<a href="#newLocation">goto</a>'); -      click(element); -      expect(document.location.href).toEqual(orgLocation + 'newLocation'); -    });    });  });  | 
