Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
rendezvous
Commits
abd2c16f
Commit
abd2c16f
authored
Apr 20, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0bf67f7f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
217 additions
and
42 deletions
+217
-42
spec/javascripts/modules/mod-md-editor_spec.js.coffee
+7
-7
spec/javascripts/spec_helper.coffee
+31
-0
spec/teaspoon_env.rb
+179
-35
No files found.
spec/javascripts/modules/mod-md-editor_spec.js.coffee
View file @
abd2c16f
#= require modules/mod-md-editor
#= require modules/mod-md-editor
describe
"mod-md-editor"
,
->
#
describe "mod-md-editor", ->
text
=
new
_mod_md_editor
.
TextareaText
(
"aaaaaaaa
\n
bbbbbb
\n\n
cccccc"
,
10
,
18
)
#
text = new _mod_md_editor.TextareaText("aaaaaaaa\nbbbbbb\n\ncccccc", 10, 18)
it
"_mod_md_editor.parse"
,
->
#
it "_mod_md_editor.parse", ->
expect
(
text
.
total_line_num
()).
toBe
(
4
)
#
expect(text.total_line_num()).toBe(4)
expect
(
text
.
current_line_num
()).
toBe
()
#
expect(text.current_line_num()).toBe()
expect
(
text
.
current_line_head_pos
()).
toBe
(
4
)
#
expect(text.current_line_head_pos()).toBe(4)
expect
(
text
.
current_pos_in_line
()).
toBe
(
4
)
#
expect(text.current_pos_in_line()).toBe(4)
spec/javascripts/spec_helper.coffee
0 → 100644
View file @
abd2c16f
# Teaspoon includes some support files, but you can use anything from your own support path too.
# require support/jasmine-jquery-1.7.0
# require support/jasmine-jquery-2.0.0
# require support/sinon
# require support/your-support-file
#
# PhantomJS (Teaspoons default driver) doesn't have support for Function.prototype.bind, which has caused confusion.
# Use this polyfill to avoid the confusion.
#= require support/bind-poly
#
# Deferring execution
# If you're using CommonJS, RequireJS or some other asynchronous library you can defer execution. Call
# Teaspoon.execute() after everything has been loaded. Simple example of a timeout:
#
# Teaspoon.defer = true
# setTimeout(Teaspoon.execute, 1000)
#
# Matching files
# By default Teaspoon will look for files that match _spec.{js,js.coffee,.coffee}. Add a filename_spec.js file in your
# spec path and it'll be included in the default suite automatically. If you want to customize suites, check out the
# configuration in config/initializers/teaspoon.rb
#
# Manifest
# If you'd rather require your spec files manually (to control order for instance) you can disable the suite matcher in
# the configuration and use this file as a manifest.
#
# For more information: http://github.com/modeset/teaspoon
#
# You can require your own javascript files here. By default this will include everything in application, however you
# may get better load performance if you require the specific files that are being used in the spec that tests them.
#= require application
spec/teaspoon_env.rb
View file @
abd2c16f
This diff is collapsed.
Click to expand it.
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