Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
37565656
Commit
37565656
authored
Apr 10, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve FE conflicts
parent
824c1875
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
0 additions
and
102 deletions
+0
-102
app/assets/javascripts/droplab/drop_down.js
app/assets/javascripts/droplab/drop_down.js
+0
-3
app/assets/javascripts/droplab/plugins/input_setter.js
app/assets/javascripts/droplab/plugins/input_setter.js
+0
-5
app/assets/stylesheets/framework/filters.scss
app/assets/stylesheets/framework/filters.scss
+0
-7
spec/features/issues/filtered_search/dropdown_hint_spec.rb
spec/features/issues/filtered_search/dropdown_hint_spec.rb
+0
-4
spec/features/issues/filtered_search/search_bar_spec.rb
spec/features/issues/filtered_search/search_bar_spec.rb
+0
-4
spec/javascripts/build_spec.js
spec/javascripts/build_spec.js
+0
-32
spec/javascripts/droplab/drop_down_spec.js
spec/javascripts/droplab/drop_down_spec.js
+0
-7
spec/javascripts/droplab/plugins/input_setter_spec.js
spec/javascripts/droplab/plugins/input_setter_spec.js
+0
-40
No files found.
app/assets/javascripts/droplab/drop_down.js
View file @
37565656
...
...
@@ -35,11 +35,8 @@ Object.assign(DropDown.prototype, {
},
clickEvent
:
function
(
e
)
{
<<<<<<<
HEAD
=======
if
(
e
.
target
.
tagName
===
'
UL
'
)
return
;
>>>>>>>
origin
/
master
var
selected
=
utils
.
closest
(
e
.
target
,
'
LI
'
);
if
(
!
selected
)
return
;
...
...
app/assets/javascripts/droplab/plugins/input_setter.js
View file @
37565656
...
...
@@ -35,11 +35,6 @@ const InputSetter = {
const
newValue
=
selectedItem
.
getAttribute
(
config
.
valueAttribute
);
const
inputAttribute
=
config
.
inputAttribute
;
<<<<<<<
HEAD
if
(
!
newValue
)
return
;
=======
>>>>>>>
origin
/
master
if
(
input
.
hasAttribute
(
inputAttribute
))
return
input
.
setAttribute
(
inputAttribute
,
newValue
);
if
(
input
.
tagName
===
'
INPUT
'
)
return
input
.
value
=
newValue
;
return
input
.
textContent
=
newValue
;
...
...
app/assets/stylesheets/framework/filters.scss
View file @
37565656
...
...
@@ -446,15 +446,8 @@
}
}
<<<<<<<
HEAD
.filter-dropdown-item.droplab-item-active
.btn
{
@extend
%filter-dropdown-item-btn-hover
;
=======
.filter-dropdown-item.droplab-item-active
{
.btn
{
@extend
%filter-dropdown-item-btn-hover
;
}
>>>>>>>
origin
/
master
}
.filter-dropdown-loading
{
...
...
spec/features/issues/filtered_search/dropdown_hint_spec.rb
View file @
37565656
...
...
@@ -44,11 +44,7 @@ describe 'Dropdown hint', :js, :feature do
hint_dropdown
=
find
(
js_dropdown_hint
)
<<<<<<<
HEAD
expect
(
hint_dropdown
).
to
have_content
(
'Press Enter or click to search'
)
=======
expect
(
page
).
to
have_css
(
js_dropdown_hint
,
text:
'Press Enter or click to search'
)
>>>>>>>
origin
/
master
expect
(
hint_dropdown
).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
0
)
end
...
...
spec/features/issues/filtered_search/search_bar_spec.rb
View file @
37565656
...
...
@@ -101,11 +101,7 @@ describe 'Search bar', js: true, feature: true do
find
(
'.filtered-search-box .clear-search'
).
click
filtered_search
.
click
<<<<<<<
HEAD
expect
(
find
(
'#js-dropdown-hint'
)).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
4
)
=======
expect
(
find
(
'#js-dropdown-hint'
)).
to
have_selector
(
'.filter-dropdown .filter-dropdown-item'
,
count:
5
)
>>>>>>>
origin
/
master
expect
(
get_left_style
(
find
(
'#js-dropdown-hint'
)[
'style'
])).
to
eq
(
hint_offset
)
end
end
...
...
spec/javascripts/build_spec.js
View file @
37565656
...
...
@@ -64,38 +64,6 @@ describe('Build', () => {
});
});
<<<<<<<
HEAD
=======
describe
(
'
initial build trace
'
,
()
=>
{
beforeEach
(()
=>
{
new
Build
();
});
it
(
'
displays the initial build trace
'
,
()
=>
{
expect
(
$
.
ajax
.
calls
.
count
()).
toBe
(
1
);
const
[{
url
,
dataType
,
success
,
context
}]
=
$
.
ajax
.
calls
.
argsFor
(
0
);
expect
(
url
).
toBe
(
`
${
BUILD_URL
}
/trace.json`
,
);
expect
(
dataType
).
toBe
(
'
json
'
);
expect
(
success
).
toEqual
(
jasmine
.
any
(
Function
));
spyOn
(
gl
.
utils
,
'
setCiStatusFavicon
'
).
and
.
callFake
(()
=>
{});
success
.
call
(
context
,
{
html
:
'
<span>Example</span>
'
,
status
:
'
running
'
});
expect
(
$
(
'
#build-trace .js-build-output
'
).
text
()).
toMatch
(
/Example/
);
});
it
(
'
removes the spinner
'
,
()
=>
{
const
[{
success
,
context
}]
=
$
.
ajax
.
calls
.
argsFor
(
0
);
spyOn
(
gl
.
utils
,
'
setCiStatusFavicon
'
).
and
.
callFake
(()
=>
{});
success
.
call
(
context
,
{
trace_html
:
'
<span>Example</span>
'
,
status
:
'
success
'
});
expect
(
$
(
'
.js-build-refresh
'
).
length
).
toBe
(
0
);
});
});
>>>>>>>
origin
/
master
describe
(
'
running build
'
,
()
=>
{
beforeEach
(
function
()
{
this
.
build
=
new
Build
();
...
...
spec/javascripts/droplab/drop_down_spec.js
View file @
37565656
...
...
@@ -130,11 +130,7 @@ describe('DropDown', function () {
beforeEach
(
function
()
{
this
.
list
=
{
dispatchEvent
:
()
=>
{}
};
this
.
dropdown
=
{
hide
:
()
=>
{},
list
:
this
.
list
,
addSelectedClass
:
()
=>
{}
};
<<<<<<<
HEAD
this
.
event
=
{
preventDefault
:
()
=>
{},
target
:
'
target
'
};
=======
this
.
event
=
{
preventDefault
:
()
=>
{},
target
:
{}
};
>>>>>>>
origin
/
master
this
.
customEvent
=
{};
this
.
closestElement
=
{};
...
...
@@ -172,8 +168,6 @@ describe('DropDown', function () {
expect
(
this
.
list
.
dispatchEvent
).
toHaveBeenCalledWith
(
this
.
customEvent
);
});
<<<<<<<
HEAD
=======
describe
(
'
if the target is a UL element
'
,
function
()
{
beforeEach
(
function
()
{
this
.
event
=
{
preventDefault
:
()
=>
{},
target
:
{
tagName
:
'
UL
'
}
};
...
...
@@ -189,7 +183,6 @@ describe('DropDown', function () {
});
});
>>>>>>>
origin
/
master
describe
(
'
if no selected element exists
'
,
function
()
{
beforeEach
(
function
()
{
this
.
event
.
preventDefault
.
calls
.
reset
();
...
...
spec/javascripts/droplab/plugins/input_setter_spec.js
View file @
37565656
...
...
@@ -140,25 +140,6 @@ describe('InputSetter', function () {
expect
(
this
.
input
.
value
).
toBe
(
this
.
newValue
);
});
<<<<<<<
HEAD
describe
(
'
if there is no newValue
'
,
function
()
{
beforeEach
(
function
()
{
this
.
newValue
=
''
;
this
.
inputSetter
=
{
hook
:
{
trigger
:
{}
}
};
this
.
config
=
{
valueAttribute
:
{},
input
:
this
.
input
};
this
.
input
=
{
value
:
'
oldValue
'
,
tagName
:
'
INPUT
'
};
this
.
selectedItem
=
{
getAttribute
:
()
=>
{}
};
InputSetter
.
setInput
.
call
(
this
.
inputSetter
,
this
.
config
,
this
.
selectedItem
);
});
it
(
'
should not set the value of the input
'
,
function
()
{
expect
(
this
.
input
.
value
).
toBe
(
'
oldValue
'
);
})
});
=======
>>>>>>>
origin
/
master
describe
(
'
if no config.input is provided
'
,
function
()
{
beforeEach
(
function
()
{
this
.
config
=
{
valueAttribute
:
{}
};
...
...
@@ -184,27 +165,6 @@ describe('InputSetter', function () {
it
(
'
should set the textContent of the input
'
,
function
()
{
expect
(
this
.
input
.
textContent
).
toBe
(
this
.
newValue
);
});
<<<<<<<
HEAD
describe
(
'
if there is no new value
'
,
function
()
{
beforeEach
(
function
()
{
this
.
selectedItem
=
{
getAttribute
:
()
=>
{}
};
this
.
input
=
{
textContent
:
'
oldValue
'
,
tagName
:
'
INPUT
'
,
hasAttribute
:
()
=>
{}
};
this
.
config
=
{
valueAttribute
:
{},
input
:
this
.
input
};
this
.
inputSetter
=
{
hook
:
{
trigger
:
{}
}
};
this
.
newValue
=
'
newValue
'
;
spyOn
(
this
.
selectedItem
,
'
getAttribute
'
).
and
.
returnValue
(
this
.
newValue
);
InputSetter
.
setInput
.
call
(
this
.
inputSetter
,
this
.
config
,
this
.
selectedItem
);
});
it
(
'
should not set the value of the input
'
,
function
()
{
expect
(
this
.
input
.
textContent
).
toBe
(
'
oldValue
'
);
});
});
=======
>>>>>>>
origin
/
master
});
describe
(
'
if there is an inputAttribute
'
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment