Skip to content

Commit f1e5510

Browse files
committed
Update tests
1 parent 12b5931 commit f1e5510

File tree

22 files changed

+428
-382
lines changed

22 files changed

+428
-382
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,4 @@ docs/.docusaurus
193193
packages/perspective-esbuild-plugin/lib
194194
docs/static/blocks
195195
.vscode/c_cpp_properties.json
196+
py_modules

packages/perspective-jupyterlab/test/jupyter/widget.spec.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,13 @@ utils.with_jupyterlab(process.env.__JUPYTERLAB_PORT__, () => {
244244
plugin_config: {
245245
columns: {},
246246
editable: false,
247-
scroll_lock: true,
247+
scroll_lock: false,
248248
},
249249
settings: true,
250250
sort: [],
251251
split_by: [],
252-
theme: "Material Light",
252+
theme: "Pro Light",
253+
title: null,
253254
});
254255

255256
await add_and_execute_cell(
@@ -261,7 +262,7 @@ w.filter = ["i8", "<", 50]
261262
w.group_by = ["date"]
262263
w.split_by = ["bool"]
263264
w.sort = ["date", "asc"]
264-
w.theme = "Material Dark"`
265+
w.theme = "Pro Dark"`
265266
);
266267

267268
// grab the config again
@@ -281,7 +282,8 @@ w.theme = "Material Dark"`
281282
settings: true,
282283
sort: [["date", "asc"]],
283284
split_by: ["bool"],
284-
theme: "Material Dark",
285+
theme: "Pro Dark",
286+
title: null,
285287
});
286288
}
287289
);
@@ -327,12 +329,13 @@ w.theme = "Material Dark"`
327329
plugin_config: {
328330
columns: {},
329331
editable: false,
330-
scroll_lock: true,
332+
scroll_lock: false,
331333
},
332334
settings: true,
333335
sort: [],
334336
split_by: [],
335-
theme: "Material Light",
337+
theme: "Pro Light",
338+
title: null,
336339
});
337340

338341
await viewer.evaluate(async (viewer) => {
@@ -344,7 +347,8 @@ w.theme = "Material Dark"`
344347
settings: false,
345348
sort: [["date", "asc"]],
346349
split_by: ["bool"],
347-
theme: "Material Dark",
350+
theme: "Pro Dark",
351+
title: null,
348352
});
349353

350354
return "";
@@ -362,7 +366,7 @@ assert w.split_by == ["bool"]
362366
assert w.plugin_config == {}
363367
assert w.settings == False
364368
assert w.sort == [["date", "asc"]]
365-
assert w.theme == "Material Dark"
369+
assert w.theme == "Pro Dark"
366370
"Passed"`
367371
);
368372
expect(error_cells_dont_exist).toBe(true);
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"__GIT_COMMIT__": "82f3e58191f6e05c750e4f3f10977d0b3a14ea4e",
2+
"__GIT_COMMIT__": "c522eb3cfe8be4d89e8be29b499e16083019883e",
33
"resize_Config_should_show_by_default": "f492628efc5ce5c9e1bab910cf2557c9",
4-
"resize_Resize_the_container_causes_the_widget_to_resize": "96a80143ba27bf42cc22d69c4ff1692a",
5-
"resize_group_by_traitlet_works": "f86409c2ccbdf3613a4aa20fc24cc543",
4+
"resize_Resize_the_container_causes_the_widget_to_resize": "de16c46bb1ba72530b4b3b9762be17e9",
5+
"resize_group_by_traitlet_works": "a6856881958b42b367f07e3bd8033f90",
66
"resize_Config_should_be_hidden_by_default": "c5810dc38ad47c89ed27196fa852ed88"
77
}

packages/perspective-viewer-d3fc/test/js/integration/barWidth.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ utils.with_server({}, () => {
5252
settings: false,
5353
expressions: [],
5454
theme: "Pro Light",
55+
title: null,
5556
});
5657

