Commit e6b9c40f authored by Gerald Senarclens de Grancy's avatar Gerald Senarclens de Grancy
Browse files

created additional tests for Python indentation

CCBUG: 312309
parent 05078ac2
a_dict = { # opening dictionary w/out elements should indent once
0: 'a',
1: 'b'}
pass
\ No newline at end of file
v.setCursorPosition(0, document.lineLength(0));
v.enter();
v.type("0: 'a',");
v.enter();
v.type("1: 'b'}");
v.enter();
v.type("pass");
a_dict = { # opening dictionary w/out elements should indent once
\ No newline at end of file
a_dict = {0: 'a', # opening dictionary w/ elements indents to opening
1: 'b', }
pass
\ No newline at end of file
v.setCursorPosition(0, document.lineLength(0));
v.enter();
v.type("1: 'b', }");
v.enter();
v.type("pass");
\ No newline at end of file
a_dict = {0: 'a', # opening dictionary w/ elements indents to opening
\ No newline at end of file
def test2(arg1, # opening function w/ arguments indents to opening
arg2):
pass
\ No newline at end of file
v.setCursorPosition(0, document.lineLength(0));
v.enter();
v.type("arg2):");
v.enter();
v.type("pass");
def test2(arg1, # opening function w/ arguments indents to opening
\ No newline at end of file
mylist = [ # opening list w/out elements should indent once
1,
2]
pass
\ No newline at end of file
v.setCursorPosition(0, document.lineLength(0));
v.enter();
v.type("1,");
v.enter();
v.type("2]");
v.enter();
v.type("pass");
mylist = [ # opening list w/out elements should indent once
\ No newline at end of file
mylist = [1, # opening list w/ elements indents to opening
2,
3]
pass
\ No newline at end of file
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
mylist = [1, # opening list w/ elements indents to opening
\ No newline at end of file
a_tuple = ( # opening tuple w/out elements should indent once
1,
2)
pass
\ No newline at end of file
v.setCursorPosition(0, document.lineLength(0));
v.enter();
v.type("1,");
v.enter();
v.type("2)");
v.enter();
v.type("pass");
a_tuple = ( # opening tuple w/out elements should indent once
\ No newline at end of file
a_tuple = (1, # opening tuple w/ elements indents to opening
2,
3)
pass
\ No newline at end of file
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment