Skip to content

Commit d86a887

Browse files
committed
tests: formatting of testDeprecatedProrotypeFunctions code snippet
1 parent 0425e6a commit d86a887

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

tests/org.eclipse.dltk.javascript.core.tests/src/org/eclipse/dltk/javascript/core/tests/validation/TypeInfoValidationTests.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3824,23 +3824,18 @@ public void testBindCall() {
38243824
assertEquals(problems.toString(), 0, problems.size());
38253825
}
38263826

3827-
38283827
public void testDeprecatedProrotypeFunctions() {
38293828
final StringList code = new StringList();
38303829
code.add("function Sub(name, age) {");
38313830
code.add(" this.age = age");
38323831
code.add("}");
38333832
code.add("Sub.prototype = {");
3834-
code.add(" /**");
3835-
code.add(" * @deprecated");
3836-
code.add(" */");
3837-
code.add(" baseMethod: function() {");
3838-
code.add(" return 'baseMethod called'");
3839-
code.add(" }");
3840-
code.add(" }");
3841-
code.add(" /**");
3842-
code.add(" * @deprecated");
3843-
code.add(" */");
3833+
code.add(" /** @deprecated */");
3834+
code.add(" baseMethod: function() {");
3835+
code.add(" return 'baseMethod called'");
3836+
code.add(" }");
3837+
code.add("}");
3838+
code.add("/** @deprecated */");
38443839
code.add("Sub.prototype.subMethod2 = function(a,b,c) {");
38453840
code.add(" return 'subMethod2 called'");
38463841
code.add("}");

0 commit comments

Comments
 (0)