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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
5f192c77
Commit
5f192c77
authored
Dec 30, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update all frontend tests to point to precompiled fixtures
parent
6370e326
Changes
29
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
55 additions
and
55 deletions
+55
-55
spec/javascripts/activities_spec.js.es6
spec/javascripts/activities_spec.js.es6
+1
-1
spec/javascripts/behaviors/quick_submit_spec.js
spec/javascripts/behaviors/quick_submit_spec.js
+2
-2
spec/javascripts/behaviors/requires_input_spec.js
spec/javascripts/behaviors/requires_input_spec.js
+2
-2
spec/javascripts/bootstrap_linked_tabs_spec.js.es6
spec/javascripts/bootstrap_linked_tabs_spec.js.es6
+2
-2
spec/javascripts/dashboard_spec.js.es6
spec/javascripts/dashboard_spec.js.es6
+1
-1
spec/javascripts/environments/environment_actions_spec.js.es6
.../javascripts/environments/environment_actions_spec.js.es6
+2
-2
spec/javascripts/environments/environment_external_url_spec.js.es6
...scripts/environments/environment_external_url_spec.js.es6
+2
-2
spec/javascripts/environments/environment_item_spec.js.es6
spec/javascripts/environments/environment_item_spec.js.es6
+2
-2
spec/javascripts/environments/environment_rollback_spec.js.es6
...javascripts/environments/environment_rollback_spec.js.es6
+2
-2
spec/javascripts/environments/environment_stop_spec.js.es6
spec/javascripts/environments/environment_stop_spec.js.es6
+2
-2
spec/javascripts/gl_dropdown_spec.js.es6
spec/javascripts/gl_dropdown_spec.js.es6
+2
-2
spec/javascripts/gl_field_errors_spec.js.es6
spec/javascripts/gl_field_errors_spec.js.es6
+2
-2
spec/javascripts/header_spec.js
spec/javascripts/header_spec.js
+1
-1
spec/javascripts/issuable_spec.js.es6
spec/javascripts/issuable_spec.js.es6
+3
-3
spec/javascripts/issue_spec.js
spec/javascripts/issue_spec.js
+6
-6
spec/javascripts/labels_issue_sidebar_spec.js.es6
spec/javascripts/labels_issue_sidebar_spec.js.es6
+2
-2
spec/javascripts/line_highlighter_spec.js
spec/javascripts/line_highlighter_spec.js
+2
-2
spec/javascripts/merge_request_spec.js
spec/javascripts/merge_request_spec.js
+2
-2
spec/javascripts/merge_request_tabs_spec.js
spec/javascripts/merge_request_tabs_spec.js
+2
-2
spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6
spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6
+2
-2
spec/javascripts/new_branch_spec.js
spec/javascripts/new_branch_spec.js
+2
-2
spec/javascripts/notes_spec.js
spec/javascripts/notes_spec.js
+1
-1
spec/javascripts/pipelines_spec.js.es6
spec/javascripts/pipelines_spec.js.es6
+2
-2
spec/javascripts/project_title_spec.js
spec/javascripts/project_title_spec.js
+2
-2
spec/javascripts/search_autocomplete_spec.js
spec/javascripts/search_autocomplete_spec.js
+2
-2
spec/javascripts/signin_tabs_memoizer_spec.js.es6
spec/javascripts/signin_tabs_memoizer_spec.js.es6
+1
-1
spec/javascripts/u2f/authenticate_spec.js
spec/javascripts/u2f/authenticate_spec.js
+1
-1
spec/javascripts/u2f/register_spec.js
spec/javascripts/u2f/register_spec.js
+1
-1
spec/support/javascript_fixtures_helpers.rb
spec/support/javascript_fixtures_helpers.rb
+1
-1
No files found.
spec/javascripts/activities_spec.js.es6
View file @
5f192c77
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
(() => {
(() => {
window.gon || (window.gon = {});
window.gon || (window.gon = {});
const fixtureTemplate = '
event_filter.html
';
const fixtureTemplate = '
static/event_filter.html.raw
';
const filters = [
const filters = [
{
{
id: 'all',
id: 'all',
...
...
spec/javascripts/behaviors/quick_submit_spec.js
View file @
5f192c77
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
(
function
()
{
(
function
()
{
describe
(
'
Quick Submit behavior
'
,
function
()
{
describe
(
'
Quick Submit behavior
'
,
function
()
{
var
keydownEvent
;
var
keydownEvent
;
fixture
.
preload
(
'
behaviors/quick_submit.html
'
);
fixture
.
preload
(
'
static/behaviors/quick_submit.html.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
behaviors/quick_submit.html
'
);
fixture
.
load
(
'
static/behaviors/quick_submit.html.raw
'
);
$
(
'
form
'
).
submit
(
function
(
e
)
{
$
(
'
form
'
).
submit
(
function
(
e
)
{
// Prevent a form submit from moving us off the testing page
// Prevent a form submit from moving us off the testing page
return
e
.
preventDefault
();
return
e
.
preventDefault
();
...
...
spec/javascripts/behaviors/requires_input_spec.js
View file @
5f192c77
...
@@ -4,9 +4,9 @@
...
@@ -4,9 +4,9 @@
(
function
()
{
(
function
()
{
describe
(
'
requiresInput
'
,
function
()
{
describe
(
'
requiresInput
'
,
function
()
{
fixture
.
preload
(
'
behaviors/requires_input.html
'
);
fixture
.
preload
(
'
static/behaviors/requires_input.html.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
return
fixture
.
load
(
'
behaviors/requires_input.html
'
);
return
fixture
.
load
(
'
static/behaviors/requires_input.html.raw
'
);
});
});
it
(
'
disables submit when any field is required
'
,
function
()
{
it
(
'
disables submit when any field is required
'
,
function
()
{
$
(
'
.js-requires-input
'
).
requiresInput
();
$
(
'
.js-requires-input
'
).
requiresInput
();
...
...
spec/javascripts/bootstrap_linked_tabs_spec.js.es6
View file @
5f192c77
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
(() => {
(() => {
describe('Linked Tabs', () => {
describe('Linked Tabs', () => {
fixture.preload('
linked_tabs
');
fixture.preload('
static/linked_tabs.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
linked_tabs
');
fixture.load('
static/linked_tabs.html.raw
');
});
});
describe('when is initialized', () => {
describe('when is initialized', () => {
...
...
spec/javascripts/dashboard_spec.js.es6
View file @
5f192c77
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
((global) => {
((global) => {
describe('Dashboard', () => {
describe('Dashboard', () => {
const fixtureTemplate = '
dashboard.html
';
const fixtureTemplate = '
static/dashboard.html.raw
';
function todosCountText() {
function todosCountText() {
return $('.js-todos-count').text();
return $('.js-todos-count').text();
...
...
spec/javascripts/environments/environment_actions_spec.js.es6
View file @
5f192c77
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
//= require environments/components/environment_actions
//= require environments/components/environment_actions
describe('Actions Component', () => {
describe('Actions Component', () => {
fixture.preload('
environments/element.html
');
fixture.preload('
static/environments/element.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
environments/element.html
');
fixture.load('
static/environments/element.html.raw
');
});
});
it('should render a dropdown with the provided actions', () => {
it('should render a dropdown with the provided actions', () => {
...
...
spec/javascripts/environments/environment_external_url_spec.js.es6
View file @
5f192c77
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
//= require environments/components/environment_external_url
//= require environments/components/environment_external_url
describe('External URL Component', () => {
describe('External URL Component', () => {
fixture.preload('
environments/element.html
');
fixture.preload('
static/environments/element.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
environments/element.html
');
fixture.load('
static/environments/element.html.raw
');
});
});
it('should link to the provided externalUrl prop', () => {
it('should link to the provided externalUrl prop', () => {
...
...
spec/javascripts/environments/environment_item_spec.js.es6
View file @
5f192c77
...
@@ -3,9 +3,9 @@
...
@@ -3,9 +3,9 @@
//= require environments/components/environment_item
//= require environments/components/environment_item
describe('Environment item', () => {
describe('Environment item', () => {
fixture.preload('
environments/table.html
');
fixture.preload('
static/environments/table.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
environments/table.html
');
fixture.load('
static/environments/table.html.raw
');
});
});
describe('When item is folder', () => {
describe('When item is folder', () => {
...
...
spec/javascripts/environments/environment_rollback_spec.js.es6
View file @
5f192c77
//= require vue
//= require vue
//= require environments/components/environment_rollback
//= require environments/components/environment_rollback
describe('Rollback Component', () => {
describe('Rollback Component', () => {
fixture.preload('
environments/element.html
');
fixture.preload('
static/environments/element.html.raw
');
const retryURL = 'https://gitlab.com/retry';
const retryURL = 'https://gitlab.com/retry';
beforeEach(() => {
beforeEach(() => {
fixture.load('
environments/element.html
');
fixture.load('
static/environments/element.html.raw
');
});
});
it('Should link to the provided retryUrl', () => {
it('Should link to the provided retryUrl', () => {
...
...
spec/javascripts/environments/environment_stop_spec.js.es6
View file @
5f192c77
//= require vue
//= require vue
//= require environments/components/environment_stop
//= require environments/components/environment_stop
describe('Stop Component', () => {
describe('Stop Component', () => {
fixture.preload('
environments/element.html
');
fixture.preload('
static/environments/element.html.raw
');
let stopURL;
let stopURL;
let component;
let component;
beforeEach(() => {
beforeEach(() => {
fixture.load('
environments/element.html
');
fixture.load('
static/environments/element.html.raw
');
stopURL = '/stop';
stopURL = '/stop';
component = new window.gl.environmentsList.StopComponent({
component = new window.gl.environmentsList.StopComponent({
...
...
spec/javascripts/gl_dropdown_spec.js.es6
View file @
5f192c77
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
}
}
describe('Dropdown', function describeDropdown() {
describe('Dropdown', function describeDropdown() {
fixture.preload('
gl_dropdown.html
');
fixture.preload('
static/gl_dropdown.html.raw
');
fixture.preload('projects.json');
fixture.preload('projects.json');
function initDropDown(hasRemote, isFilterable) {
function initDropDown(hasRemote, isFilterable) {
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
}
}
beforeEach(() => {
beforeEach(() => {
fixture.load('
gl_dropdown.html
');
fixture.load('
static/gl_dropdown.html.raw
');
this.dropdownContainerElement = $('.dropdown.inline');
this.dropdownContainerElement = $('.dropdown.inline');
this.$dropdownMenuElement = $('.dropdown-menu', this.dropdownContainerElement);
this.$dropdownMenuElement = $('.dropdown-menu', this.dropdownContainerElement);
this.projectsData = fixture.load('projects.json')[0];
this.projectsData = fixture.load('projects.json')[0];
...
...
spec/javascripts/gl_field_errors_spec.js.es6
View file @
5f192c77
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
//= require gl_field_errors
//= require gl_field_errors
((global) => {
((global) => {
fixture.preload('
gl_field_errors.html
');
fixture.preload('
static/gl_field_errors.html.raw
');
describe('GL Style Field Errors', function() {
describe('GL Style Field Errors', function() {
beforeEach(function() {
beforeEach(function() {
fixture.load('
gl_field_errors.html
');
fixture.load('
static/gl_field_errors.html.raw
');
const $form = this.$form = $('form.gl-show-field-errors');
const $form = this.$form = $('form.gl-show-field-errors');
this.fieldErrors = new global.GlFieldErrors($form);
this.fieldErrors = new global.GlFieldErrors($form);
});
});
...
...
spec/javascripts/header_spec.js
View file @
5f192c77
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
describe
(
'
Header
'
,
function
()
{
describe
(
'
Header
'
,
function
()
{
var
todosPendingCount
=
'
.todos-pending-count
'
;
var
todosPendingCount
=
'
.todos-pending-count
'
;
var
fixtureTemplate
=
'
header.html
'
;
var
fixtureTemplate
=
'
static/header.html.raw
'
;
function
isTodosCountHidden
()
{
function
isTodosCountHidden
()
{
return
$
(
todosPendingCount
).
hasClass
(
'
hidden
'
);
return
$
(
todosPendingCount
).
hasClass
(
'
hidden
'
);
...
...
spec/javascripts/issuable_spec.js.es6
View file @
5f192c77
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
}
}
describe('Issuable', () => {
describe('Issuable', () => {
fixture.preload('
issuable_filter
');
fixture.preload('
static/issuable_filter.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
issuable_filter
');
fixture.load('
static/issuable_filter.html.raw
');
Issuable.init();
Issuable.init();
});
});
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
beforeEach(() => {
beforeEach(() => {
$filtersForm = $('.js-filter-form');
$filtersForm = $('.js-filter-form');
fixture.load('
issuable_filter
');
fixture.load('
static/issuable_filter.html.raw
');
resetForm($filtersForm);
resetForm($filtersForm);
});
});
...
...
spec/javascripts/issue_spec.js
View file @
5f192c77
...
@@ -8,9 +8,9 @@
...
@@ -8,9 +8,9 @@
var
INVALID_URL
=
'
http://goesnowhere.nothing/whereami
'
;
var
INVALID_URL
=
'
http://goesnowhere.nothing/whereami
'
;
var
$boxClosed
,
$boxOpen
,
$btnClose
,
$btnReopen
;
var
$boxClosed
,
$boxOpen
,
$btnClose
,
$btnReopen
;
fixture
.
preload
(
'
issues/closed-issue.html
'
);
fixture
.
preload
(
'
issues/closed-issue.html
.raw
'
);
fixture
.
preload
(
'
issues/issue-with-task-list.html
'
);
fixture
.
preload
(
'
issues/issue-with-task-list.html
.raw
'
);
fixture
.
preload
(
'
issues/open-issue.html
'
);
fixture
.
preload
(
'
issues/open-issue.html
.raw
'
);
function
expectErrorMessage
()
{
function
expectErrorMessage
()
{
var
$flashMessage
=
$
(
'
div.flash-alert
'
);
var
$flashMessage
=
$
(
'
div.flash-alert
'
);
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
describe
(
'
Issue
'
,
function
()
{
describe
(
'
Issue
'
,
function
()
{
describe
(
'
task lists
'
,
function
()
{
describe
(
'
task lists
'
,
function
()
{
fixture
.
load
(
'
issues/issue-with-task-list.html
'
);
fixture
.
load
(
'
issues/issue-with-task-list.html
.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
issue
=
new
Issue
();
this
.
issue
=
new
Issue
();
});
});
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
describe
(
'
close issue
'
,
function
()
{
describe
(
'
close issue
'
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
issues/open-issue.html
'
);
fixture
.
load
(
'
issues/open-issue.html
.raw
'
);
findElements
();
findElements
();
this
.
issue
=
new
Issue
();
this
.
issue
=
new
Issue
();
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
describe
(
'
reopen issue
'
,
function
()
{
describe
(
'
reopen issue
'
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
issues/closed-issue.html
'
);
fixture
.
load
(
'
issues/closed-issue.html
.raw
'
);
findElements
();
findElements
();
this
.
issue
=
new
Issue
();
this
.
issue
=
new
Issue
();
...
...
spec/javascripts/labels_issue_sidebar_spec.js.es6
View file @
5f192c77
...
@@ -17,10 +17,10 @@
...
@@ -17,10 +17,10 @@
(() => {
(() => {
let saveLabelCount = 0;
let saveLabelCount = 0;
describe('Issue dropdown sidebar', () => {
describe('Issue dropdown sidebar', () => {
fixture.preload('
issue_sidebar_label.html
');
fixture.preload('
static/issue_sidebar_label.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
issue_sidebar_label.html
');
fixture.load('
static/issue_sidebar_label.html.raw
');
new IssuableContext('{"id":1,"name":"Administrator","username":"root"}');
new IssuableContext('{"id":1,"name":"Administrator","username":"root"}');
new LabelsSelect();
new LabelsSelect();
...
...
spec/javascripts/line_highlighter_spec.js
View file @
5f192c77
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
(
function
()
{
(
function
()
{
describe
(
'
LineHighlighter
'
,
function
()
{
describe
(
'
LineHighlighter
'
,
function
()
{
var
clickLine
;
var
clickLine
;
fixture
.
preload
(
'
line_highlighter.html
'
);
fixture
.
preload
(
'
static/line_highlighter.html.raw
'
);
clickLine
=
function
(
number
,
eventData
)
{
clickLine
=
function
(
number
,
eventData
)
{
var
e
;
var
e
;
if
(
eventData
==
null
)
{
if
(
eventData
==
null
)
{
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
}
}
};
};
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
line_highlighter.html
'
);
fixture
.
load
(
'
static/line_highlighter.html.raw
'
);
this
[
"
class
"
]
=
new
LineHighlighter
();
this
[
"
class
"
]
=
new
LineHighlighter
();
this
.
css
=
this
[
"
class
"
].
highlightClass
;
this
.
css
=
this
[
"
class
"
].
highlightClass
;
return
this
.
spies
=
{
return
this
.
spies
=
{
...
...
spec/javascripts/merge_request_spec.js
View file @
5f192c77
...
@@ -6,9 +6,9 @@
...
@@ -6,9 +6,9 @@
(
function
()
{
(
function
()
{
describe
(
'
MergeRequest
'
,
function
()
{
describe
(
'
MergeRequest
'
,
function
()
{
return
describe
(
'
task lists
'
,
function
()
{
return
describe
(
'
task lists
'
,
function
()
{
fixture
.
preload
(
'
merge_requests_show.html
'
);
fixture
.
preload
(
'
static/merge_requests_show.html.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
merge_requests_show.html
'
);
fixture
.
load
(
'
static/merge_requests_show.html.raw
'
);
return
this
.
merge
=
new
MergeRequest
();
return
this
.
merge
=
new
MergeRequest
();
});
});
it
(
'
modifies the Markdown field
'
,
function
()
{
it
(
'
modifies the Markdown field
'
,
function
()
{
...
...
spec/javascripts/merge_request_tabs_spec.js
View file @
5f192c77
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
};
};
$
.
extend
(
stubLocation
,
defaults
,
stubs
||
{});
$
.
extend
(
stubLocation
,
defaults
,
stubs
||
{});
};
};
fixture
.
preload
(
'
merge_request_tabs.html
'
);
fixture
.
preload
(
'
static/merge_request_tabs.html.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
class
=
new
gl
.
MergeRequestTabs
({
stubLocation
:
stubLocation
});
this
.
class
=
new
gl
.
MergeRequestTabs
({
stubLocation
:
stubLocation
});
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
describe
(
'
#activateTab
'
,
function
()
{
describe
(
'
#activateTab
'
,
function
()
{
beforeEach
(
function
()
{
beforeEach
(
function
()
{
spyOn
(
$
,
'
ajax
'
).
and
.
callFake
(
function
()
{});
spyOn
(
$
,
'
ajax
'
).
and
.
callFake
(
function
()
{});
fixture
.
load
(
'
merge_request_tabs.html
'
);
fixture
.
load
(
'
static/merge_request_tabs.html.raw
'
);
this
.
subject
=
this
.
class
.
activateTab
;
this
.
subject
=
this
.
class
.
activateTab
;
});
});
it
(
'
shows the first tab when action is show
'
,
function
()
{
it
(
'
shows the first tab when action is show
'
,
function
()
{
...
...
spec/javascripts/mini_pipeline_graph_dropdown_spec.js.es6
View file @
5f192c77
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
(() => {
(() => {
describe('Mini Pipeline Graph Dropdown', () => {
describe('Mini Pipeline Graph Dropdown', () => {
fixture.preload('
mini_dropdown_graph
');
fixture.preload('
static/mini_dropdown_graph.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
mini_dropdown_graph
');
fixture.load('
static/mini_dropdown_graph.html.raw
');
});
});
describe('When is initialized', () => {
describe('When is initialized', () => {
...
...
spec/javascripts/new_branch_spec.js
View file @
5f192c77
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
describe
(
'
Branch
'
,
function
()
{
describe
(
'
Branch
'
,
function
()
{
return
describe
(
'
create a new branch
'
,
function
()
{
return
describe
(
'
create a new branch
'
,
function
()
{
var
expectToHaveError
,
fillNameWith
;
var
expectToHaveError
,
fillNameWith
;
fixture
.
preload
(
'
new_branch.html
'
);
fixture
.
preload
(
'
static/new_branch.html.raw
'
);
fillNameWith
=
function
(
value
)
{
fillNameWith
=
function
(
value
)
{
return
$
(
'
.js-branch-name
'
).
val
(
value
).
trigger
(
'
blur
'
);
return
$
(
'
.js-branch-name
'
).
val
(
value
).
trigger
(
'
blur
'
);
};
};
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
return
expect
(
$
(
'
.js-branch-name-error span
'
).
text
()).
toEqual
(
error
);
return
expect
(
$
(
'
.js-branch-name-error span
'
).
text
()).
toEqual
(
error
);
};
};
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
new_branch.html
'
);
fixture
.
load
(
'
static/new_branch.html.raw
'
);
$
(
'
form
'
).
on
(
'
submit
'
,
function
(
e
)
{
$
(
'
form
'
).
on
(
'
submit
'
,
function
(
e
)
{
return
e
.
preventDefault
();
return
e
.
preventDefault
();
});
});
...
...
spec/javascripts/notes_spec.js
View file @
5f192c77
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
gl
.
utils
=
gl
.
utils
||
{};
gl
.
utils
=
gl
.
utils
||
{};
describe
(
'
Notes
'
,
function
()
{
describe
(
'
Notes
'
,
function
()
{
var
commentsTemplate
=
'
issues/issue_with_comment.raw
'
;
var
commentsTemplate
=
'
issues/issue_with_comment.
html.
raw
'
;
fixture
.
preload
(
commentsTemplate
);
fixture
.
preload
(
commentsTemplate
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
...
...
spec/javascripts/pipelines_spec.js.es6
View file @
5f192c77
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
(() => {
(() => {
describe('Pipelines', () => {
describe('Pipelines', () => {
fixture.preload('
pipeline_graph
');
fixture.preload('
static/pipeline_graph.html.raw
');
beforeEach(() => {
beforeEach(() => {
fixture.load('
pipeline_graph
');
fixture.load('
static/pipeline_graph.html.raw
');
});
});
it('should be defined', () => {
it('should be defined', () => {
...
...
spec/javascripts/project_title_spec.js
View file @
5f192c77
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
window
.
gon
.
api_version
=
'
v3
'
;
window
.
gon
.
api_version
=
'
v3
'
;
describe
(
'
Project Title
'
,
function
()
{
describe
(
'
Project Title
'
,
function
()
{
fixture
.
preload
(
'
project_title.html
'
);
fixture
.
preload
(
'
static/project_title.html.raw
'
);
fixture
.
preload
(
'
projects.json
'
);
fixture
.
preload
(
'
projects.json
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
project_title.html
'
);
fixture
.
load
(
'
static/project_title.html.raw
'
);
return
this
.
project
=
new
Project
();
return
this
.
project
=
new
Project
();
});
});
return
describe
(
'
project list
'
,
function
()
{
return
describe
(
'
project list
'
,
function
()
{
...
...
spec/javascripts/search_autocomplete_spec.js
View file @
5f192c77
...
@@ -112,9 +112,9 @@
...
@@ -112,9 +112,9 @@
};
};
describe
(
'
Search autocomplete dropdown
'
,
function
()
{
describe
(
'
Search autocomplete dropdown
'
,
function
()
{
fixture
.
preload
(
'
s
earch_autocomplete.html
'
);
fixture
.
preload
(
'
s
tatic/search_autocomplete.html.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
fixture
.
load
(
'
s
earch_autocomplete.html
'
);
fixture
.
load
(
'
s
tatic/search_autocomplete.html.raw
'
);
return
widget
=
new
gl
.
SearchAutocomplete
;
return
widget
=
new
gl
.
SearchAutocomplete
;
});
});
it
(
'
should show Dashboard specific dropdown menu
'
,
function
()
{
it
(
'
should show Dashboard specific dropdown menu
'
,
function
()
{
...
...
spec/javascripts/signin_tabs_memoizer_spec.js.es6
View file @
5f192c77
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
((global) => {
((global) => {
describe('SigninTabsMemoizer', () => {
describe('SigninTabsMemoizer', () => {
const fixtureTemplate = 's
ignin_tabs.html
';
const fixtureTemplate = 's
tatic/signin_tabs.html.raw
';
const tabSelector = 'ul.nav-tabs';
const tabSelector = 'ul.nav-tabs';
const currentTabKey = 'current_signin_tab';
const currentTabKey = 'current_signin_tab';
let memo;
let memo;
...
...
spec/javascripts/u2f/authenticate_spec.js
View file @
5f192c77
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
(
function
()
{
(
function
()
{
describe
(
'
U2FAuthenticate
'
,
function
()
{
describe
(
'
U2FAuthenticate
'
,
function
()
{
fixture
.
load
(
'
u2f/authenticate
'
);
fixture
.
load
(
'
static/u2f/authenticate.html.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
u2fDevice
=
new
MockU2FDevice
;
this
.
u2fDevice
=
new
MockU2FDevice
;
this
.
container
=
$
(
"
#js-authenticate-u2f
"
);
this
.
container
=
$
(
"
#js-authenticate-u2f
"
);
...
...
spec/javascripts/u2f/register_spec.js
View file @
5f192c77
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
(
function
()
{
(
function
()
{
describe
(
'
U2FRegister
'
,
function
()
{
describe
(
'
U2FRegister
'
,
function
()
{
fixture
.
load
(
'
u2f/register
'
);
fixture
.
load
(
'
static/u2f/register.html.raw
'
);
beforeEach
(
function
()
{
beforeEach
(
function
()
{
this
.
u2fDevice
=
new
MockU2FDevice
;
this
.
u2fDevice
=
new
MockU2FDevice
;
this
.
container
=
$
(
"
#js-register-u2f
"
);
this
.
container
=
$
(
"
#js-register-u2f
"
);
...
...
spec/support/javascript_fixtures_helpers.rb
View file @
5f192c77
...
@@ -13,7 +13,7 @@ module JavaScriptFixturesHelpers
...
@@ -13,7 +13,7 @@ module JavaScriptFixturesHelpers
#
#
def
clean_frontend_fixtures
(
directory_name
)
def
clean_frontend_fixtures
(
directory_name
)
directory_name
=
File
.
expand_path
(
directory_name
,
FIXTURE_PATH
)
directory_name
=
File
.
expand_path
(
directory_name
,
FIXTURE_PATH
)
Dir
[
File
.
expand_path
(
'*
*/*
.html.raw'
,
directory_name
)].
each
do
|
file_name
|
Dir
[
File
.
expand_path
(
'*.html.raw'
,
directory_name
)].
each
do
|
file_name
|
FileUtils
.
rm
(
file_name
)
FileUtils
.
rm
(
file_name
)
end
end
end
end
...
...
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