Skip to content

Commit 17f4324

Browse files
committed
fix choropleth jasmine test
1 parent fd53631 commit 17f4324

File tree

1 file changed

+7
-31
lines changed

1 file changed

+7
-31
lines changed

test/jasmine/tests/choroplethmapbox_test.js

Lines changed: 7 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -713,15 +713,15 @@ describe('Test choroplethmapbox interactions:', function() {
713713
{}
714714
)
715715
.then(function() {
716-
_assert('base', { layerCnt: 24 });
716+
_assert('base', { layerCnt: 97 });
717717
})
718718
.then(function() { return Plotly.deleteTraces(gd, [0]); })
719719
.then(function() {
720-
_assert('w/o trace0', { layerCnt: 22 });
720+
_assert('w/o trace0', { layerCnt: 95 });
721721
})
722722
.then(function() { return Plotly.addTraces(gd, [trace0]); })
723723
.then(function() {
724-
_assert('after adding trace0', { layerCnt: 24 });
724+
_assert('after adding trace0', { layerCnt: 97 });
725725
})
726726
.then(done, done.fail);
727727
});
@@ -743,49 +743,25 @@ describe('Test choroplethmapbox interactions:', function() {
743743
}], {}, {})
744744
.then(function() {
745745
expect(getLayerIds()).withContext('default *below*').toEqual([
746-
'background', 'landuse_overlay_national_park', 'landuse_park',
747-
'waterway', 'water',
748-
'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line',
749-
'building', 'tunnel_minor', 'tunnel_major', 'road_minor', 'road_major',
750-
'bridge_minor case', 'bridge_major case', 'bridge_minor', 'bridge_major',
751-
'admin_country', 'poi_label', 'road_major_label',
752-
'place_label_other', 'place_label_city', 'country_label'
746+
'background', 'landcover', 'park_national_park', 'park_nature_reserve', 'landuse_residential', 'landuse', 'waterway', 'boundary_county', 'boundary_state', 'water', 'water_shadow', 'aeroway-runway', 'aeroway-taxiway', 'waterway_label', 'tunnel_service_case', 'tunnel_minor_case', 'tunnel_sec_case', 'tunnel_pri_case', 'tunnel_trunk_case', 'tunnel_mot_case', 'tunnel_path', 'tunnel_service_fill', 'tunnel_minor_fill', 'tunnel_sec_fill', 'tunnel_pri_fill', 'tunnel_trunk_fill', 'tunnel_mot_fill', 'tunnel_rail', 'tunnel_rail_dash', 'road_service_case', 'road_minor_case', 'road_pri_case_ramp', 'road_trunk_case_ramp', 'road_mot_case_ramp', 'road_sec_case_noramp', 'road_pri_case_noramp', 'road_trunk_case_noramp', 'road_mot_case_noramp', 'road_path', 'road_service_fill', 'road_minor_fill', 'road_pri_fill_ramp', 'road_trunk_fill_ramp', 'road_mot_fill_ramp', 'road_sec_fill_noramp', 'road_pri_fill_noramp', 'road_trunk_fill_noramp', 'road_mot_fill_noramp', 'rail', 'rail_dash', 'bridge_service_case', 'bridge_minor_case', 'bridge_sec_case', 'bridge_pri_case', 'bridge_trunk_case', 'bridge_mot_case', 'bridge_path', 'bridge_service_fill', 'bridge_minor_fill', 'bridge_sec_fill', 'bridge_pri_fill', 'bridge_trunk_fill', 'bridge_mot_fill', 'building', 'building-top', 'boundary_country_outline', 'boundary_country_inner', 'watername_ocean', 'watername_sea', 'watername_lake', 'watername_lake_line', 'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line', 'place_hamlet', 'place_suburbs', 'place_villages', 'place_town', 'place_country_2', 'place_country_1', 'place_state', 'place_continent', 'place_city_r6', 'place_city_r5', 'place_city_dot_r7', 'place_city_dot_r4', 'place_city_dot_r2', 'place_city_dot_z7', 'place_capital_dot_z7', 'poi_stadium', 'poi_park', 'roadname_minor', 'roadname_sec', 'roadname_pri', 'roadname_major', 'housenumber'
753747
]);
754748
})
755749
.then(function() { return Plotly.restyle(gd, 'below', ''); })
756750
.then(function() {
757751
expect(getLayerIds()).withContext('*below* set to \'\'').toEqual([
758-
'background', 'landuse_overlay_national_park', 'landuse_park',
759-
'waterway', 'water',
760-
'building', 'tunnel_minor', 'tunnel_major', 'road_minor', 'road_major',
761-
'bridge_minor case', 'bridge_major case', 'bridge_minor', 'bridge_major',
762-
'admin_country', 'poi_label', 'road_major_label',
763-
'place_label_other', 'place_label_city', 'country_label',
764-
'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line'
752+
'background', 'landcover', 'park_national_park', 'park_nature_reserve', 'landuse_residential', 'landuse', 'waterway', 'boundary_county', 'boundary_state', 'water', 'water_shadow', 'aeroway-runway', 'aeroway-taxiway', 'waterway_label', 'tunnel_service_case', 'tunnel_minor_case', 'tunnel_sec_case', 'tunnel_pri_case', 'tunnel_trunk_case', 'tunnel_mot_case', 'tunnel_path', 'tunnel_service_fill', 'tunnel_minor_fill', 'tunnel_sec_fill', 'tunnel_pri_fill', 'tunnel_trunk_fill', 'tunnel_mot_fill', 'tunnel_rail', 'tunnel_rail_dash', 'road_service_case', 'road_minor_case', 'road_pri_case_ramp', 'road_trunk_case_ramp', 'road_mot_case_ramp', 'road_sec_case_noramp', 'road_pri_case_noramp', 'road_trunk_case_noramp', 'road_mot_case_noramp', 'road_path', 'road_service_fill', 'road_minor_fill', 'road_pri_fill_ramp', 'road_trunk_fill_ramp', 'road_mot_fill_ramp', 'road_sec_fill_noramp', 'road_pri_fill_noramp', 'road_trunk_fill_noramp', 'road_mot_fill_noramp', 'rail', 'rail_dash', 'bridge_service_case', 'bridge_minor_case', 'bridge_sec_case', 'bridge_pri_case', 'bridge_trunk_case', 'bridge_mot_case', 'bridge_path', 'bridge_service_fill', 'bridge_minor_fill', 'bridge_sec_fill', 'bridge_pri_fill', 'bridge_trunk_fill', 'bridge_mot_fill', 'building', 'building-top', 'boundary_country_outline', 'boundary_country_inner', 'watername_ocean', 'watername_sea', 'watername_lake', 'watername_lake_line', 'place_hamlet', 'place_suburbs', 'place_villages', 'place_town', 'place_country_2', 'place_country_1', 'place_state', 'place_continent', 'place_city_r6', 'place_city_r5', 'place_city_dot_r7', 'place_city_dot_r4', 'place_city_dot_r2', 'place_city_dot_z7', 'place_capital_dot_z7', 'poi_stadium', 'poi_park', 'roadname_minor', 'roadname_sec', 'roadname_pri', 'roadname_major', 'housenumber', 'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line'
765753
]);
766754
})
767755
.then(function() { return Plotly.restyle(gd, 'below', 'place_label_other'); })
768756
.then(function() {
769757
expect(getLayerIds()).withContext('*below* set to same base layer').toEqual([
770-
'background', 'landuse_overlay_national_park', 'landuse_park',
771-
'waterway', 'water',
772-
'building', 'tunnel_minor', 'tunnel_major', 'road_minor', 'road_major',
773-
'bridge_minor case', 'bridge_major case', 'bridge_minor', 'bridge_major',
774-
'admin_country', 'poi_label', 'road_major_label',
775-
'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line',
776-
'place_label_other', 'place_label_city', 'country_label',
758+
'background', 'landcover', 'park_national_park', 'park_nature_reserve', 'landuse_residential', 'landuse', 'waterway', 'boundary_county', 'boundary_state', 'water', 'water_shadow', 'aeroway-runway', 'aeroway-taxiway', 'waterway_label', 'tunnel_service_case', 'tunnel_minor_case', 'tunnel_sec_case', 'tunnel_pri_case', 'tunnel_trunk_case', 'tunnel_mot_case', 'tunnel_path', 'tunnel_service_fill', 'tunnel_minor_fill', 'tunnel_sec_fill', 'tunnel_pri_fill', 'tunnel_trunk_fill', 'tunnel_mot_fill', 'tunnel_rail', 'tunnel_rail_dash', 'road_service_case', 'road_minor_case', 'road_pri_case_ramp', 'road_trunk_case_ramp', 'road_mot_case_ramp', 'road_sec_case_noramp', 'road_pri_case_noramp', 'road_trunk_case_noramp', 'road_mot_case_noramp', 'road_path', 'road_service_fill', 'road_minor_fill', 'road_pri_fill_ramp', 'road_trunk_fill_ramp', 'road_mot_fill_ramp', 'road_sec_fill_noramp', 'road_pri_fill_noramp', 'road_trunk_fill_noramp', 'road_mot_fill_noramp', 'rail', 'rail_dash', 'bridge_service_case', 'bridge_minor_case', 'bridge_sec_case', 'bridge_pri_case', 'bridge_trunk_case', 'bridge_mot_case', 'bridge_path', 'bridge_service_fill', 'bridge_minor_fill', 'bridge_sec_fill', 'bridge_pri_fill', 'bridge_trunk_fill', 'bridge_mot_fill', 'building', 'building-top', 'boundary_country_outline', 'boundary_country_inner', 'watername_ocean', 'watername_sea', 'watername_lake', 'watername_lake_line', 'place_hamlet', 'place_suburbs', 'place_villages', 'place_town', 'place_country_2', 'place_country_1', 'place_state', 'place_continent', 'place_city_r6', 'place_city_r5', 'place_city_dot_r7', 'place_city_dot_r4', 'place_city_dot_r2', 'place_city_dot_z7', 'place_capital_dot_z7', 'poi_stadium', 'poi_park', 'roadname_minor', 'roadname_sec', 'roadname_pri', 'roadname_major', 'housenumber', 'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line'
777759
]);
778760
})
779761
.then(function() { return Plotly.restyle(gd, 'below', null); })
780762
.then(function() {
781763
expect(getLayerIds()).withContext('back to default *below*').toEqual([
782-
'background', 'landuse_overlay_national_park', 'landuse_park',
783-
'waterway', 'water',
784-
'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line',
785-
'building', 'tunnel_minor', 'tunnel_major', 'road_minor', 'road_major',
786-
'bridge_minor case', 'bridge_major case', 'bridge_minor', 'bridge_major',
787-
'admin_country', 'poi_label', 'road_major_label',
788-
'place_label_other', 'place_label_city', 'country_label'
764+
'background', 'landcover', 'park_national_park', 'park_nature_reserve', 'landuse_residential', 'landuse', 'waterway', 'boundary_county', 'boundary_state', 'water', 'water_shadow', 'aeroway-runway', 'aeroway-taxiway', 'waterway_label', 'tunnel_service_case', 'tunnel_minor_case', 'tunnel_sec_case', 'tunnel_pri_case', 'tunnel_trunk_case', 'tunnel_mot_case', 'tunnel_path', 'tunnel_service_fill', 'tunnel_minor_fill', 'tunnel_sec_fill', 'tunnel_pri_fill', 'tunnel_trunk_fill', 'tunnel_mot_fill', 'tunnel_rail', 'tunnel_rail_dash', 'road_service_case', 'road_minor_case', 'road_pri_case_ramp', 'road_trunk_case_ramp', 'road_mot_case_ramp', 'road_sec_case_noramp', 'road_pri_case_noramp', 'road_trunk_case_noramp', 'road_mot_case_noramp', 'road_path', 'road_service_fill', 'road_minor_fill', 'road_pri_fill_ramp', 'road_trunk_fill_ramp', 'road_mot_fill_ramp', 'road_sec_fill_noramp', 'road_pri_fill_noramp', 'road_trunk_fill_noramp', 'road_mot_fill_noramp', 'rail', 'rail_dash', 'bridge_service_case', 'bridge_minor_case', 'bridge_sec_case', 'bridge_pri_case', 'bridge_trunk_case', 'bridge_mot_case', 'bridge_path', 'bridge_service_fill', 'bridge_minor_fill', 'bridge_sec_fill', 'bridge_pri_fill', 'bridge_trunk_fill', 'bridge_mot_fill', 'building', 'building-top', 'boundary_country_outline', 'boundary_country_inner', 'watername_ocean', 'watername_sea', 'watername_lake', 'watername_lake_line', 'plotly-trace-layer-a-fill', 'plotly-trace-layer-a-line', 'place_hamlet', 'place_suburbs', 'place_villages', 'place_town', 'place_country_2', 'place_country_1', 'place_state', 'place_continent', 'place_city_r6', 'place_city_r5', 'place_city_dot_r7', 'place_city_dot_r4', 'place_city_dot_r2', 'place_city_dot_z7', 'place_capital_dot_z7', 'poi_stadium', 'poi_park', 'roadname_minor', 'roadname_sec', 'roadname_pri', 'roadname_major', 'housenumber'
789765
]);
790766
})
791767
.then(done, done.fail);

0 commit comments

Comments
 (0)