~ubuntu-branches/ubuntu/vivid/kate/vivid-proposed

« back to all changes in this revision

Viewing changes to tests/data/scripting/bugs/317892_a/input.js

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-12-04 16:49:41 UTC
  • mfrom: (1.6.6)
  • Revision ID: package-import@ubuntu.com-20141204164941-l3qbvsly83hhlw2v
Tags: 4:14.11.97-0ubuntu1
* New upstream release
* Update build-deps and use pkg-kde v3 for Qt 5 build
* kate-data now kate5-data for co-installability

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// test closed comment
2
 
view.setCursorPosition(1, document.lineLength(1));
3
 
if (document.isComment(1, 10) && !document.isCode(1, 10))
4
 
  view.type("PASS");
5
 
else
6
 
  view.type("FAIL");
7
 
 
8
 
// test open comment
9
 
view.setCursorPosition(2, document.lineLength(2));
10
 
if (document.isComment(2, document.lineLength(2) - 1))
11
 
  view.type("PASS");
12
 
else
13
 
  view.type("FAIL");