Fix standard style issues

This commit is contained in:
pyoor 2017-06-01 13:30:04 -04:00
parent be4fef5d86
commit ade22d6dc4
2 changed files with 11 additions and 11 deletions

View File

@ -50,7 +50,7 @@ make.network = {
randomIPv6: function () {
let parts = []
for (let i=0; i<8; i++) {
for (let i = 0; i < 8; i++) {
parts.push(random.hex(4))
}

View File

@ -98,7 +98,7 @@ make.text = {
0x2044 // fraction slash character
])
},
bidiCharCodes: function() {
bidiCharCodes: function () {
return random.pick([
0x0660, // START_HINDI_DIGITS
0x0669, // END_HINDI_DIGITS
@ -107,7 +107,7 @@ make.text = {
0x0030, // START_ARABIC_DIGITS
0x0039, // END_ARABIC_DIGITS
0x06f0, // START_FARSI_DIGITS
0x06f9, // END_FARSI_DIGITS
0x06f9 // END_FARSI_DIGITS
])
},
// http://www.unicode.org/Public/6.0.0/ucd/UnicodeData.txt
@ -182,7 +182,7 @@ make.text = {
fromBlocks: function (set, maxlen) {
let s = ''
for (let i=0; i<random.number(maxlen || 255); i++) {
for (let i = 0; i < random.number(maxlen || 255); i++) {
s += random.pick(set)
}
@ -191,25 +191,25 @@ make.text = {
quotedString: function () {
return utils.common.quote(make.text.any())
},
chars: function() {
chars: function () {
return random.pick([
make.text.controlChar,
make.text.token,
make.text.assignmentOperator,
make.text.arithmeticOperator,
String.fromCharCode(make.text.layoutCharCodes),
String.fromCharCode(make.text.bidiCharCodes),
]);
String.fromCharCode(make.text.bidiCharCodes)
])
},
any: function() {
any: function () {
// Generate a string compromised of random individual characters
// This might be too slow to used for all 'texts' uses
let s = '';
let s = ''
// TODO: Len calculation take from DOMFuzz - maybe we should revise this?
let len = random.number(1000) * random.number(10) + random.number(10)
for (let i=0; i<len; i++) {
for (let i = 0; i < len; i++) {
s += make.text.chars()
}
return s;
return s
}
}