Skip to content

Commit 8ecbf4d

Browse files
authored
browser test cleanup (#2039)
* browser test cleanup * add cases to core.js * apply feedback
1 parent 93ec51e commit 8ecbf4d

File tree

4 files changed

+131
-15
lines changed

4 files changed

+131
-15
lines changed

tests/core.js

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures.js

Lines changed: 58 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/fixtures.lst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
./test_files/AutoFilter.ods
3434
./test_files/AutoFilter.xlsx
3535
./test_files/AutoFilter.xlsb
36+
./test_files/BlankSheetTypes.xls
37+
./test_files/BlankSheetTypes.xlsb
38+
./test_files/BlankSheetTypes.xlsm
3639
./test_files/custom_properties.xls
3740
./test_files/custom_properties.xls.xml
3841
./test_files/custom_properties.xlsx
@@ -71,6 +74,10 @@
7174
./test_files/formula_stress_test.xlsx
7275
./test_files/formula_stress_test.xlsb
7376
./test_files/formula_stress_test.ods
77+
./test_files/formulae_test_simple.xls
78+
./test_files/formulae_test_simple.xlsb
79+
./test_files/formulae_test_simple.xlsx
80+
./test_files/formulae_test_simple.xml
7481
./test_files/hyperlink_stress_test_2011.xls
7582
./test_files/hyperlink_stress_test_2011.xml
7683
./test_files/hyperlink_stress_test_2011.xlsx
@@ -88,10 +95,22 @@
8895
./test_files/merge_cells.xlsx
8996
./test_files/merge_cells.xlsb
9097
./test_files/merge_cells.ods
98+
./test_files/named_ranges_2011.xls.xml
99+
./test_files/named_ranges_2011.xlsb
100+
./test_files/named_ranges_2011.xlsx
101+
./test_files/named_ranges_2011.xls
91102
./test_files/number_format.xls
92103
./test_files/number_format.xls.xml
93104
./test_files/number_format.xlsm
94105
./test_files/number_format.xlsb
106+
./test_files/number_format_entities.xls
107+
./test_files/number_format_entities.xlsb
108+
./test_files/number_format_entities.xlsx
109+
./test_files/number_format_entities.xml
110+
./test_files/NumberFormatCondition.xls
111+
./test_files/NumberFormatCondition.xlsb
112+
./test_files/NumberFormatCondition.xlsm
113+
./test_files/NumberFormatCondition.xml
95114
./test_files/outline.xls
96115
./test_files/outline.biff5
97116
./test_files/outline.xlsx
@@ -102,17 +121,44 @@
102121
./test_files/page_margins_2016.xml
103122
./test_files/page_margins_2016.xlsx
104123
./test_files/page_margins_2016.xlsb
124+
./test_files/pivot_table_named_range.xls.xml
125+
./test_files/pivot_table_named_range.xlsb
126+
./test_files/pivot_table_named_range.xlsx
127+
./test_files/pivot_table_test.xls
128+
./test_files/pivot_table_test.xlsb
129+
./test_files/pivot_table_test.xlsm
130+
./test_files/rich_text_stress.xlsb
131+
./test_files/rich_text_stress.xlsb
132+
./test_files/rich_text_stress.xlsx
133+
./test_files/rich_text_stress.xls.xml
105134
./test_files/row_height.xls
106135
./test_files/row_height.biff5
107136
./test_files/row_height.xml
108137
./test_files/row_height.xlsx
109138
./test_files/row_height.xlsb
110139
./test_files/row_height.slk
140+
./test_files/RkNumber.xls
141+
./test_files/RkNumber.xlsb
142+
./test_files/RkNumber.xlsx
143+
./test_files/RkNumber.xls.xml
144+
./test_files/smart_tags_2007.xls
145+
./test_files/smart_tags_2007.xlsb
146+
./test_files/smart_tags_2007.xlsx
147+
./test_files/smart_tags_2007.xml
111148
./test_files/sheet_visibility.xls
112149
./test_files/sheet_visibility.xls
113150
./test_files/sheet_visibility.xml
114151
./test_files/sheet_visibility.xlsx
115152
./test_files/sheet_visibility.xlsb
153+
./test_files/sushi.xls
154+
./test_files/sushi.xlsb
155+
./test_files/sushi.xlsx
156+
./test_files/sushi.xml
157+
./test_files/sushi.ods
158+
./test_files/text_and_numbers.xls
159+
./test_files/text_and_numbers.xlsb
160+
./test_files/text_and_numbers.xlsx
161+
./test_files/text_and_numbers.xml
116162
./test_files/apachepoi_SimpleWithComments.xls
117163
./test_files/2011/apachepoi_SimpleWithComments.xls.xml
118164
./test_files/apachepoi_SimpleWithComments.xlsx

tests/make_fixtures.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
#!/usr/bin/env node
22
var fs = require('fs');
3-
var paths = fs.readFileSync('tests/fixtures.lst','utf-8').split("\n");
3+
var paths = fs.readFileSync('tests/fixtures.lst','utf-8').replace(/\r/g,"").split("\n");
44
var aux = [
55
'multiformat.lst',
66
'./misc/ssf.json',
77
'./test_files/biff5/number_format_greek.xls'
88
]
99
var fullpaths = paths.concat(aux);
10-
fs.writeFileSync('tests/fixtures.js', fullpaths.map(function(x) { return [x, fs.existsSync(x) ? fs.readFileSync(x).toString('base64') : ""]}).map(function(w) { return "fs['" + w[0] + "'] = '" + w[1] + "';\n"; }).join(""));
10+
fs.writeFileSync('tests/fixtures.js',
11+
fullpaths.map(function(x) {
12+
return [x, fs.existsSync(x) ? fs.readFileSync(x).toString('base64') : ""]
13+
}).map(function(w) {
14+
return "fs['" + w[0] + "'] = '" + w[1] + "';\n";
15+
}).join("")
16+
);

0 commit comments

Comments
 (0)