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 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now