diff options
| author | Vojta Jina | 2012-01-02 20:50:17 -0800 |
|---|---|---|
| committer | Vojta Jina | 2012-01-03 15:09:00 -0800 |
| commit | c594f75b4c59a5341741f012a4f2942a920bac8c (patch) | |
| tree | 74d2c0a366edf6b970f6e93bc9d6de346106a676 /test/testabilityPatch.js | |
| parent | 50eb7f15b8b9bfbf7b1aed193ce72ec9b586dc14 (diff) | |
| download | angular.js-c594f75b4c59a5341741f012a4f2942a920bac8c.tar.bz2 | |
refactor: remove old JSTD assertions
So that we can run the tests even without JSTD :-D
Diffstat (limited to 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 8150a0a3..b4d11f3a 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -174,12 +174,14 @@ function isCssVisible(node) { } function assertHidden(node) { - assertFalse("Node should be hidden but vas visible: " + - angular.module.ngMock.dump(node), isCssVisible(node)); + if (isCssVisible(node)) { + throw new Error('Node should be hidden but was visible: ' + angular.module.ngMock.dump(node)); + } } function assertVisible(node) { - assertTrue("Node should be visible but vas hidden: " + - angular.module.ngMock.dump(node), isCssVisible(node)); + if (!isCssVisible(node)) { + throw new Error('Node should be visible but was hidden: ' + angular.module.ngMock.dump(node)); + } } |
