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
Kazuhiko Shiozaki
gitlab-ce
Commits
662bdfbe
Commit
662bdfbe
authored
Apr 18, 2015
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make StatGraph JS explicitly require its dependencies
This allows us to test them in a bit more isolation.
parent
d5c7b62b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
0 deletions
+14
-0
app/assets/javascripts/stat_graph_contributors.js.coffee
app/assets/javascripts/stat_graph_contributors.js.coffee
+4
-0
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
...ssets/javascripts/stat_graph_contributors_graph.js.coffee
+4
-0
spec/javascripts/stat_graph_contributors_graph_spec.js
spec/javascripts/stat_graph_contributors_graph_spec.js
+2
-0
spec/javascripts/stat_graph_contributors_util_spec.js
spec/javascripts/stat_graph_contributors_util_spec.js
+2
-0
spec/javascripts/stat_graph_spec.js
spec/javascripts/stat_graph_spec.js
+2
-0
No files found.
app/assets/javascripts/stat_graph_contributors.js.coffee
View file @
662bdfbe
#= require d3
#= require jquery
#= require stat_graph_contributors_util
class
@
ContributorsStatGraph
init
:
(
log
)
->
@
parsed_log
=
ContributorsStatGraphUtil
.
parse_log
(
log
)
...
...
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
View file @
662bdfbe
#= require d3
#= require jquery
#= require underscore
class
@
ContributorsGraph
MARGIN
:
top
:
20
...
...
spec/javascripts/stat_graph_contributors_graph_spec.js
View file @
662bdfbe
//= require stat_graph_contributors_graph
describe
(
"
ContributorsGraph
"
,
function
()
{
describe
(
"
#set_x_domain
"
,
function
()
{
it
(
"
set the x_domain
"
,
function
()
{
...
...
spec/javascripts/stat_graph_contributors_util_spec.js
View file @
662bdfbe
//= require stat_graph_contributors_util
describe
(
"
ContributorsStatGraphUtil
"
,
function
()
{
describe
(
"
#parse_log
"
,
function
()
{
...
...
spec/javascripts/stat_graph_spec.js
View file @
662bdfbe
//= require stat_graph
describe
(
"
StatGraph
"
,
function
()
{
describe
(
"
#get_log
"
,
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