Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-11 03:09:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-11 03:09:17 +0300
commitaa0e3dcce3143ef4c3d8a481a216bf28ae31a3e3 (patch)
tree8a39ef76ddc367e7747e76621ee3ee072b0ea066 /spec/frontend/code_navigation
parent6ae4485274362bf656fae249a1409266a211d255 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/code_navigation')
-rw-r--r--spec/frontend/code_navigation/store/actions_spec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/frontend/code_navigation/store/actions_spec.js b/spec/frontend/code_navigation/store/actions_spec.js
index 8eee61d1342..c47a9e697b6 100644
--- a/spec/frontend/code_navigation/store/actions_spec.js
+++ b/spec/frontend/code_navigation/store/actions_spec.js
@@ -195,8 +195,8 @@ describe('Code navigation actions', () => {
it('commits SET_CURRENT_DEFINITION with LSIF data', () => {
target.classList.add('js-code-navigation');
- target.dataset.lineIndex = '0';
- target.dataset.charIndex = '0';
+ target.setAttribute('data-line-index', '0');
+ target.setAttribute('data-char-index', '0');
return testAction(
actions.showDefinition,
@@ -218,8 +218,8 @@ describe('Code navigation actions', () => {
it('adds hll class to target element', () => {
target.classList.add('js-code-navigation');
- target.dataset.lineIndex = '0';
- target.dataset.charIndex = '0';
+ target.setAttribute('data-line-index', '0');
+ target.setAttribute('data-char-index', '0');
return testAction(
actions.showDefinition,
@@ -243,8 +243,8 @@ describe('Code navigation actions', () => {
it('caches current target element', () => {
target.classList.add('js-code-navigation');
- target.dataset.lineIndex = '0';
- target.dataset.charIndex = '0';
+ target.setAttribute('data-line-index', '0');
+ target.setAttribute('data-char-index', '0');
return testAction(
actions.showDefinition,