Permalink
Browse files

More test coverage. Fixed references to class methods inside of insta…

…nce methods.
  • Loading branch information...
vail130 committed Jan 13, 2013
1 parent e092933 commit 7149bab95ba9446225fa166ed44c9abbd5a862af
Showing with 303 additions and 282 deletions.
  1. +5 −5 lib/wieldymarkup.js
  2. +5 −5 src/wieldymarkup.coffee
  3. +146 −137 test/test.js
  4. +147 −135 test_src/test.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -100,7 +100,7 @@ class WieldyMarkup
processCurrentLevel: =>
@previousLevel = @currentLevel
- leadingWhitespace = @::getLeadingWhitespaceFromText @text
+ leadingWhitespace = @constructor.getLeadingWhitespaceFromText @text
if leadingWhitespace is ""
@currentLevel = 0
@@ -170,7 +170,7 @@ class WieldyMarkup
lines.push _.str.join '\\-\\', lineSplitList.substring(1, lineSplitList.length)
lines[0] = _.str.trim lines[0]
- selector = @::getSelectorFromLine lines[0]
+ selector = @constructor.getSelectorFromLine lines[0]
@processSelector selector
restOfLine = _.str.trim lines[0].substring selector.length, lines[0].length
restOfLine = @processAttributes restOfLine
@@ -184,17 +184,17 @@ class WieldyMarkup
@currentLevel++
line = _.str.join '\\-\\', lines.substring 1, lines.length
- selector = @::getSelectorFromLine line
+ selector = @constructor.getSelectorFromLine line
@processSelector selector
restOfLine = _.str.trim line.substring selector.length, line.length
restOfLine = @processAttributes restOfLine
if _.str.startsWith restOfLine, '<'
@innerText = restOfLine
- if @::getTagNestLevel(@innerText) < 0
+ if @constructor.getTagNestLevel(@innerText) < 0
throw "Too many '>' found on line #{@lineNumber}"
- while @::getTagNestLevel(@innerText) > 0
+ while @constructor.getTagNestLevel(@innerText) > 0
if @text is ""
throw "Unmatched '<' found on line #{@lineNumber}"
Oops, something went wrong.

0 comments on commit 7149bab

Please sign in to comment.