Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
cdc845fe
Commit
cdc845fe
authored
Feb 04, 2013
by
Gerald Senarclens de Grancy
Browse files
created additional tests for Python indentation
CCBUG: 312309
parent
952b6a4d
Changes
24
Hide whitespace changes
Inline
Side-by-side
testdata/indent/python/dict1/expected
0 → 100644
View file @
cdc845fe
a_dict = { # opening dictionary w/out elements should indent once
0: 'a',
1: 'b'}
pass
\ No newline at end of file
testdata/indent/python/dict1/input.js
0 → 100644
View file @
cdc845fe
v
.
setCursorPosition
(
0
,
document
.
lineLength
(
0
));
v
.
enter
();
v
.
type
(
"
0: 'a',
"
);
v
.
enter
();
v
.
type
(
"
1: 'b'}
"
);
v
.
enter
();
v
.
type
(
"
pass
"
);
testdata/indent/python/dict1/origin
0 → 100644
View file @
cdc845fe
a_dict = { # opening dictionary w/out elements should indent once
\ No newline at end of file
testdata/indent/python/dict2/expected
0 → 100644
View file @
cdc845fe
a_dict = {0: 'a', # opening dictionary w/ elements indents to opening
1: 'b', }
pass
\ No newline at end of file
testdata/indent/python/dict2/input.js
0 → 100644
View file @
cdc845fe
v
.
setCursorPosition
(
0
,
document
.
lineLength
(
0
));
v
.
enter
();
v
.
type
(
"
1: 'b', }
"
);
v
.
enter
();
v
.
type
(
"
pass
"
);
\ No newline at end of file
testdata/indent/python/dict2/origin
0 → 100644
View file @
cdc845fe
a_dict = {0: 'a', # opening dictionary w/ elements indents to opening
\ No newline at end of file
testdata/indent/python/function_args/expected
0 → 100644
View file @
cdc845fe
def test2(arg1, # opening function w/ arguments indents to opening
arg2):
pass
\ No newline at end of file
testdata/indent/python/function_args/input.js
0 → 100644
View file @
cdc845fe
v
.
setCursorPosition
(
0
,
document
.
lineLength
(
0
));
v
.
enter
();
v
.
type
(
"
arg2):
"
);
v
.
enter
();
v
.
type
(
"
pass
"
);
testdata/indent/python/function_args/origin
0 → 100644
View file @
cdc845fe
def test2(arg1, # opening function w/ arguments indents to opening
\ No newline at end of file
testdata/indent/python/list1/expected
0 → 100644
View file @
cdc845fe
mylist = [ # opening list w/out elements should indent once
1,
2]
pass
\ No newline at end of file
testdata/indent/python/list1/input.js
0 → 100644
View file @
cdc845fe
v
.
setCursorPosition
(
0
,
document
.
lineLength
(
0
));
v
.
enter
();
v
.
type
(
"
1,
"
);
v
.
enter
();
v
.
type
(
"
2]
"
);
v
.
enter
();
v
.
type
(
"
pass
"
);
testdata/indent/python/list1/origin
0 → 100644
View file @
cdc845fe
mylist = [ # opening list w/out elements should indent once
\ No newline at end of file
testdata/indent/python/list2/expected
0 → 100644
View file @
cdc845fe
mylist = [1, # opening list w/ elements indents to opening
2,
3]
pass
\ No newline at end of file
testdata/indent/python/list2/input.js
0 → 100644
View file @
cdc845fe
v
.
setCursorPosition
(
0
,
document
.
lineLength
(
0
));
v
.
enter
();
v
.
type
(
"
2,
"
);
v
.
enter
();
v
.
type
(
"
3]
"
);
v
.
enter
();
v
.
type
(
"
pass
"
);
\ No newline at end of file
testdata/indent/python/list2/origin
0 → 100644
View file @
cdc845fe
mylist = [1, # opening list w/ elements indents to opening
\ No newline at end of file
testdata/indent/python/tuple1/expected
0 → 100644
View file @
cdc845fe
a_tuple = ( # opening tuple w/out elements should indent once
1,
2)
pass
\ No newline at end of file
testdata/indent/python/tuple1/input.js
0 → 100644
View file @
cdc845fe
v
.
setCursorPosition
(
0
,
document
.
lineLength
(
0
));
v
.
enter
();
v
.
type
(
"
1,
"
);
v
.
enter
();
v
.
type
(
"
2)
"
);
v
.
enter
();
v
.
type
(
"
pass
"
);
testdata/indent/python/tuple1/origin
0 → 100644
View file @
cdc845fe
a_tuple = ( # opening tuple w/out elements should indent once
\ No newline at end of file
testdata/indent/python/tuple2/expected
0 → 100644
View file @
cdc845fe
a_tuple = (1, # opening tuple w/ elements indents to opening
2,
3)
pass
\ No newline at end of file
testdata/indent/python/tuple2/input.js
0 → 100644
View file @
cdc845fe
v
.
setCursorPosition
(
0
,
document
.
lineLength
(
0
));
v
.
enter
();
v
.
type
(
"
2,
"
);
v
.
enter
();
v
.
type
(
"
3)
"
);
v
.
enter
();
v
.
type
(
"
pass
"
);
\ No newline at end of file
Prev
1
2
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment