Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: LayoutTests/inspector/editor/text-editor-token-at-position-expected.txt

Issue 472793002: DevTools: Make TextEditor.tokenAtTextPosition() return exclusive end column (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix remaining cases Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Test editor tokenAtTextPosition method. 1 Test editor tokenAtTextPosition method.
2 2
3 3
4 Running: testHighlightedText 4 Running: testHighlightedText
5 Line: function foo(a, b) { 5 Line: function foo(a, b) {
6 Column #0 (char 'f') - token: {"startColumn":0,"endColumn":7,"type":"js-keyword" } 6 Column #0 (char 'f') - token: {"startColumn":0,"endColumn":8,"type":"js-keyword" }
7 Column #10 (char 'o') - token: {"startColumn":9,"endColumn":11,"type":"js-variab le"} 7 Column #10 (char 'o') - token: {"startColumn":9,"endColumn":12,"type":"js-variab le"}
8 Column #13 (char 'a') - token: {"startColumn":13,"endColumn":13,"type":"js-def"} 8 Column #13 (char 'a') - token: {"startColumn":13,"endColumn":14,"type":"js-def"}
9 Line: var f = /.a/.test(a); /* 9 Line: var f = /.a/.test(a); /*
10 Column #8 (char 'f') - token: {"startColumn":8,"endColumn":8,"type":"js-def"} 10 Column #8 (char 'f') - token: {"startColumn":8,"endColumn":9,"type":"js-def"}
11 Column #14 (char 'a') - token: {"startColumn":12,"endColumn":15,"type":"js-strin g-2"} 11 Column #14 (char 'a') - token: {"startColumn":12,"endColumn":16,"type":"js-strin g-2"}
12 Column #19 (char 's') - token: {"startColumn":17,"endColumn":20,"type":"js-prope rty"} 12 Column #19 (char 's') - token: {"startColumn":17,"endColumn":21,"type":"js-prope rty"}
13 Line: this is a comment */ 13 Line: this is a comment */
14 Column #0 (char 't') - token: {"startColumn":0,"endColumn":19,"type":"js-comment "} 14 Column #0 (char 't') - token: {"startColumn":0,"endColumn":20,"type":"js-comment "}
15 Column #5 (char 'i') - token: {"startColumn":0,"endColumn":19,"type":"js-comment "} 15 Column #5 (char 'i') - token: {"startColumn":0,"endColumn":20,"type":"js-comment "}
16 Line: return f + "looongword"; 16 Line: return f + "looongword";
17 Column #5 (char 'e') - token: {"startColumn":4,"endColumn":9,"type":"js-keyword" } 17 Column #5 (char 'e') - token: {"startColumn":4,"endColumn":10,"type":"js-keyword "}
18 Column #20 (char 'n') - token: {"startColumn":15,"endColumn":26,"type":"js-strin g"} 18 Column #20 (char 'n') - token: {"startColumn":15,"endColumn":27,"type":"js-strin g"}
19 19
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/source_frame/CodeMirrorTextEditor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698