make CCRect accept width<0 and height<0
update js-tests codes from upstream
Merge pull request #1925 from minggo/master

update js-tests codes from upstream and fix a logical bug of CCRect