Dmitriy Zaporozhets
a0a488ed13
Apply new design to files page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-10-13 16:41:48 +02:00
Robert Speicher
dbf9ccbcfe
Check originalEvent.repeat *and* event.repeat
...
phantomjs < 2.0 doesn't support creating `KeyboardEvent` so the tests
were failing on CI
2015-10-07 17:59:10 -04:00
Robert Speicher
fcf99d0d09
Check originalEvent.repeat
2015-10-07 15:23:42 -04:00
Robert Speicher
01d0926bc1
Add "Quick Submit" JS behavior
2015-10-07 15:23:41 -04:00
Robert Speicher
38fbfb9fe6
Require jquery.turbolinks in all JS specs
...
Side-effect: This simplifies the requiresInput handler
2015-10-07 15:23:41 -04:00
Robert Speicher
404a01ab14
Add specs for syntax_highlight JS
...
Also makes it work when given a parent element containing a
`.js-syntax-highlight` element so for dynamically-added things like
notes or Markdown previews, we can more accurately target just the
element we care about.
2015-09-10 15:38:24 -04:00
Robert Speicher
38f1d571fe
Remove style attribute from textarea during ZenMode activation
...
Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2466
2015-09-04 18:01:36 -04:00
Stan Hu
ae3f869fd1
Fix the "Reload with full diff" URL button
...
On the first load, the merge request tabs would be requested in JSON format to render
the HTML. This would cause the "Reload with full diff" button to create a link to diff.json.
Closes #2041
2015-07-23 12:53:54 -07:00
Robert Speicher
dd6daf4656
Add test case for clicking line number anchor icon
2015-07-17 20:40:56 -04:00
Robert Speicher
f6503f71f9
Remove disableButtonIf[Any]EmptyField calls from forms
...
These have been replaced by the "requiresInput" behavior.
2015-06-26 22:07:59 -04:00
Robert Speicher
e4472cee78
Add "Requires Input" JS behavior
2015-06-26 22:06:42 -04:00
Dmitriy Zaporozhets
b9fa82daee
Update tests and use js-issuable class for context form
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-26 15:05:30 +02:00
Dmitriy Zaporozhets
29b6d465a7
Merge branch 'rs-dev-issue-2355' into 'master'
...
MergeRequest#show performance improvements
This is a first pass on improving the performance of the `MergeRequests#show` page. Notable changes:
- The "Commits" tab is loaded lazily, so the initial page load should be much faster for MRs with many commits.
- Relative timestamps via `timeago` are only initialized once per load instead of `O(n^2)`. This greatly improves frontend rendering times for a large number of commits.
- Refactored `User.find_for_commit` to use a single ARel-generated SQL query instead of the old method which resulted in one query, and could result in up to three.
See merge request !838
2015-06-22 09:48:49 +00:00
Robert Speicher
e17020b907
Add MergeRequestTabs specs
2015-06-21 22:57:32 -04:00
Robert Speicher
e59aad6e83
Refactor LineHighlighter
2015-06-19 04:31:24 -04:00
Robert Speicher
32366d1811
Rename BlobView to LineHighlighter
2015-06-19 04:31:24 -04:00
Robert Speicher
b3f9be0639
Refactor and spec BlobView JS
2015-06-19 04:31:23 -04:00
Robert Speicher
39d5a4878f
Add JS specs for Array extensions
2015-06-02 20:32:07 -04:00
Robert Speicher
4560954404
Move jQuery enable/disable extensions to extensions/jquery
...
Removes redundant enableButton/disableButton extensions, and adds specs
for the jQuery extensions.
2015-06-02 20:32:07 -04:00
Robert Speicher
f76a3f3db7
Add ZenMode javascript specs
2015-06-02 20:32:07 -04:00
Robert Speicher
d2256c18f4
Stub ajax in JS specs
2015-05-28 18:22:32 -04:00
Robert Speicher
c9788bd9d8
Remove jasmine-fixture, use teaspoon fixtures
2015-05-28 18:22:32 -04:00
Robert Speicher
d850a57ff4
teaspoon install
2015-05-28 18:22:32 -04:00
Robert Speicher
05aa71ccd9
Remove jasmine-rails; add teaspoon
2015-05-28 18:22:32 -04:00
Douwe Maan
a9e2686139
Update specs.
2015-05-25 16:31:20 +02:00
Robert Speicher
33836ae02c
Remove unneeded jasmine setup
2015-05-06 15:29:46 -04:00
Robert Speicher
51c3393974
Task List feature and JS specs
2015-05-06 13:16:37 -04:00
Robert Speicher
4d1878253e
Typo: Issueable -> Issuable
2015-04-18 15:20:15 -04:00
Robert Speicher
8e6fa2555e
Add JS specs for replyWithSelectedText
2015-04-18 15:17:26 -04:00
Robert Speicher
ded7053fbf
Simplify jasmine.yml since we're using jasmine-rails gem
...
A lot of these values are handled by the asset pipeline.
2015-04-18 15:17:25 -04:00
Robert Speicher
662bdfbeb1
Make StatGraph JS explicitly require its dependencies
...
This allows us to test them in a bit more isolation.
2015-04-18 15:17:25 -04:00
Robert Speicher
d5c7b62b8e
rails g jasmine_rails:install
2015-04-18 15:17:25 -04:00
Robert Speicher
e15af6943a
Re-run rails g jasmine:install
2015-04-18 15:17:24 -04:00
Ciro Santilli
a7e0ca9e83
Add trailing newline to all text files.
...
Present in the large majority of files of each respective type.
2014-06-21 11:20:22 +02:00
Dmitriy Zaporozhets
bbd8525d75
Update jasmine gem to work with rails4
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-10 16:03:24 +02:00
Dmitriy Zaporozhets
e48c6fab60
Make rake gitlab:test works
2013-09-29 23:36:44 +03:00
Dmitriy Zaporozhets
9da1928faa
Use phantomjs for jasmine tests. Fixed broken one
2013-09-29 17:43:59 +03:00
Karlo Soriano
71d67e6557
Contributors graphs feature for GitLab
...
Created tests and refactored some code along the way
Added stat graph util spec, refactored code
finsihed up tests and refactors
finsihed up tests and refactors
2013-06-05 16:51:48 +08:00