##// END OF EJS Templates
Merge pull request #4851 from minrk/tooltip-re...
Matthias Bussonnier -
r14726:ff7fc6f2 merge
parent child Browse files
Show More
@@ -0,0 +1,19 b''
1 //
2 // Test the tooltip
3 //
4 casper.notebook_test(function () {
5 var token = this.evaluate(function() {
6 return IPython.tooltip.extract_oir_token("C(");
7 });
8 this.test.assertEquals(token, ["C"], "tooltip token: C");
9
10 token = this.evaluate(function() {
11 return IPython.tooltip.extract_oir_token("MyClass(");
12 });
13 this.test.assertEquals(token, ["MyClass"], "tooltip token: MyClass");
14
15 token = this.evaluate(function() {
16 return IPython.tooltip.extract_oir_token("foo123(");
17 });
18 this.test.assertEquals(token, ["foo123"], "tooltip token: foo123");
19 });
@@ -197,7 +197,7 b' var IPython = (function (IPython) {'
197 }
197 }
198
198
199 // easy access for julia monkey patching.
199 // easy access for julia monkey patching.
200 Tooltip.last_token_re = /[a-z_][0-9a-z._]+$/gi;
200 Tooltip.last_token_re = /[a-z_][0-9a-z._]*$/gi;
201
201
202 Tooltip.prototype.extract_oir_token = function(line){
202 Tooltip.prototype.extract_oir_token = function(line){
203 // use internally just to make the request to the kernel
203 // use internally just to make the request to the kernel
General Comments 0
You need to be logged in to leave comments. Login now