##// END OF EJS Templates
Improve handling of cursor_start and cursor_end for completions....
Improve handling of cursor_start and cursor_end for completions. Improve handling of cursor_start and cursor_end for completions. Improve handling of cursor_start and cursor_end for completions. Fix handling of end != cursor_position Fix handling of cursor offset and handle end <= start. Fix handling of cursor offset and handle end <= start. Reinstate extra whitespace More whitespace reinstating Still more whitespace Finalwhitespace Add a guard on start Fix logic for end > cursor_pos Another ws add WS tweak WS again

File last commit:

r15201:029ac024
r18322:0d782d54
Show More
tooltip.js
19 lines | 599 B | application/javascript | JavascriptLexer
//
// Test the tooltip
//
casper.notebook_test(function () {
var token = this.evaluate(function() {
return IPython.tooltip.extract_oir_token("C(");
});
this.test.assertEquals(token, ["C"], "tooltip token: C");
token = this.evaluate(function() {
return IPython.tooltip.extract_oir_token("MyClass(");
});
this.test.assertEquals(token, ["MyClass"], "tooltip token: MyClass");
token = this.evaluate(function() {
return IPython.tooltip.extract_oir_token("foo123(");
});
this.test.assertEquals(token, ["foo123"], "tooltip token: foo123");
});