(length)
| 195 | } |
| 196 | |
| 197 | function skipWhitespace(length) { |
| 198 | var oldi = i, oldj = j, |
| 199 | endIndex = i + chunks[j].length, |
| 200 | mem = i += length; |
| 201 | |
| 202 | while (i < endIndex) { |
| 203 | if (! isWhitespace(input.charAt(i))) { break; } |
| 204 | i++; |
| 205 | } |
| 206 | chunks[j] = chunks[j].slice(length + (i - mem)); |
| 207 | current = i; |
| 208 | |
| 209 | if (chunks[j].length === 0 && j < chunks.length - 1) { j++; } |
| 210 | |
| 211 | return oldi !== i || oldj !== j; |
| 212 | } |
| 213 | |
| 214 | function expect(arg, msg) { |
| 215 | var result = $(arg); |