1 Test editor tokenAtTextPosition method.
4 Running: testHighlightedText
5 Line: function foo(a, b) {
6 Column #0 (char 'f') - token: {"startColumn":0,"endColumn":8,"type":"js-keyword"}
7 Column #10 (char 'o') - token: {"startColumn":9,"endColumn":12,"type":"js-variable"}
8 Column #13 (char 'a') - token: {"startColumn":13,"endColumn":14,"type":"js-def"}
9 Line: var f = /.a/.test(a); /*
10 Column #8 (char 'f') - token: {"startColumn":8,"endColumn":9,"type":"js-def"}
11 Column #14 (char 'a') - token: {"startColumn":12,"endColumn":16,"type":"js-string-2"}
12 Column #19 (char 's') - token: {"startColumn":17,"endColumn":21,"type":"js-property"}
13 Line: this is a comment */
14 Column #0 (char 't') - token: {"startColumn":0,"endColumn":20,"type":"js-comment"}
15 Column #5 (char 'i') - token: {"startColumn":0,"endColumn":20,"type":"js-comment"}
16 Line: return f + "looongword";
17 Column #5 (char 'e') - token: {"startColumn":4,"endColumn":10,"type":"js-keyword"}
18 Column #20 (char 'n') - token: {"startColumn":15,"endColumn":27,"type":"js-string"}