Created
July 1, 2015 07:18
-
-
Save anonymous/da970a36fd25a1d2e218 to your computer and use it in GitHub Desktop.
jPZWZd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section ng-app> | |
<button ng-click="count = count + 1" ng-init="count=0">Downloads ({{count}})</button> | |
</section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it('should check ng-click', function() { | |
expect(element(by.binding('count')).getText()).toMatch('0'); | |
element(by.css('button')).click(); | |
expect(element(by.binding('count')).getText()).toMatch('1'); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section{ | |
width:800px; | |
margin:0 auto; | |
text-align:center; | |
} | |
button{ | |
width:180px; | |
height:50px; | |
font-size:18px; | |
text-transform:uppercase; | |
font-weigt:blod; | |
color:#fff; | |
background:#000; | |
border-left:none; | |
border-right:none; | |
border-top:1px solid red; | |
border-bottom:1px solid red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment