Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waterdataui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
Internet of Water
waterdataui
Commits
a90c4f8b
Commit
a90c4f8b
authored
7 years ago
by
Yan, Andrew N.
Browse files
Options
Downloads
Patches
Plain Diff
fix regression where timeseries screen reader tables weren't showing up
parent
d76a82f6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/src/scripts/components/hydrograph/index.js
+4
-4
4 additions, 4 deletions
assets/src/scripts/components/hydrograph/index.js
assets/src/scripts/components/hydrograph/index.spec.js
+8
-2
8 additions, 2 deletions
assets/src/scripts/components/hydrograph/index.spec.js
with
12 additions
and
6 deletions
assets/src/scripts/components/hydrograph/index.js
+
4
−
4
View file @
a90c4f8b
...
...
@@ -320,12 +320,12 @@ const timeSeriesGraph = function (elem) {
elem
.
append
(
'
div
'
)
.
call
(
link
(
plotSROnlyTable
,
createStructuredSelector
({
tsKey
:
()
=>
'
c
ompare
'
,
tsKey
:
()
=>
'
c
urrent
'
,
variable
:
currentVariableSelector
,
methods
:
methodsSelector
,
visible
:
isVisibleSelector
(
'
c
ompare
'
),
dataByTsID
:
pointsTableDataSelector
(
'
c
ompare
'
),
timeSeries
:
currentVariableTimeSeriesSelector
(
'
c
ompare
'
)
visible
:
isVisibleSelector
(
'
c
urrent
'
),
dataByTsID
:
pointsTableDataSelector
(
'
c
urrent
'
),
timeSeries
:
currentVariableTimeSeriesSelector
(
'
c
urrent
'
)
})));
elem
.
append
(
'
div
'
)
.
call
(
link
(
plotSROnlyTable
,
createStructuredSelector
({
...
...
This diff is collapsed.
Click to expand it.
assets/src/scripts/components/hydrograph/index.spec.js
+
8
−
2
View file @
a90c4f8b
...
...
@@ -146,12 +146,18 @@ describe('Hydrograph charting module', () => {
});
it
(
'
svg should be focusable
'
,
function
()
{
expect
(
svg
.
attr
(
'
tabindex
'
)).
toBe
(
'
0
'
);
expect
(
svg
.
attr
(
'
tabindex
'
)).
toBe
(
'
0
'
);
});
it
(
'
should have an accessibility table for each time series
'
,
function
()
{
expect
(
selectAll
(
'
table.usa-sr-only
'
).
size
()).
toBe
(
3
);
expect
(
selectAll
(
'
table.usa-sr-only
'
).
size
()).
toBe
(
3
);
});
it
(
'
should have a div for each type of time series
'
,
function
()
{
expect
(
selectAll
(
'
div#sr-only-median
'
).
size
()).
toBe
(
1
);
expect
(
selectAll
(
'
div#sr-only-compare
'
).
size
()).
toBe
(
1
);
expect
(
selectAll
(
'
div#sr-only-current
'
).
size
()).
toBe
(
1
);
})
});
describe
(
'
SVG contains the expected elements
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment