Remove unused results
This commit is contained in:
parent
12adaa0570
commit
8a9395101e
3 changed files with 12 additions and 20 deletions
|
@ -271,7 +271,7 @@ describe('menu module', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should assign groupId automatically', function() {
|
it('should assign groupId automatically', function() {
|
||||||
var groupId, i, j, k, l, m, menu, results, template;
|
var groupId, i, j, k, l, m, menu, template;
|
||||||
template = [];
|
template = [];
|
||||||
for (i = j = 0; j <= 10; i = ++j) {
|
for (i = j = 0; j <= 10; i = ++j) {
|
||||||
template.push({
|
template.push({
|
||||||
|
@ -299,7 +299,7 @@ describe('menu module', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("setting 'checked' should flip other items' 'checked' property", function() {
|
it("setting 'checked' should flip other items' 'checked' property", function() {
|
||||||
var i, j, k, l, m, menu, n, o, p, q, results, template;
|
var i, j, k, l, m, menu, n, o, p, q, template;
|
||||||
template = [];
|
template = [];
|
||||||
for (i = j = 0; j <= 10; i = ++j) {
|
for (i = j = 0; j <= 10; i = ++j) {
|
||||||
template.push({
|
template.push({
|
||||||
|
|
|
@ -138,9 +138,8 @@ describe('asar package', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns information of a normal file', function() {
|
it('returns information of a normal file', function() {
|
||||||
var file, j, len, p, ref2, results, stats;
|
var file, j, len, p, ref2, stats;
|
||||||
ref2 = ['file1', 'file2', 'file3', path.join('dir1', 'file1'), path.join('link2', 'file1')];
|
ref2 = ['file1', 'file2', 'file3', path.join('dir1', 'file1'), path.join('link2', 'file1')];
|
||||||
results = [];
|
|
||||||
for (j = 0, len = ref2.length; j < len; j++) {
|
for (j = 0, len = ref2.length; j < len; j++) {
|
||||||
file = ref2[j];
|
file = ref2[j];
|
||||||
p = path.join(fixtures, 'asar', 'a.asar', file);
|
p = path.join(fixtures, 'asar', 'a.asar', file);
|
||||||
|
@ -148,15 +147,13 @@ describe('asar package', function() {
|
||||||
assert.equal(stats.isFile(), true);
|
assert.equal(stats.isFile(), true);
|
||||||
assert.equal(stats.isDirectory(), false);
|
assert.equal(stats.isDirectory(), false);
|
||||||
assert.equal(stats.isSymbolicLink(), false);
|
assert.equal(stats.isSymbolicLink(), false);
|
||||||
results.push(assert.equal(stats.size, 6));
|
assert.equal(stats.size, 6);
|
||||||
}
|
}
|
||||||
results;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns information of a normal directory', function() {
|
it('returns information of a normal directory', function() {
|
||||||
var file, j, len, p, ref2, results, stats;
|
var file, j, len, p, ref2, stats;
|
||||||
ref2 = ['dir1', 'dir2', 'dir3'];
|
ref2 = ['dir1', 'dir2', 'dir3'];
|
||||||
results = [];
|
|
||||||
for (j = 0, len = ref2.length; j < len; j++) {
|
for (j = 0, len = ref2.length; j < len; j++) {
|
||||||
file = ref2[j];
|
file = ref2[j];
|
||||||
p = path.join(fixtures, 'asar', 'a.asar', file);
|
p = path.join(fixtures, 'asar', 'a.asar', file);
|
||||||
|
@ -164,15 +161,13 @@ describe('asar package', function() {
|
||||||
assert.equal(stats.isFile(), false);
|
assert.equal(stats.isFile(), false);
|
||||||
assert.equal(stats.isDirectory(), true);
|
assert.equal(stats.isDirectory(), true);
|
||||||
assert.equal(stats.isSymbolicLink(), false);
|
assert.equal(stats.isSymbolicLink(), false);
|
||||||
results.push(assert.equal(stats.size, 0));
|
assert.equal(stats.size, 0);
|
||||||
}
|
}
|
||||||
results;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns information of a linked file', function() {
|
it('returns information of a linked file', function() {
|
||||||
var file, j, len, p, ref2, results, stats;
|
var file, j, len, p, ref2, stats;
|
||||||
ref2 = ['link1', path.join('dir1', 'link1'), path.join('link2', 'link2')];
|
ref2 = ['link1', path.join('dir1', 'link1'), path.join('link2', 'link2')];
|
||||||
results = [];
|
|
||||||
for (j = 0, len = ref2.length; j < len; j++) {
|
for (j = 0, len = ref2.length; j < len; j++) {
|
||||||
file = ref2[j];
|
file = ref2[j];
|
||||||
p = path.join(fixtures, 'asar', 'a.asar', file);
|
p = path.join(fixtures, 'asar', 'a.asar', file);
|
||||||
|
@ -180,15 +175,13 @@ describe('asar package', function() {
|
||||||
assert.equal(stats.isFile(), false);
|
assert.equal(stats.isFile(), false);
|
||||||
assert.equal(stats.isDirectory(), false);
|
assert.equal(stats.isDirectory(), false);
|
||||||
assert.equal(stats.isSymbolicLink(), true);
|
assert.equal(stats.isSymbolicLink(), true);
|
||||||
results.push(assert.equal(stats.size, 0));
|
assert.equal(stats.size, 0);
|
||||||
}
|
}
|
||||||
results;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('returns information of a linked directory', function() {
|
it('returns information of a linked directory', function() {
|
||||||
var file, j, len, p, ref2, results, stats;
|
var file, j, len, p, ref2, stats;
|
||||||
ref2 = ['link2', path.join('dir1', 'link2'), path.join('link2', 'link2')];
|
ref2 = ['link2', path.join('dir1', 'link2'), path.join('link2', 'link2')];
|
||||||
results = [];
|
|
||||||
for (j = 0, len = ref2.length; j < len; j++) {
|
for (j = 0, len = ref2.length; j < len; j++) {
|
||||||
file = ref2[j];
|
file = ref2[j];
|
||||||
p = path.join(fixtures, 'asar', 'a.asar', file);
|
p = path.join(fixtures, 'asar', 'a.asar', file);
|
||||||
|
@ -196,9 +189,8 @@ describe('asar package', function() {
|
||||||
assert.equal(stats.isFile(), false);
|
assert.equal(stats.isFile(), false);
|
||||||
assert.equal(stats.isDirectory(), false);
|
assert.equal(stats.isDirectory(), false);
|
||||||
assert.equal(stats.isSymbolicLink(), true);
|
assert.equal(stats.isSymbolicLink(), true);
|
||||||
results.push(assert.equal(stats.size, 0));
|
assert.equal(stats.size, 0);
|
||||||
}
|
}
|
||||||
results;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
it('throws ENOENT error when can not find file', function() {
|
it('throws ENOENT error when can not find file', function() {
|
||||||
|
@ -461,7 +453,7 @@ describe('asar package', function() {
|
||||||
|
|
||||||
describe('fs.openSync', function() {
|
describe('fs.openSync', function() {
|
||||||
it('opens a normal/linked/under-linked-directory file', function() {
|
it('opens a normal/linked/under-linked-directory file', function() {
|
||||||
var buffer, fd, file, j, len, p, ref2, results;
|
var buffer, fd, file, j, len, p, ref2;
|
||||||
ref2 = ['file1', 'link1', path.join('link2', 'file1')];
|
ref2 = ['file1', 'link1', path.join('link2', 'file1')];
|
||||||
for (j = 0, len = ref2.length; j < len; j++) {
|
for (j = 0, len = ref2.length; j < len; j++) {
|
||||||
file = ref2[j];
|
file = ref2[j];
|
||||||
|
|
|
@ -119,7 +119,7 @@ describe('chromium feature', function() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
sw.loadURL(url);
|
w.loadURL(url);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue