forked from sheetjs/sheetjs
spelling [ci skip]
- fixed spelling errors in README and code (fixes #802) - replaced garbled names in property tests (fixes #803)
This commit is contained in:
parent
635310b639
commit
e34b6e78d2
@ -2111,7 +2111,7 @@ the metadata the output is valid HTML, although it does accept bare `&` symbols.
|
|||||||
|
|
||||||
`make test` will run the node-based tests. By default it runs tests on files in
|
`make test` will run the node-based tests. By default it runs tests on files in
|
||||||
every supported format. To test a specific file type, set `FMTS` to the format
|
every supported format. To test a specific file type, set `FMTS` to the format
|
||||||
you want to test. Feature-specific tests are avaialble with `make test_misc`
|
you want to test. Feature-specific tests are available with `make test_misc`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ make test_misc # run core tests
|
$ make test_misc # run core tests
|
||||||
|
@ -381,7 +381,7 @@ var ENDOFCHAIN = -2;
|
|||||||
var HEADER_SIGNATURE = 'd0cf11e0a1b11ae1';
|
var HEADER_SIGNATURE = 'd0cf11e0a1b11ae1';
|
||||||
var HEADER_CLSID = '00000000000000000000000000000000';
|
var HEADER_CLSID = '00000000000000000000000000000000';
|
||||||
var consts = {
|
var consts = {
|
||||||
/* 2.1 Compund File Sector Numbers and Types */
|
/* 2.1 Compound File Sector Numbers and Types */
|
||||||
MAXREGSECT: -6,
|
MAXREGSECT: -6,
|
||||||
DIFSECT: -4,
|
DIFSECT: -4,
|
||||||
FATSECT: -3,
|
FATSECT: -3,
|
||||||
|
@ -149,7 +149,7 @@ function dbf_to_aoa(buf, opts)/*:AOA*/ {
|
|||||||
case 'L': switch(s.toUpperCase()) {
|
case 'L': switch(s.toUpperCase()) {
|
||||||
case 'Y': case 'T': out[R][C] = true; break;
|
case 'Y': case 'T': out[R][C] = true; break;
|
||||||
case 'N': case 'F': out[R][C] = false; break;
|
case 'N': case 'F': out[R][C] = false; break;
|
||||||
case ' ': case '?': out[R][C] = false; break; /* NOTE: technically unitialized */
|
case ' ': case '?': out[R][C] = false; break; /* NOTE: technically uninitialized */
|
||||||
default: throw new Error("DBF Unrecognized L:|" + s + "|");
|
default: throw new Error("DBF Unrecognized L:|" + s + "|");
|
||||||
} break;
|
} break;
|
||||||
case 'M': /* TODO: handle memo files */
|
case 'M': /* TODO: handle memo files */
|
||||||
|
@ -131,7 +131,7 @@ function parse_EncryptionInfo(blob, length/*:?number*/) {
|
|||||||
case 0x03: return parse_EncInfoExt(blob, vers);
|
case 0x03: return parse_EncInfoExt(blob, vers);
|
||||||
case 0x04: return parse_EncInfoAgl(blob, vers);
|
case 0x04: return parse_EncInfoAgl(blob, vers);
|
||||||
}
|
}
|
||||||
throw new Error("ECMA-376 Encryped file unrecognized Version: " + vers.Minor);
|
throw new Error("ECMA-376 Encrypted file unrecognized Version: " + vers.Minor);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* [MS-OFFCRYPTO] 2.3.4.5 EncryptionInfo Stream (Standard Encryption) */
|
/* [MS-OFFCRYPTO] 2.3.4.5 EncryptionInfo Stream (Standard Encryption) */
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Headless Browsers
|
# Headless Browsers
|
||||||
|
|
||||||
The library, intentionally conservative in the use of ES5+ feaures, plays nicely
|
The library, intentionally conservative in the use of ES5+ features, plays nicely
|
||||||
with most headless browsers. This demo shows a few common headless scenarios.
|
with most headless browsers. This demo shows a few common headless scenarios.
|
||||||
|
|
||||||
## PhantomJS
|
## PhantomJS
|
||||||
|
@ -6,7 +6,7 @@ var SJSTemplate = [
|
|||||||
'<div>',
|
'<div>',
|
||||||
'<input type="file" multiple="false" id="sheetjs-input" accept="' + SheetJSFT + '" @change="onchange" />',
|
'<input type="file" multiple="false" id="sheetjs-input" accept="' + SheetJSFT + '" @change="onchange" />',
|
||||||
'<br/>',
|
'<br/>',
|
||||||
'<button type="button" id="expor-table" style="visibility:hidden" @click="onexport">Export to XLSX</button>',
|
'<button type="button" id="export-table" style="visibility:hidden" @click="onexport">Export to XLSX</button>',
|
||||||
'<br/>',
|
'<br/>',
|
||||||
'<div id="out-table"></div>',
|
'<div id="out-table"></div>',
|
||||||
'</div>'
|
'</div>'
|
||||||
@ -61,7 +61,7 @@ Vue.component('html-preview', {
|
|||||||
/* update table */
|
/* update table */
|
||||||
document.getElementById('out-table').innerHTML = HTML;
|
document.getElementById('out-table').innerHTML = HTML;
|
||||||
/* show export button */
|
/* show export button */
|
||||||
document.getElementById('expor-table').style.visibility = "visible";
|
document.getElementById('export-table').style.visibility = "visible";
|
||||||
};
|
};
|
||||||
|
|
||||||
reader.readAsArrayBuffer(file);
|
reader.readAsArrayBuffer(file);
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
`make test` will run the node-based tests. By default it runs tests on files in
|
`make test` will run the node-based tests. By default it runs tests on files in
|
||||||
every supported format. To test a specific file type, set `FMTS` to the format
|
every supported format. To test a specific file type, set `FMTS` to the format
|
||||||
you want to test. Feature-specific tests are avaialble with `make test_misc`
|
you want to test. Feature-specific tests are available with `make test_misc`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ make test_misc # run core tests
|
$ make test_misc # run core tests
|
||||||
|
@ -1923,7 +1923,7 @@ the metadata the output is valid HTML, although it does accept bare `&` symbols.
|
|||||||
|
|
||||||
`make test` will run the node-based tests. By default it runs tests on files in
|
`make test` will run the node-based tests. By default it runs tests on files in
|
||||||
every supported format. To test a specific file type, set `FMTS` to the format
|
every supported format. To test a specific file type, set `FMTS` to the format
|
||||||
you want to test. Feature-specific tests are avaialble with `make test_misc`
|
you want to test. Feature-specific tests are available with `make test_misc`
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ make test_misc # run core tests
|
$ make test_misc # run core tests
|
||||||
|
22
test.js
22
test.js
@ -1253,19 +1253,19 @@ describe('write features', function() {
|
|||||||
X = require(modp);
|
X = require(modp);
|
||||||
ws = X.utils.aoa_to_sheet([["a","b","c"],[1,2,3]]);
|
ws = X.utils.aoa_to_sheet([["a","b","c"],[1,2,3]]);
|
||||||
baseprops = {
|
baseprops = {
|
||||||
Category: "C4tegory",
|
Category: "Newspaper",
|
||||||
ContentStatus: "C0ntentStatus",
|
ContentStatus: "Published",
|
||||||
Keywords: "K3ywords",
|
Keywords: "print",
|
||||||
LastAuthor: "L4stAuthor",
|
LastAuthor: "Perry White",
|
||||||
LastPrinted: "L4stPrinted",
|
LastPrinted: "1978-12-15",
|
||||||
RevNumber: 6969,
|
RevNumber: 6969,
|
||||||
AppVersion: 69,
|
AppVersion: 69,
|
||||||
Author: "4uth0r",
|
Author: "Lois Lane",
|
||||||
Comments: "C0mments",
|
Comments: "Needs work",
|
||||||
Identifier: "1d",
|
Identifier: "1d",
|
||||||
Language: "L4nguage",
|
Language: "English",
|
||||||
Subject: "Subj3ct",
|
Subject: "Superman",
|
||||||
Title: "T1tle"
|
Title: "Man of Steel"
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
if(typeof before != 'undefined') before(bef);
|
if(typeof before != 'undefined') before(bef);
|
||||||
@ -2016,7 +2016,7 @@ describe('encryption', function() {
|
|||||||
it('should throw with no password', function() {assert.throws(function() { X.read(fs.readFileSync(dir + x), {type:TYPE}); }); });
|
it('should throw with no password', function() {assert.throws(function() { X.read(fs.readFileSync(dir + x), {type:TYPE}); }); });
|
||||||
it('should throw with wrong password', function() {
|
it('should throw with wrong password', function() {
|
||||||
try {
|
try {
|
||||||
X.read(fs.readFileSync(dir + x), {type:TYPE,password:'passwor',WTF:opts.WTF});
|
X.read(fs.readFileSync(dir + x), {type:TYPE,password:'Password',WTF:opts.WTF});
|
||||||
throw new Error("incorrect password was accepted");
|
throw new Error("incorrect password was accepted");
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
if(e.message != "Password is incorrect") throw e;
|
if(e.message != "Password is incorrect") throw e;
|
||||||
|
@ -2016,7 +2016,7 @@ describe('encryption', function() {
|
|||||||
it('should throw with no password', function() {assert.throws(function() { X.read(fs.readFileSync(dir + x), {type:TYPE}); }); });
|
it('should throw with no password', function() {assert.throws(function() { X.read(fs.readFileSync(dir + x), {type:TYPE}); }); });
|
||||||
it('should throw with wrong password', function() {
|
it('should throw with wrong password', function() {
|
||||||
try {
|
try {
|
||||||
X.read(fs.readFileSync(dir + x), {type:TYPE,password:'passwor',WTF:opts.WTF});
|
X.read(fs.readFileSync(dir + x), {type:TYPE,password:'Password',WTF:opts.WTF});
|
||||||
throw new Error("incorrect password was accepted");
|
throw new Error("incorrect password was accepted");
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
if(e.message != "Password is incorrect") throw e;
|
if(e.message != "Password is incorrect") throw e;
|
||||||
|
Loading…
Reference in New Issue
Block a user