5758
return await utils.get_contents.bind(

packages/perspective-viewer-d3fc/test/js/integration/xy-line.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ utils.with_server({}, () => {
5555
plugin_config: {},
5656
settings: false,
5757
expressions: [],
58-
theme: "Material Light",
58+
theme: "Pro Light",
59+
title: null,
5960
});
6061

6162
return await utils.get_contents.bind(

packages/perspective-viewer-d3fc/test/results/results.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"events_perspective-config-update_event_is_fired_when_series_axis_is_changed": "a75579dc157424593d33efff7651db28",
33
"events_perspective-config-update_event_is_fired_when_legend_position_is_changed": "01c7817ea82ab76f2a4d9ba47f5dce7a",
4-
"__GIT_COMMIT__": "bb8f0663769ade1ab2499c7fe449ed6b8348a47d",
4+
"__GIT_COMMIT__": "6941daaa3596b6d0d9e026c05bb9679525f4039e",
55
"xyline_shows_a_grid_without_any_settings_applied": "2aba74b5e5db14953a041e7ebb544a8a",
66
"xyline_displays_visible_columns_": "c8bf1c32455f8f8a5210e6ba368ba3db",
77
"xyline_pivot_by_a_row": "6bb755705694cc8d7766c988fc98b8b4",
@@ -28,19 +28,19 @@
2828
"line_filters_filters_by_a_numeric_column": "846bc7cfd872af401ab607157d0700ba",
2929
"line_filters_filters_by_an_alpha_column": "435be9452692645da638476de27630ed",
3030
"line_filters_filters_with__in__comparator": "91aa5dbce121d81e298138d1a6b89537",
31-
"treemap_shows_a_grid_without_any_settings_applied": "f420990315751370e1237e86b4043332",
32-
"treemap_displays_visible_columns_": "f420990315751370e1237e86b4043332",
31+
"treemap_shows_a_grid_without_any_settings_applied": "63657741992da912059ea60adf5c65e6",
32+
"treemap_displays_visible_columns_": "b8f252a4c796f376cf179595b1c956e6",
3333
"treemap_pivot_by_a_row": "54c143862c314e661016a0ab715382a9",
3434
"treemap_pivot_by_two_rows": "1aa82c9da548a632dce40a81b2ce84dd",
35-
"treemap_pivot_by_a_column": "f420990315751370e1237e86b4043332",
35+
"treemap_pivot_by_a_column": "a6a32486ea60d80461848b0d87c820f8",
3636
"treemap_pivot_by_a_row_and_a_column": "9b79c6ff339938fd8ac1e353b9599ce5",
3737
"treemap_pivot_by_two_rows_and_two_columns": "f4f058946246bab3216b35f200fc5d1b",
38-
"treemap_sort_by_a_hidden_column": "f420990315751370e1237e86b4043332",
39-
"treemap_sort_by_a_numeric_column": "f420990315751370e1237e86b4043332",
40-
"treemap_sort_by_an_alpha_column": "f420990315751370e1237e86b4043332",
41-
"treemap_filters_filters_by_a_numeric_column": "f420990315751370e1237e86b4043332",
42-
"treemap_filters_filters_by_an_alpha_column": "f420990315751370e1237e86b4043332",
43-
"treemap_filters_filters_with__in__comparator": "f420990315751370e1237e86b4043332",
38+
"treemap_sort_by_a_hidden_column": "d52f971fc3b9d6d7e86998ec4e336830",
39+
"treemap_sort_by_a_numeric_column": "d96768a068a7be1a2b57e23d9f3074e2",
40+
"treemap_sort_by_an_alpha_column": "2df311645b2db99abfaca950798c9391",
41+
"treemap_filters_filters_by_a_numeric_column": "1bb6ff7361c4930db6993d2e2d04b47d",
42+
"treemap_filters_filters_by_an_alpha_column": "ecbb4e329860e7d7a4a6ae79fd5d0e12",
43+
"treemap_filters_filters_with__in__comparator": "ecfdc83e6e9a160e72fc83773b54851d",
4444
"heatmap_shows_a_grid_without_any_settings_applied": "0ed0f1af1cca3c8a81fdc6e3d99e2056",
4545
"heatmap_displays_visible_columns_": "2a28a3024117f83c8ea753e77b156c9f",
4646
"heatmap_pivot_by_a_row": "eb79410b4d1689223530c88be07e5e2b",
@@ -82,19 +82,19 @@
8282
"yscatter_filters_filters_by_a_numeric_column": "bcb141ab9fcca81d60aa55320cd55a38",
8383
"yscatter_filters_filters_by_an_alpha_column": "17fb028b757aa18e67aece5c48609cd7",
8484
"yscatter_filters_filters_with__in__comparator": "c673b728fa3992ff76e0808e413bf55c",
85-
"sunburst_shows_a_grid_without_any_settings_applied": "f420990315751370e1237e86b4043332",
86-
"sunburst_displays_visible_columns_": "f420990315751370e1237e86b4043332",
85+
"sunburst_shows_a_grid_without_any_settings_applied": "233832500418cd2c6ee9fbe6e61228a8",
86+
"sunburst_displays_visible_columns_": "1ccd4e9e5f1814d4bb1134506cc64ab7",
8787
"sunburst_pivot_by_a_row": "970da574f3f2f8daa88f45c6b6df5b4b",
8888
"sunburst_pivot_by_two_rows": "d50b92788a198165e3fe3060391b1e73",
89-
"sunburst_pivot_by_a_column": "f420990315751370e1237e86b4043332",
89+
"sunburst_pivot_by_a_column": "fc69bf198ab39a1fa7a22c850b6e778f",
9090
"sunburst_pivot_by_a_row_and_a_column": "f94acbaa871416df05e11592d589796c",
91-
"sunburst_pivot_by_two_rows_and_two_columns": "87ae7c591e999f51806e25d314735c86",
92-
"sunburst_sort_by_a_hidden_column": "f420990315751370e1237e86b4043332",
93-
"sunburst_sort_by_a_numeric_column": "f420990315751370e1237e86b4043332",
94-
"sunburst_sort_by_an_alpha_column": "f420990315751370e1237e86b4043332",
95-
"sunburst_filters_filters_by_a_numeric_column": "f420990315751370e1237e86b4043332",
96-
"sunburst_filters_filters_by_an_alpha_column": "f420990315751370e1237e86b4043332",
97-
"sunburst_filters_filters_with__in__comparator": "f420990315751370e1237e86b4043332",
91+
"sunburst_pivot_by_two_rows_and_two_columns": "c6085f4f7729a9e0d3b6a6eb6e0e7a0d",
92+
"sunburst_sort_by_a_hidden_column": "f20130534bd49d7b6c00efd0cf7166db",
93+
"sunburst_sort_by_a_numeric_column": "b59aa81f013af39e57c12111ae4568be",
94+
"sunburst_sort_by_an_alpha_column": "7d580735668589fbddbc7f9be734cd63",
95+
"sunburst_filters_filters_by_a_numeric_column": "0494ab3b3da4e472ee7a127b105466f3",
96+
"sunburst_filters_filters_by_an_alpha_column": "0f0b3be39aabc4ee7192e460503c17fd",
97+
"sunburst_filters_filters_with__in__comparator": "fb5a14b48b5bb5cc6a8251325977e306",
9898
"bar_rendering_bugs_correctly_render_when_a_bar_chart_has_non_equidistant_times_on_a_datetime_axis": "ab18f1d824e3c6e1d7190c92055e7e6f",
9999
"area_shows_a_grid_without_any_settings_applied": "7288179f8d62d59e9f06af5fb34d3a11",
100100
"area_displays_visible_columns_": "76d150d8c78be67cc489f3d1b2592fd4",

packages/perspective-viewer-datagrid/test/results/results.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
"superstore_displays_visible_columns_": "09dd14f0e60da0e8749b7dd514e929f0",
1515
"superstore_resets_viewable_area_when_the_logical_size_expands_": "e9dd1d275f46f6a0857e0168835d0b38",
1616
"superstore_resets_viewable_area_when_the_physical_size_expands_": "e469597235cc032619bc095a76f9ad6f",
17-
"__GIT_COMMIT__": "82f3e58191f6e05c750e4f3f10977d0b3a14ea4e",
18-
"superstore_shows_a_grid_without_any_settings_applied": "192edc6b035af6432c5bd82d295987f1",
19-
"superstore_pivot_by_a_row": "709a4a6b40153d9bf013f90398ee568d",
20-
"superstore_pivot_by_two_rows": "23db46ccf9d8327ae992fe3b5f468b3b",
21-
"superstore_pivot_by_a_column": "fdddd9d822845805412c5dfc1d51e092",
22-
"superstore_pivot_by_a_row_and_a_column": "93c241d67d1546e4284e78c1d34bb685",
23-
"superstore_pivot_by_two_rows_and_two_columns": "5ecb4fcd02d839ba6b79c912eeabd1af",
24-
"superstore_sort_by_a_hidden_column": "490c7fa58ef41fc0a43894f4ebd7dbe8",
25-
"superstore_sort_by_a_numeric_column": "c8adc8030c989840a3febc2852cf6dda",
26-
"superstore_sort_by_an_alpha_column": "d04e50eb057f3d682370b1803ff47a23",
17+
"__GIT_COMMIT__": "852ea8db97def4f349ee95958ebc99aa25e3b17e",
18+
"superstore_shows_a_grid_without_any_settings_applied": "85d501c0fcd1c7535784b87223ab91be",
19+
"superstore_pivot_by_a_row": "d984cb66a1dda226fa6054afb18f8c51",
20+
"superstore_pivot_by_two_rows": "cb7dcd5720304954b2ae5fed1a0bbe68",
21+
"superstore_pivot_by_a_column": "fad522ea89d419e6c0a3941f42eacb79",
22+
"superstore_pivot_by_a_row_and_a_column": "2bd4081bc95e1d3092a911397a17e4c6",
23+
"superstore_pivot_by_two_rows_and_two_columns": "b132fae1617dadb28fc57f464e7aae0e",
24+
"superstore_sort_by_a_hidden_column": "ea26b15301b9893680476b9caf72d2f5",
25+
"superstore_sort_by_a_numeric_column": "e0a9c978306629659b76ad9d51b3548e",
26+
"superstore_sort_by_an_alpha_column": "238848930f3cd456204e23cfc82c18a9",
2727
"superstore_filters_filters_by_a_numeric_column": "6c6ba00b6edf9ee11f82848b7786fd91",
2828
"superstore_filters_filters_by_an_alpha_column": "4b9a40c2ffad050ff4cf059e22cb2b68",
29-
"superstore_filters_filters_with__in__comparator": "5882e2d2694519ba9880d0b2d5b19c44",
30-
"superstore_perspective-config-update_event_is_fired_when_column_style_is_changed": "3d03b2787f9b903050942052168f755a",
31-
"superstore_Column_style_menu_opens_for_numeric_columns": "bb90da1cce340c8c311850f0b81f0d6a",
32-
"superstore_Column_style_menu_opens_for_string_columns": "1c634f208fd1a55ed54a48ccb2c85c14"
29+
"superstore_filters_filters_with__in__comparator": "1e46f8d9b53bcc44a682130e245d2380",
30+
"superstore_perspective-config-update_event_is_fired_when_column_style_is_changed": "05537d516ca44f6646f6b6c2d842e3cf",
31+
"superstore_Column_style_menu_opens_for_numeric_columns": "e3495e6d00ca07d402b38507a2a1e0bb",
32+
"superstore_Column_style_menu_opens_for_string_columns": "b59930dfb9369da590452b2e202b1019"
3333
}

packages/perspective-workspace/test/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script type="module" src="perspective-viewer-datagrid.js"></script>
1616
<script type="module" src="perspective-viewer-d3fc.js"></script>
1717

18-
<link rel="stylesheet" href="material.css" />
18+
<link rel="stylesheet" href="pro.css" />
1919
<link rel="stylesheet" href="index.css" />
2020
</head>
2121

packages/perspective-workspace/test/html/workspace-all.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<script type="module" src="perspective-viewer-datagrid.js"></script>
1616
<script type="module" src="perspective-viewer-d3fc.js"></script>
1717

18-
<link rel="stylesheet" href="material.css" />
18+
<link rel="stylesheet" href="pro.css" />
1919
<link rel="stylesheet" href="index.css" />
2020
</head>
2121

packages/perspective-workspace/test/js/integration/migrate_workspace.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const TESTS = [
6868
aggregates: {},
6969
master: false,
7070
linked: false,
71+
title: null,
7172
},
7273
},
7374
mode: "globalFilters",
@@ -94,7 +95,7 @@ function tests(extract) {
9495
return await workspace.save();
9596
}, converted);
9697

97-
expect(config.viewers.One.theme).toEqual("Material Light");
98+
expect(config.viewers.One.theme).toEqual("Pro Light");
9899
delete config.viewers.One["theme"];
99100

100101
expect(config.viewers.One.settings).toEqual(false);

0 commit comments

Comments
 (0)