Skip to content

Commit

Permalink
fix:CI 超时
Browse files Browse the repository at this point in the history
  • Loading branch information
叶言 committed Nov 30, 2015
1 parent 27c58c9 commit d2d81df
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/qrcode-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ describe('qrcode', function() {
});
});
it('最长字符串', function() {
var s = '';
for(var i = 0; i < 2953; i++){
var s = '0123456789';
for(var i = 0; i < 295; i+=10){
s += i%10;
}
s+='012';
var qrnode = new qrcode({
width:500,
height:500,
Expand All @@ -83,8 +84,8 @@ describe('qrcode', function() {
});
it('超过最长字符串容错处理,截取前2953个字符', function() {
var s = '';
var t = '0123456789';
for(var i = 0; i < 3000; i+=10){
var t = '01234567890123456789';
for(var i = 0; i < 150; i+=20){
s += t;
}
var qrnode = new qrcode({
Expand Down

0 comments on commit d2d81df

Please sign in to comment.